© 1983-2012 Novell. See COPYRIGHT file for details.

File Server Environment NCPs

File Server Environment NCPs enable clients to set certain server parameters and return information about servers. Specifically, these NCPs allow clients to enable or disable transaction tracking, to prohibit or allow users to log in, to set the server time and date, to broadcast messages to a group of workstations, to clear a connection, and to down the server. They also enable clients to retrieve information about the file system, the transaction tracking system, physical disks, disk channels, volumes, disk caches, LAN I/Os, file and record locks, semaphores, connections, and tasks.

To safeguard the server from unauthorized access, most NCPs in this section require the client to have OPERATOR rights and some require the client to have SUPERVISOR rights. A client has OPERATOR rights if the object by which the client is logged in is listed in (or is security equivalent to an object that is listed in) the FILE_SERVER object's OPERATORS property.

Likewise, a calling station has SUPERVISOR rights if the object by which the station is logged in is the SUPERVISOR object or is security equivalent to the SUPERVISOR object. (See the introduction to the Bindery Services chapter for details about the SUPERVISOR and FILE_SERVER objects and the OPERATORS property.) If a client does not have sufficient rights to make a call, the No Console Rights completion code (0xC6) is returned.

Each server is listed in its own bindery as a bindery object of type FILE_SERVER (See the introduction to the Bindery Services chapter). The server object has an OPERATORS property which contains the object IDs of those objects that have OPERATOR rights (also referred to as console rights).

The NetWare FCONSOLE utility implements several of the protocols in this section.


Check Console Privileges 0x2222 23 200

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (200) byte

Reply Format

Offset Content Type (reply header)

Completion Code

	0	0x00	Successful
	198	0xC6	No Console Rights

Remarks

This NCP allows a station to determine whether it has console privileges on the target server. If it does, the Successful completion code will be returned. If it does not, the No Console Rights completion code will be returned.


Clear Connection Number 0x2222 23 254

v2.xv3.xv4.xv5.x


Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (5) word (Hi-Lo) 9 SubFunctionCode (254) byte 10 ConnectionNumber long (Lo-Hi)

Reply Format

Offset Content Type (reply header)

Completion Code

	0	0x00	Successful
	198	0xC6	No Console Rights
	253	0xFD	Bad Station Number

Remarks

This NCP logs out the specified station. Any resources or files the station is using are released and the station's service connection is broken. The station must re-establish a service connection and log in before it can resume work on the file server.

If the calling station lacks supervisor privileges, the No Console Rights completion code is returned and the target station is not affected.

This call is equivalent to typing "CLEAR #" at the NetWare v2.x file server console or the CLEAR STATION # at the NetWare 3.x or 4.x file server console; the pound symbol (#) represents the connection number of the station to be cleared.


Clear Connection Number (old) 0x2222 23 210

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (2) word (Hi-Lo) 9 SubFunctionCode (210) byte 10 ConnectionNumber byte

Reply Format

Offset Content Type (reply header)

Completion Code

	0	0x00	Successful
	198	0xC6	No Console Rights
	253	0xFD	Bad Station Number

Remarks

This call logs out the specified station. Any resources or files the station is using are released and the station's service connection is broken. The station must re-establish a service connection and log in before it can resume work on the file server.

If the calling station lacks supervisor privileges, the No Console Rights completion code is returned and the target station is not affected.

This call is equivalent to typing "CLEAR #" at the NetWare v2.x file server console or the CLEAR STATION # at the NetWare 3.x or 4.x file server console; the pound symbol (#) represents the connection number of the station to be cleared.

See Also

Clear Connection Number (0x2222 23 254)


Disable File Server Login 0x2222 23 203

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (203) byte

Reply Format

Offset Content Type (reply header)

Completion Code

	0	0x00	Successful
	198	0xC6	No Console Rights

Remarks

This NCP allows an operator to instruct the server to refuse new login requests. This call is usually made during some crucial time, such as before taking the server down.

Caution should be used with this call. If, after making the call, the operator loses or destroys his or her service connection to the file server, he or she cannot create a new connection and, therefore, cannot log in again. If no other user on the server has operator privileges, the server must be brought down from the console connected to the server and rebooted before any new users (including the operator) can access it.

If the calling station lacks operator privileges, the No Console Rights completion code is returned and the server's log state remains unchanged.

See Also

Enable File Server Login (0x2222 23 204)

cobra Login Status (0x2222 23 205)

Down File Server (0x2222 23 211)


Disable Transaction Tracking 0x2222 23 207

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (207) byte

Reply Format

Offset Content Type (reply header)

Completion Code

	0	0x00	Successful
	198	0xC6	No Console Rights

Remarks

This NCP allows an operator to disable the Transaction Tracking functions of an SFT server. Typically, an operator will disable Transaction Tracking when a volume containing the transaction file is filled to capacity. Then, to make space on the volume, the operator (or other users) will move or remove unnecessary files from the volume. The operator can re-enable Transaction Tracking by using the Enable Transaction Tracking NCP (0x2222 23 208).

If the calling station does not have operator privileges, the No Console Rights completion code is returned and the server's Transaction Tracking status remains unchanged.

NOTE: This NCP has no effect on the Transaction Tracking system (TTS is always enabled) in NetWare v4.11 or greater.

See Also

Enable Transaction Tracking (0x2222 23 208)


Down File Server 0x2222 23 211

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (2) word (Hi-Lo) 9 SubFunctionCode (211) byte 10 ForceFlag byte

Reply Format

Offset Content Type (reply header)

Completion Code

	0	0x00	Successful
	198	0xC6	No Console Rights
	255	0xFF	Failure

Remarks

This NCP allows a supervisor to take down a file server from a remote console.

If the ForceFlag field is zero, the server determines whether any stations have file server files open. If any files are in use or open, a Failure completion code (0xFF) is returned, and the server does not go down. If no files are open or in use, the server shuts down, and a Successful completion code is returned.

If the ForceFlag is 0xFF, the server shuts down. All open files are automatically closed, and all unfinished transactions are automatically backed out.

If the calling station does not have supervisor privileges, the No Console Rights completion code is returned and the server does not go down.

See Also

Disable File Server Login (0x2222 23 203)

cobra Login Status (0x2222 23 205)

Enable File Server Login (0x2222 23 204)


Enable File Server Login 0x2222 23 204

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (204) byte

Reply Format

Offset Content Type (reply header)

Completion Code

	0	0x00	Successful
	198	0xC6	No Console Rights

Remarks

This NCP allows an operator to instruct the server to begin accepting new login requests from clients. Clients that have already logged in will continue to receive service.

Enabling the server's log state also unlocks the Supervisor's account if it has been locked because of intruder detection.

If the calling station does not have operator priviliges, the No Console Rights completion code is returned, and the file server's log state remains unchanged.

See Also

Disable File Server Login (0x2222 23 203)


Enable Transaction Tracking 0x2222 23 208

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (208) byte

Reply Format

Offset Content Type (reply header)

Completion Code

	0	0x00	Successful
	198	0xC6	No Console Rights

Remarks

This NCP allows an operator to re-enable the Transaction Tracking functions of an SFT file server. The Transaction Tracking system can be disabled manually using the Disable Transaction Tracking call, or automatically by the server when the transaction volume becomes full. After freeing space on the transaction volume for the transaction files, the operator can use this call to re-enable Transaction Tracking.

If the calling station does not have operator privileges, the No Console Rights completion code is returned. The server's transaction status remains unchanged.

NOTE: This NCP has no effect on the Transaction Tracking system (TTS is always enabled) in NetWare v4.11 or greater.

See Also

Disable Transaction Tracking (0x222 23 207)


Get Connection's Open Files 0x2222 23 235

v2.xv3.xv4.xv5.x


Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (5) word (Hi-Lo) 9 SubFunctionCode (235) byte 10 ConnectionNumber word (Lo-Hi) 12 LastRecordSeen word (Lo-Hi)

Reply Format

Offset Content Type (reply header) 8 NextRequestRecord word (Lo-Hi) 10 NumberOfRecords word (Lo-Hi) (repeats NumberOfRecords times) 12 TaskNumber word (Lo-Hi) 14 LockType byte 15 AccessControl byte 16 LockFlag byte 17 VolumeNumber byte 18 DOSParentDirectoryEntry long (Lo-Hi) 22 DOSDirectoryEntry long (Lo-Hi) 26 ForkCount byte 27 NameSpace byte 28 NameLen byte 29 FileName byte[NameLen] . . . . . .

Completion Code

  0		0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights
253	0xFD	Bad Station Number

Remarks

This NCP returns information about the files currently open by the specified ConnectionNumber. The call should be made iteratively.

The following information is repeated NumberOfRecords times.

TaskNumber indicates the task number within the workstation that has the file open.

LockType contains bit flags indicating the file's lock status:

LockType Bits
7654 3210 Definition
xxxx xxx1 Locked
xxxx xx1x Open shareable
xxxx x1xx Logged
xxxx 1xxx Open normal
x1xx xxxx TTS holding lock
1xxx xxxx Transaction flag set on this file

AccessControl contains the bit flags indicating the connection's access rights for the file as follows:

AccessControl Bits
7654 3210 Definition
xxxx xxx1 Open for read by this client
xxxx xx1x Open for write by this client
xxxx x1xx Deny read requests from other stations
xxxx 1xxx Deny write requests from other stations
xxx1 xxxx File detached
xx1x xxxx TTS holding detach
x1xx xxxx TTS holding open

LockFlag indicates the type of lock on the file as follows:

ValueDefinition
0x00Not locked
0xFELocked by a file lock
0xFFLocked by Begin Share File Set

VolumeNumber identifies the file's volume in a Volume Table on the file server. The Volume Table contains information about each file server volume.

DirectoryEntry contains the file path relative to this directory. This value is NOT a directory handle.

NOTE: The parent directory entry and directory entry returned are DOS directory entries. The name space that is returned applies to the FileName and does not imply that the directory entries are name space specific.

FileName is the null-terminated filename.

See Also

Get Connection's Task Information (0x2222 23 234)

Get Connections Using A File (0x2222 23 236)


Get Connection's Open Files (old) 0x2222 23 219

v2.xv3.xv4.xv5.x




Request

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (5) word (Hi-Lo) 9 SubFunctionCode (219) byte 10 ConnectionNumber word (Lo-Hi) 12 LastRecordSeen word (Lo-Hi)

Reply

Offset Content Type (Reply Header) 8 NextRequestRecord word (Lo-Hi) 10 NumberOfRecords byte (repeats NumberOfRecords times) 11 TaskNumber byte 12 LockType byte 13 AccessControl byte 14 LockFlag byte 15 VolumeNumber byte 16 DirectoryEntry word 18 FileName byte[14] . . . . . .

Completion Code

  0		0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights
253	0xFD	Bad Station Number

Remarks

This is an old NetWare 286 v2.1 call that has been replaced by the NetWare 386 v3.0 call, Get Connection's Open Files (0x2222 23 235).

This v2.1 call returns information about the files currently open by the specified ConnectionNumber. The call should be made iteratively.

The following information is repeated NumberOfRecords times.

TaskNumber indicates the task number within the workstation that has the file open.

LockType contains bit flags indicating the file's lock status:

LockType Bits
7654 3210 Definition
xxxx xxx1 Locked
xxxx xx1x Open shareable
xxxx x1xx Logged
xxxx 1xxx Open normal
x1xx xxxx TTS holding lock
1xxx xxxx Transaction flag set on this file

AccessControl contains the bit flags indicating the connection's access rights for the file as follows:

AccessControl Bits
7654 3210 Definition
xxxx xxx1 Open for read by this client
xxxx xx1x Open for write by this client
xxxx x1xx Deny read requests from other stations
xxxx 1xxx Deny write requests from other stations
xxx1 xxxx File detached
xx1x xxxx TTS holding detach
x1xx xxxx TTS holding open

LockFlag indicates the type of lock on the file as follows:

ValueDefinition
0x00Not locked
0xFELocked by a file lock
0xFFLocked by Begin Share File Set

VolumeNumber identifies the file's volume in a Volume Table on the file server. The Volume Table contains information about each file server volume.

DirectoryEntry contains the file path relative to this directory. This value is NOT a directory handle.

FileName is the null-terminated filename.

See Also

Get Connection's Open Files (0x2222 23 235)

Get Connection's Task Information (old) (0x2222 23 218)

Get Connection's Task Information (0x2222 23 234)

Get Connections Using A File (old) (0x2222 23 220)

Get Connections Using A File (0x2222 23 236)

Get Connection Usage Statistics (0x2222 23 229)

Get File System Statistics (0x2222 23 212)


Get Connection's Semaphores 0x2222 23 241

v2.xv3.xv4.xv5.x


Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (5) word (Hi-Lo) 9 SubFunctionCode (241) byte 10 ConnectionNumber word (Lo-Hi) 12 LastRecordSeen word (Lo-Hi)

Reply Format

Offset Content Type (reply header) 8 NextRequestRecord word (Lo-Hi) 10 NumberOfSemaphores word (Lo-Hi) (repeats NumberOfSemaphores times) 12 OpenCount word (Lo-Hi) 14 SemaphoreValue word (Lo-Hi) 16 TaskNumber word (Lo-Hi) 17 SemaphoreNameLen byte 18 SemaphoreName byte[SemaphoreNameLen] . . . . . .

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights
253	0xFD	Bad Station Number

Remarks

This function allows an operator to get a list of the semaphores that a connection is using. Because a connection may be using more semaphores than the server can report in one reply message, this call can be made iteratively.

On the first call, LastRecordSeen should be set to zero. If the server returns a NextRequestRecord value that is non-zero, the server has not reported all the information. The calling program should repeat the request using the value returned in the NextRequestRecord as the new value for LastRecordSeen.

This process should be repeated until a reply packet with NextRequestRecord set to zero is received or until the Completion Code is not zero. When NextRequestRecord is zero, no more information is avaliable on the specified connection.

The server returns a NumberOfSemaphores indicating the status of semaphores that the target connection is using. The NumberOfSemaphores returned is recorded in NumberOfSemaphores. Each semaphore record contains the following information:

OpenCount contains the number of connections that have this semaphore open for use.

SemaphoreValue is the current value of the semaphore. A negative value is (normally interpreted as) the number of workstations waiting for the service represented by the semaphore. A positive value indicates the number of free resources available in the resource pool governed by the semaphore.

TaskNumber contains the number of the connection's task that is using the semaphore.

SemaphoreNameLen contains the length of the semaphore name.

SemaphoreName contains the name of the semaphore.

See Also

Get Semaphore Information (0x2222 23 242)


Get Connection's Semaphores (old) 0x2222 23 225

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (5) word (Hi-Lo) 9 SubFunctionCode (225) byte 10 ConnectionNumber word (Lo-Hi) 12 LastRecordSeen word (Lo-Hi)

Reply Format

Offset Content Type (Reply Header) 8 NextRequestRecord word (Lo-Hi) 10 NumberOfSemaphores word (Lo-Hi) (repeats NumberOfSemaphores times) 12 OpenCount word (Lo-Hi) 14 SemaphoreValue byte 15 TaskNumber byte 16 SempahoreNameLen byte 17 SemaphoreName byte[SempahoreNameLen1] . . . . . .

Completion Code

  0		0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights
253	0xFD	Bad Station Number

Remarks

This function allows an operator to get a list of the semaphores that a connection is using. Because a connection may be using more semaphores than the server can report in one reply message, this call can be made iteratively.

On the first call, LastRecordSeen should be set to zero. If the server returns a NextRequestRecord value that is non-zero, then the server has not reported all the information. The calling program should repeat the request using the value returned in the NextRequestRecord as the new value for LastRecordSeen.

This process should be repeated until a reply packet with NextRequestRecord set to zero is received or until the Completion Code is not zero. When NextRequestRecord is zero, there is no more information avaliable on the specified connection.

The server returns a NumberOfSemaphores indicating the status of semaphores that the target connection is using. The NumberOfSemaphores returned is recorded in NumberOfSemaphores. Each semaphore record contains the following information.

OpenCount indicates the number of connections that have this semaphore open for use.

SemaphoreValue is the current value of the semaphore. A negative value is (normally interpreted as) the number of workstations waiting for the service represented by the semaphore. A positive value indicates the number of free resources available in the resource pool governed by the semaphore.

TaskNumber contains the number of the connection's task that is using the semaphore.

SemaphoreNameLen contains the length of the semaphore name.

SemaphoreName contains the name of the semaphore.

See Also

Get Connection's Semaphores (0x2222 23 241)


Get Connection's Task Information 0x2222 23 234

v2.xv3.xv4.xv5.x


Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (5) word (Hi-Lo) 9 SubFunctionCode (234) byte 10 ConnectionNumber word (Lo-Hi)

Reply Format

Offset Content Type (reply header) 8 LockStatus byte 9 WaitRecord structure ?? NumberOfActiveTasks byte (repeats NumberOfActiveTasks times) ?? TaskNumber word (Lo-Hi) ?? TaskState byte

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights
253	0xFD	Bad Station Number

Remarks

Given the ConnectionNumber, this call allows an operator to retrieve control information about the current lock status of the connection's active tasks. The format of the information returned depends in part on the value returned in Connection Status.

On return, the LockStatus field will contain one of the following values:

ValueDefinition
0Normal (connection free to run)
1Connection waiting on a physical record lock
2Connection waiting on a file lock
3Connection waiting on a logical record lock
4Connection waiting on a semaphore

The Wait Record contains information about the current lock state of the target connection. If the target connection is waiting for a lock request to be serviceable, then the Wait Record contains information about the resource for which the connection is waiting. The Wait Record format varies depending on the value of LockStatus.

If LockStatus = 0, Wait Record includes

When LockStatus is 0, no Wait Record field exists in the reply message.

If LockStatus = 1, Wait Record includes

		byte		waitingTaskNumber
		word (Lo-Hi)	beginAddress
		word (Lo-Hi)	endAddress
		byte		volumeNumber
		word (Lo-Hi)	directoryEntry
		byte		lockedName (filename)

If LockStatus = 2, Wait Record includes

		byte		waitingTaskNumber
		byte		volumeNumber
		word (Lo-Hi)	directoryEntry
		byte		lockedName (file name)

If LockStatus = 3, Wait Record includes

		byte		waitingTaskNumber
		byte		lockedName (record name)

If LockStatus = 4, Wait Record includes

		byte		waitingTaskNumber
		byte		lockedName (semaphore name)

Number Of Active Tasks indicates the number of Task and Task State pairs to follow.

Task(#) indicates the task number for which information is to be returned.

Task State(#) is the task's state at the time of the request. The following states are defined:

ValueState
0x00Normal task
0x01TTS explicit transaction in progress
0x02TTS implicit transaction in progress
0x04Shared file set lock in progress

See Also

Get Connections Using A File (0x2222 23 236)

Get Connection's Open Files (0x2222 23 235)


Get Connection Usage Statistics 0x2222 23 229

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (3) word (Hi-Lo) 9 SubFunctionCode (229) byte 10 ConnectionNumber word (Hi-Lo)

Reply Format

Offset Content Type (Reply Header) 8 SystemIntervalMarker long (Hi-Lo) 12 BytesRead byte[6] 18 BytesWritten byte[6] 24 TotalRequestPackets long

Completion Code

  0		0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights
253	0xFD	Bad Station Number

Remarks

This call allows a client to get usage statistics for the client's own logical connection. Console operator rights are required to get usage statistics for connections other than the client's.

SystemIntervalMarker indicates how long the server has been up. This field is returned in units of approximately 1/18 of a second and is used to determine the amount of time that has elapsed between consecutive calls. (There are 18.2 ticks per second, or one tick every 0.54945054 of a second.) When this field reaches 0xFFFFFFFF, it wraps back to zero.

Bytes Read is the number of bytes the station has read on the specified ConnectionNumber since the connection was created.

Bytes Written is the number of bytes the station has written on the specified ConnectionNumber since the connection was created.

Bytes Read and Bytes Written are 6-byte low-high numbers.

See Also

Get Connections Using A File (old) (0x2222 23 220)

Get Connections Using A File (0x2222 23 236)

Get Connection's Open Files (old) (0x2222 23 219)

Get Connection's Open Files (0x2222 23 235)

Get Connection's Task Information (old) (0x2222 23 218)

Get Connection's Task Information (0x2222 23 234)

Get File System Statistics (0x2222 23 212)


Get Connections Using A File 0x2222 23 236

v2.xv3.xv4.xv5.x


Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (9) word (Hi-Lo) 9 SubFunctionCode (236) byte 10 DataStreamNumber byte 11 VolumeNumber byte 12 DirectoryBase long (Lo-Hi) 16 LastRecordSeen word (Lo-Hi)

Reply Format

Offset Content Type (reply header) 8 NextRequestRecord word (Lo-Hi) 10 UseCount word (Lo-Hi) 12 OpenCount word (Lo-Hi) 14 OpenForReadCount word (Lo-Hi) 16 OpenForWriteCount word (Lo-Hi) 18 DenyReadCount word (Lo-Hi) 20 DenyWriteCount word (Lo-Hi) 22 Locked byte 23 ForkCount byte 24 NumberOfRecords word (Lo-Hi) (repeats NumberOfRecords times) 26 ConnectionNumber1 word (Lo-Hi) 28 TaskNumber1 word (Lo-Hi) 30 LockType1 byte 31 AccessControl1 byte 32 LockFlag1 byte

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This NCP returns all logical connections using the file specified by Directory Handle and File Path. The call must be repeated until NextRequestRecord (returned in the reply message) is 0. The following request parameters are defined:

DataStreamNumber contains the data stream number if the name space is Macintosh. A value of 0 is the resource fork and a value of 1 is the data fork. If DOS, the value is always 0.

VolumeNumber identifies the volume on which the file exists.

DirectoryBase is the Directory entry number, indicating the file or directory path. It is obtained from the File Search Initialize NCP (0x2222 62 --) or Convert Path to Dir Entry (NCP 0x2222 23 244).

LastRecordSeen specifies the last record for which information is being returned. On the first call, LastRecordSeen must be set to zero. Subsequent calls should set LastRecordSeen to the value in NextRequestRecord returned in the previous reply message. If the value in NextRequestRecord is zero, the file server has passed all information to the requesting client.

The following reply parameters are defined:

NextRequestRecord is the value that LastRecordSeen must be set to in the next call.

UseCount indicates the number of tasks that have opened or logged the file.

OpenCount indicates the number of tasks that have the file open.

OpenForReadCount indicates the number of logical connections that have the file open for reading.

OpenForWriteCount indicates the number of logical connections that have the file open for writing.

DenyReadCount indicates the number of logical connections that have denied other connections the right the read from the file.

DenyWriteCount indicates the number of logical connections that have denied other connections the right to write to the file.

Locked indicates whether the file is locked exclusively (0 = not locked exclusively).

The following information is repeated NumberOfRecords times. There is one record for every connection that has used or has tried to use the specified file.

ConnectionNumber indicates the logical connection number of the workstation using the file.

TaskNumber indicates the task number using the file.

LockType contains bit flags indicating the file's lock status:

LockType Bits
7654 3210 Definition
xxxx xxx1 Locked
xxxx xx1x Open shareable
xxxx x1xx Logged
xxxx 1xxx Open normal
x1xx xxxx TTS holding lock
1xxx xxxx Transaction flag set on this file

AccessControl contains the bit flags indicating the connection's access rights for the file as follows:

AccessControl Bits
7654 3210 Definition
xxxx xxx1 Open for read by this client
xxxx xx1x Open for write by this client
xxxx x1xx Deny read requests from other stations
xxxx 1xxx Deny write requests from other stations
xxx1 xxxx File detached
xx1x xxxx TTS holding detach
x1xx xxxx TTS holding open

LockFlag indicates the type of lock on the file as follows:

ValueDefinition
0x00Not locked
0xFELocked by a file lock
0xFFLocked by Begin Share File Set

See Also

Get Connection's Task Information (0x2222 23 234)

Get Connection's Open Files (0x2222 23 235)


Get Connections Using A File (old) 0x2222 23 220

v2.xv3.xv4.xv5.x




Request Format

	Offset	Content				Type
	(Request Header)
	 6	FunctionCode	(23)		byte
	 7	SubFuncStrucLen	(5+PathLen) word (Hi-Lo)
	 9	SubFunctionCode 	(220)	byte
	10	LastRecordSeen			word (Hi-Lo)
	12	DirectoryHandle			byte
	13	PathLen				byte
	14	FilePath			byte[PathLen]

Reply Format

	Offset	Content				Type
	(Reply Header)
	 8	UseCount			word (Hi-Lo)
	10	OpenCount			word (Hi-Lo)
	12	OpenForReadCount		word (Hi-Lo)
	14	OpenForWriteCount		word (Hi-Lo)
	16	DenyReadCount			word (Hi-Lo)
	18	DenyWriteCount			word (Hi-Lo)
	20	NextRequestRecord		word (Hi-Lo)
	22	Locked				byte
	23	NumberOfRecords			byte

		(repeats NumberOfRecords times)

	24	ConnectionNumber1		word (Hi-Lo)
	26	TaskNumber1			byte
	27	LockType1			byte
	28	AccessControl1			byte
	29	1				byte
	.		.			.
	.		.			.

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This call returns all logical connections using the file specified by Directory Handle and File Path. The call must be repeated until NextRequestRecord (returned in the reply message) is 0.

UseCount indicates the number of tasks that have opened or logged the file.

OpenCount indicates the number of tasks that have the file open.

OpenForReadCount indicates the number of logical connections that have the file open for reading.

OpenForWriteCount indicates the number of logical connections that have the file open for writing.

DenyReadCount indicates the number of logical connections that have denied other connections the right to read from the file.

DenyWriteCount indicates the number of logical connections that have denied other connections the right to write to the file.

NextRequestRecord is the value that LastRecordSeen must be set to in the next call.

Locked indicates whether the file is locked exclusively (0 = not locked exclusively).

The following information is repeated NumberOfRecords times. There is one record for every connection that has used or has tried to use the specified file.

ConnectionNumber indicates the logical connection number of the workstation using the file.

TaskNumber indicates the task number using the file.

LockType contains bit flags indicating the file's lock status:

LockType Bits
7654 3210 Definition
xxxx xxx1 Locked
xxxx xx1x Open shareable
xxxx x1xx Logged
xxxx 1xxx Open normal
x1xx xxxx TTS holding lock
1xxx xxxx Transaction flag set on this file

AccessControl contains the bit flags indicating the connection's access rights for the file as follows:

AccessControl Bits
7654 3210 Definition
xxxx xxx1 Open for read by this client
xxxx xx1x Open for write by this client
xxxx x1xx Deny read requests from other stations
xxxx 1xxx Deny write requests from other stations
xxx1 xxxx File detached
xx1x xxxx TTS holding detach
x1xx xxxx TTS holding open

LockFlag indicates the type of lock on the file as follows:

ValueDefinition
0x00Not locked
0xFELocked by a file lock
0xFFLocked by Begin Share File Set

See Also

Get Connections Using A File (0x2222 23 236)

Get Connection Usage Statistics (0x2222 23 229)

Get Connection's Open Files (old) (0x2222 23 219)

Get Connection's Open Files (0x2222 23 235)

Get Connection's Task Information (old) (0x2222 23 218)

Get Connection's Task Information (0x2222 23 234)

Get File System Statistics (0x2222 23 212)


Get Disk Channel Statistics 0x2222 23 217

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (2) word (Hi-Lo) 9 SubFunctionCode (217) byte 10 DiskChannelNumber byte

Reply Format

Offset Content Type (Reply Header) 8 SystemIntervalMarker long (Hi-Lo) 12 ChannelState word (Hi-Lo) 14 ChannelSynchronizationState word (Hi-Lo) 16 SoftwareDriverType byte 17 SoftwareMajorVersionNumber byte 18 SoftwareMinorVersionNumber byte 19 SoftwareDescription byte[65] 84 IOAddressesUsed word[4] (Hi-Lo) 92 SharedMemoryAddresses byte[10] 102 InterruptNumbersUsed byte[4] 106 DMAChannelsUsed byte[4] 110 FlagBits byte 111 Reserved byte 112 ConfigurationDescription byte[80]

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This call allows a client to get the disk channel statistics for the specified Disk Channel Number. A client must have OPERATOR rights in order to make this call.

SystemIntervalMarker indicates how long the server has been up. This field is returned in units of approximately 1/18 of a second and is used to determine the amount of time that has elapsed between consecutive calls. When this field reaches 0xFFFFFFFF, it wraps back to zero.

ChannelState indicates the state of the disk channel:

0x00Channel is running
0x01Channel is stopping
0x02Channel is stopped
0x03Channel is not functional

ChannelSynchronizationState indicates the control state of the disk channel:

0x00Channel is not being used
0x02NetWare is using the channel; no one else wants it
0x04NetWare is using the channel; someone else wants it
0x06Someone else is using the channel; NetWare does not need it
0x08Someone else is using the channel; NetWare needs it
0x0ASomeone else has released the channel; NetWare should use it

SoftwareDriverType contains a number indicating which type of disk driver software that is installed in the disk channel.

SoftwareMajorVersionNumber indicates the major version of the disk driver software installed on the disk channel.

SoftwareMinorVersionNumber indicates the minor version of the disk driver software installed on the disk channel.

SoftwareDescription contains the null-terminated string describing the disk driver software.

IO Addresses Used contains the two addresses the disk driver uses to control the disk channel.

SharedMemoryAddresses contains the two shared memory addresses (offsets).

InterruptNumbersUsed contains the two interrupt numbers the disk driver uses to communicate with the disk channel.

DMAChannelsUsed lists the DMA controllers used by the disk driver to control the disk channel.

ConfigurationDescription is a null-terminated string containing the channel's current IO driver configuration.

See Also

Get Disk Utilization (0x2222 23 14)

Get File System Statistics (0x2222 23 212)


Get Disk Utilization 0x2222 23 14

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (6) word (Hi-Lo) 9 SubFunctionCode (14) byte 10 VolumeNumber byte 11 TrusteeID long (Hi-Lo)

Reply Format

Offset Content Type (reply header) 8 VolumeNumber byte 9 TrusteeID long (Hi-Lo) 13 DirectoryCount word (Hi-Lo) 15 FileCount word (Hi-Lo) 17 ClusterCount word (Hi-Lo)

Completion Code

	0	0x00	Successful
	150	0x96	Server Out Of Memory
	152	0x98	Disk Map Error
	161	0xA1	Directory I/O Error
	242	0xF2	No Object Read

Remarks

This call allows a client to determine how much physical space the specified Trustee ID is using on the given volume.

DirectoryCount indicates how many directories on the volume are owned by the Trustee ID.

FileCount indicates how many files on the volume are owned by the Trustee ID.

ClusterCount indicates how many physical volume clusters the trustee's files occupy on the volume. To map a cluster count to a count of the number of bytes used, see Get Volume Info With Number (0x2222 18 --) in the File/Directory section.

Clients who are supervisor equivalent can make this call for any object. Clients that do not have supervisor rights can make this call only for the object used when logging in.

See Also

File/Directory NCPs that return information about Volume, Directory, and Object Disk Usage.


Get Drive Mapping Table 0x2222 23 215

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (215) byte

Reply Format

Offset Content Type (Reply Header) 8 SystemIntervalMarker long (Hi-Lo) 12 SFTSupportLevel byte 13 LogicalDriveCount byte 14 PhysicalDriveCount byte 15 DiskChannelTable byte[5] 20 PendingIOCommands word (Hi-Lo) 22 DriveMappingTable byte[32] 54 DriveMirrorTable byte[32] 86 DeadMirrorTable byte[32] 118 ReMirrorDriveNumber byte 119 Filler byte 120 ReMirrorCurrentOffset long (Hi-Lo) 124 SFTErrorTable word[60] (Hi-Lo)

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This call returns the file server's Drive Mapping Table. If the calling station does not have operator privileges, the Completion Code No Console Rights is returned.

SystemIntervalMarker indicates how long the file server has been up. This field is returned in units of approximately 1/18 of a second and is used to determine the amount of time that has elapsed between consecutive calls. When this field reaches 0xFFFFFFFF, it wraps back to zero.

SFTSupportLevel indicates the SFT level offered by the file server.

SFT LevelType of SFT
1the file server offers hot disk error fix.
2the file server offers disk mirroring and transaction tracking.
3the file server offers physical file server mirroring.

LogicalDriveCount indicates the number of logical drives attached to the server. If the file server supports SFT Level II or above and disks are mirrored, the Logical Drive Ccount will be lower than the actual number of physical disk subsystems attached to the file server. The file server's operating system considers mirrored disks to be one logical drive.

PhysicalDriveCount indicates the number of physical disk units attached to the server.

DiskChannelTable field is a 5-byte table that indicates which disk channels exists on the server and what their drive types are. (Each channel is 1 byte.) A nonzero value in the DiskChannelTable indicates that the corresponding disk channel exists in the file server. The drive types are:

Dtrive Type ValueDefinition
1XT
2AT
3SCSI
4disk coprocessor
50 to 255Value Added Disk Drive (VADD).

PendingIOCommands indicates the number of outstanding disk controller commands.

DriveMappingTable is a 32-byte table containing the primary physical drive to which each logical drive is mapped (0xFF = no such logical drive).

DriveMirrorTable is a 32-byte table containing the secondary physical drive to which each logical drive is mapped (0xFF = no such logical drive).

DeadMirrorTable is a 32-byte table containing the secondary physical drive to which each logical drive was last mapped (0xFF = logical drive was never mirrored). This table is used in conjunction with the DriveMirrorTable. If the entry in the DriveMirrorTable shows that a drive is not currently mirrored, the table can be used to determine which drive previously mirrored the logical drive. The DeadMirrorTable is used to remirror a logical drive after a mirror failure.

ReMirrorDriveNumber indicates the physical drive number of the disk currently being remirrored (0xFF = no disk being remirrored).

Filler contains no information.

ReMirrorCurrentOffset contains the block number that is currently being remirrored.

SFTErrorTable is a 60-byte table containing SFT internal error counters.

See Also

Get Disk Channel Statistics (0x2222 23 217)

Get File System Statistics (0x2222 23 212)

File/Directory NCPs that return information about Volume, Directory, and Object Disk Usage.


Get File Server Date And Time 0x2222 20 --

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (20) byte

Reply Format

Offset Content Type (reply header) 8 Year byte 9 Month byte 10 Day byte 11 Hour byte 12 Minute byte 13 Second byte 14 DayOfWeek byte

Completion Code

	0	0x00	Successful

Remarks

This NCP returns the current date and time being kept by the file server. The system time clock is a 7-byte clock.

Year contains a value from 0 to 179; values from 80 to 99 correspond to the years 1980 through 1999, while values from 100 to 179 correspond to the years 2000 through 2079.

Month contains a value from 1 to 12 corresponding to months January to December.

Day contains a value from 1 to 31 indicating the current day of the month.

Hour contains a value from 0 to 23. Zero (0) is 12 midnight; 23 is 11 p.m.

Minute contains a value from 0 to 59, indicating the minute in the hour.

Second contains a value from 0 to 59, indicating the second in the minute.

Week Day contains a value from 0 to 6. Zero (0) is Sunday; six is Saturday.

This call can be used by any client.

See Also

Set File Server Date And Time (0x2222 23 202)


Get File Server Description Strings 0x2222 23 201

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (201) byte

Reply Format

Offset Content Type (reply header) 8 DescriptionStrings byte[512]

Completion Code

	0	0x00	Successful
	150	0x96	Server Out Of Memory

Remarks

This NCP returns up to 512 bytes of information (in descriptive strings) about the server. Each string is null-terminated. Strings that can be returned might include a company's name, the NetWare version, the revision date, a copyright notice, and so on.

Any client can make this call.

See Also

Get File Server Information (0x2222 23 17)


Get File Server Information 0x2222 23 17

NetWare Linux
v2.x v3.x v4.x v5.x v6.x OES 1 OES 2 OES 11 OES 2015

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (17) byte

Reply Format

Offset Content Type (reply header) 8 ServerName byte[48] 56 FileServiceVersion byte 57 FileServiceSubVersion byte 58 MaximumServiceConnections word (Hi-Lo) 60 ConnectionsInUse word (Hi-Lo) 62 NumberMountedVolumes word (Hi-Lo) 64 Revision byte 65 SFTLevel byte 66 TTSLevel byte 67 MaxConnectionsEverUsed word (Hi-Lo) 69 AccountVersion byte 70 VAPVersion byte 71 QueueVersion byte 72 PrintVersion byte 73 VirtualConsoleVersion byte 74 RestrictionLevel byte 75 InternetBridge byte 76 MixedModePathFlag byte 77 LocalLoginInfoCcode byte 78 ProductMajorVersion word (Hi-Lo) 80 ProductMinorVersion word (Hi-Lo) 82 ProductRevisionVersion word (Hi-Lo) 84 OSLanguageID byte 85 64BitOffsetsSupportedFlag byte 86 NCPEngineVersion byte 87 NCPServerPlatform byte 88 ServerCodePageStringLen byte 89 ServerCodePageString byte[20] 109 Reserved byte[27]

Completion Code

	0	0x00	Successful
	150	0x96	Server Out Of Memory

Remarks

This NCP can be used by clients to gain information about a server to which they have a service connection. Any client can use this call without first calling Login.

ServerName contains the server name.

FileServiceVersion contains the major NetWare version number.

FileServiceSubVersion contains the minor NetWare version number.

MaximumServiceConnections contains the maximum number of connection slots that the server has allocated since it has been up. It does not indicate how many connections the server supports. The connections that increment this value may or may not be licensed.

ConnectionsInUse indicates how many connections are currently using the server.

NumberMountedVolumes contains the maximum number of volumes the server supports.

Revision contains the revision level of the NetWare version number.

SFTLevel indicates which SFT level the server operating system is using.

TTSLevel indicates which TTS level the server operating system is using.

MaxConnectionsEverUsed contains the maximum number of "licensed" connections in use at one time. This count will not include connections that have not been "licensed".

AccountVersion contains the Accounting version number.

VAPVersion contains the VAP version number.

QueueVersion contains the Queuing version number.

PrintVersion contains the Print Server version number.

VirtualConsoleVersion contains the Virtual Console version number.

RestrictionLevel contains the Security Restriction version number.

InternetBridge contains the Internet Bridge support version number.

MixedModeFlag is an indicator for mixed mode path handling. If set to 1, mixed mode path handling available.

LocalLoginInfoCcode is the completion code returned from the GetLocalLoginInfo API.

ProductMajorVersion indicates the product major version.

ProductMajorVersion indicates the product minor version.

ProductMajorVersion indicates the product revision version.

OSLanguageID is the language number of the language that is currently enabled on the server.

64BitOffsetsSupportedFlag indicates whether the server supports reading from, writing to and locking offsets greater than 4 gig. See NCPs: NCP 87 64 (Read File (64 Bit offset capable)) NCP 87 65 (Write to a File (64 Bit offset capable)) NCP 87 66 (Get Current Size of File (64 Bit size capable)) NCP 87 67 (Log Physical Record (64 Bit offset capable)) NCP 87 68 (Release Physical Record (64 Bit offset capable)) NCP 87 69 (Clear Physical Record Set (64 Bit offset capable)) These NCPs are 64 bit enabled on NSS volumes, and provide 32 bit support on legacy volumes.

NCPEngineVersion indicates what version of the NCP Engine is currently running on this server.
 
typedef enum NCP_EngineVersions_E
{
NCP_EngineVersion_1= 0x01,/* NetWare 2.x through Linux OES 11 */
NCP_EngineVersion_2= 0x02/* Linux OES 2015 (and beyond). Greater than 16TB support.*/
} NCP_EngineVersions_T;
 
The following NCP verbs were introduced with NCP_EngineVersion_2:
0x2222 22 54 Add User Disk Space Restriction (64Bit Aware)
0x2222 22 55 Get Object Disk Usage and Restrictions (64Bit Aware)
0x2222 22 56 Scan Volume User Disk Restrictions (64Bit Aware)
0x2222 22 57 Set Directory Disk Space Restriction (64Bit Aware)
0x2222 89 41 Get Directory Disk Space Restrictions (64Bit Aware)
0x2222 123 35 Volume Information By Level (64Bit Aware)

NCPServerPlatform indicates the host platform OS that the NCP Engine is currently running on. A zero indicates that it is running on NetWare, and a 1 indicates that it is running on Linux.

The ServerCodePageStringLen is a 1 byte value indicating the length of the ServerCodePageString. The maximum allowed size of ServerCodePageString is 20 bytes. This string is the ASCII representation of the DOSCodePage that the Netware server started up with and which was set from the lconfig.sys file. On a Linux box, this string contains the LC_CTYPE obtained from a call to getenv.

Reserved is reserved for future use.

See Also

Get File Server Description Strings (0x2222 23 201)


Get File Server LAN I/O Statistics 0x2222 23 231

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (231) byte

Reply Format

Offset Content Type (Reply Header) 8 SystemIntervalMarker long 12 ConfiguredMaxRoutingBuffers word 14 ActualMaxUsedRoutingBuffers word 16 CurrentlyUsedRoutingBuffers word 18 TotalFileServicePackets long 22 TurboUsedForFileService word 24 PacketsFromInvalidConnection word 26 BadLogicalConnectionCount word 28 PacketsReceivedDuringProcessing word 30 RequestsReprocessed word 32 PacketsWithBadSequenceNumber word 34 DuplicateRepliesSent word 36 PositiveAcknowledgesSent word 38 PacketsWithBadRequestType word 40 AttachDuringProcessing word 42 AttachWhileProcessingAttach word 44 ForgedDetachedRequests word 46 DetachForBadConnectionNumber word 48 DetachDuringProcessing word 50 RepliesCancelled word 52 PacketsDiscardedByHopCount word 54 PacketsDiscardedUnknownNet word 56 IncomingPacketDiscardedNoDGroup word 58 OutgoingPacketDiscardedNoTurboBuffer word 60 IPXNotMyNetwork word 62 NetBIOSBroadcastWasPropagated long 66 TotalOtherPackets long 70 TotalRoutedPackets long

Completion Code

	  0	0x00	Successful
	150	0x96	Server Out Of Memory

Remarks

This call returns statistical information about packets being received and sent by a file server.

SystemIntervalMarker indicates how long the file server has been up. This field is returned in units of approximately 1/18 of a second and is used to determine the amount of time that has elapsed between consecutive calls. When this field reaches 0xFFFFFFFF, it wraps back to zero.

ConfiguredMaxRoutingBuffers indicates the number of routing buffers the network is configured to handle.

ActualMaxUsedRoutingBuffers indicates the maximum number of routing buffers that have been in use simultaneously since the server was brought up.

CurrentlyUsedRoutingBuffers indicates the number of routing buffers that are being used by the server.

TotalFileServicePackets indicates the number of request packets serviced by the file server.

TurboUsedForFileService indicates the number of times file service request packets were stored in routing buffers.

PacketsFromInvalidConnection is the count of all request packets with invalid logical connection numbers. If a packet's logical connection number has not been allocated or the packet's source address doesn't match the address assigned by the file server, the connection number is invalid.

PacketsReceivedDuringProcessing is the number of times a new request is received while the previous request is still being processed. Such packets are received when the client generates a duplicate request while the response to the first request is being sent to the client. In this case, the file server will reprocess the request unnecessarily.

RequestsReprocessed is the count of requests reprocessed by the server. Requests can be reprocessed if the client repeats a request for one that did not receive a response.

PacketsWithBadSequenceNumber is a count of request packets the server received from a connection whose packet sequence number does not not match the current sequence number in the or the next sequence number. (Packets with bad sequence numbers are discarded.)

DuplicateRepliesSent is a count of request packets for which the server had to send a duplicate reply. (Duplicate replies are only sent for requests the server cannot process.)

PositiveAcknowledgesSent is the number of times a client repeats a request that is being serviced.

PacketsWithBadRequestType is a count of request packets containing an invalid request type.

AttachDuringProcessing indicates the number of times the server is requested to create a service connection by clients for which the server is currently processing a request. In this case, the server does not respond to the request currently being processed, and the server recreates a connection with the client (station).

AttachWhileProcessingAttach indicates the number of times the file server receives a request to create a service connection while still servicing the same request received previously. Such duplicate requests are ignored.

ForgedDetachedRequests is a count of requests to terminate a connection whose source address does not match the address the server has assigned to the connection. The detach request is ignored.

DetachForBadConnectionNumber is a count of requests to terminate a connection for a connection number that is not supported by the server.

DetachDuringProcessing indicates the number of requests to terminate a connection while requests are still being processed for the client.

RepliesCancelled indicates the number of replies that were cancelled because the connection was reallocated during processing.

PacketsDiscardedByHopCount indicates the number of packets discarded because they have passed through more than 16 bridges without reaching their destination. (The maximum number of bridges might depend on the particular implementation of NCP, but for NetWare Version 2.x compatibility the maximum number of bridges should be 16.)

PacketsDiscardedUnknownNet indicates the number of packets that were discarded because their destination network is unknown to the server.

IncomingPacketDiscardedNoDGroup indicates the number of incoming packets that were received in a routing buffer that needed to be transferred to a DGroup buffer so that the socket dispatcher could transfer the packet to the correct socket. If no buffers are available, the packet is lost.

OutgoingPacketDiscardedNoTurboBuffer indicates the number of packets the server attempted to send which were lost because no routing buffers were available.

IPXNotMyNetwork is a count of packets received that were destined for the B or C side drivers.

NetBIOSBroadcastWasPropagated is a count of NetBIOS packets circulated through this network.

TotalOtherPackets is a count of all packets received that were not requests for file services.

TotalRoutedPackets is a count of all packets routed by the server.

See Also

Get LAN Driver Configuration Information (0x2222 23 227)


Get File Server Login Status 0x2222 23 205

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (205) byte

Reply Format

Offset Content Type (reply header) 8 UserLoginAllowed byte

Completion Code

	  0	0x00	Successful
	150	0x96	Server Out Of Memory
	251	0xFB	Unknown Request

Remarks

This NCP allows the calling operator to determine whether user logins are currently allowed on the target server.

UserLoginAllowed will be zero if clients cannot log in, and non-zero otherwise.

This NCP does not require console privileges in order to use it.

See Also

Disable File Server Login (0x2222 23 203)

Down File Server (0x2222 23 211)


Get File Server Misc Information 0x2222 23 232

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (232) byte

Reply Format

Offset Content Type (Reply Header) 8 SystemIntervalMarker long 12 ProcessorType byte 13 Reserved byte 14 NumberOfServiceProcesses byte 15 ServerUtilizationPercentage byte 16 ConfiguredMaxBinderyObjects word 18 ActualMaxBinderyObjects word 20 CurrentUsedBinderyObjects word 22 TotalServerMemory word (Hi-Lo) 24 WastedServerMemory word (Hi-Lo) 26 NumberOfDynamicMemoryAreas (1..3) word (Hi-Lo) (repeats NumberOfDynamicMemoryAreas times) 28 TotalDynamicSpace long (Hi-Lo) 32 MaxUsedDynamicSpace long 36 CurrentUsedDynamicSpace long . . . . . .

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This call returns miscellaneous information about the file server.

SystemIntervalMarker indicates how long the file server has been up. This field is returned in units of approximately 1/18 of a second and is used to determine the amount of time that has elapsed between consecutive calls. When this field reaches 0xFFFFFFFF, it wraps back to zero.

ProcessorType contains a number indicating the processor type:

ValueCPU Type
0Motorola 68000
1Intel 8088 or 8086
280286

NumberOfServiceProcesses indicates the number of processes in the server that handles incoming service requests.

ServerUtilizationPercentage indicates the current server utilization percentage (0..100). This value is updated once per second.

ConfiguredMaxBinderyObjects indicates the maximum number of bindery objects that the file server will track (0 = unlimited). If disk resource limitation is not installed on the file server, this value is 0 and an unlimited number of bindery objects can be created. Otherwise, this field contains the number that was configured during installation. If this field is nonzero, the file server will not allow the number of bindery objects to exceed this value. The next two fields have no meaning if this field is zero.

ActualMaxBinderyObjects indicates the maximum number of bindery objects that have been used concurrently since the file server came up.

CurrentUsedBinderyObjects indicates the number of bindery objects currently in use on the server.

TotalServerMemory indicates the total amount of memory installed in the server.

WastedServerMemory indicates the amount of memory that the server has determined it is not using.

NumberOfDynamicMemoryAreas (1..3) indicates the number of dynamic memory areas.

The following information is repeated up to 3 times, depending on the value in NumberOfDynamicMemoryAreas.

TotalDynamicSpace indicates the total amount of memory in the dynamic memory area.

MaxUsedDynamicSpace indicates the amount of memory in the dynamic memory area that has been in use since the server was brought up.

CurrentUsedDynamicSpace indicates the amount of memory in the dynamic memory area that is currently in use.

See Also

Get File Server Extended Misc Information (0x2222 23 245)


Get File System Statistics 0x2222 23 212

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (212) byte

Reply Format

Offset Content Type (Reply Header) 8 SystemIntervalMarker long (Hi-Lo) 12 ConfiguredMaxOpenFiles word 14 ActualMaxOpenFiles word 16 CurrentOpenFiles word 18 TotalFilesOpened long 22 TotalReadRequests long 26 TotalWriteRequests long 30 CurrentChangedFATs word 32 TotalChangedFATs long 36 FATWriteErrors word 38 FatalFATWriteErrors word 40 FATScanErrors word 42 ActualMaxIndexedFiles word 44 ActiveIndexedFiles word 46 AttachedIndexedFiles word 48 AvailableIndexedFiles word

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This call returns statistics about a server's file system. The call can be used repeatedly to get updated information. The following information is returned:

SystemIntervalMarker indicates how long the file server has been up. This value is returned in units of approximately 1/18 of a second and is used to determine the amount of time that has elapsed between consecutive calls. When this field reaches 0xFFFFFFFF, it wraps back to zero.

Configured Max Open Files indicates the number of files the server can open simultaneously.

Actual Max Open Files indicates the number of files open simultaneously since the server was brought up.

Current Open Files contains the number of files the server has open. This value exceeds the previously recorded Actual Max Open Files count. Current Open Files reflects both files that clients have open and any internal files, such as the bindery, that the file server has open.

Total Files Opened contains the number of files the server has opened since the server was brought up. If this number reaches 0xFFFFFFFF, it wraps back to zero.

Total Read Requests contains the number of read requests the server has received since it was brought up. If this number reaches 0xFFFFFFFF, it wraps back to zero.

Total Write Requests contains the number of write requests the server has received since it was brought up. If this number reaches 0xFFFFFFFF, it wraps back to zero.

Current Changed FATs contains the number of current FAT sectors the file system has modified. FAT sectors are modified when files are extended or truncated.

Total Changed FATs contains the number of FAT sectors the file system has modified since it was brought up.

FAT Write Errors contains the number of disk write errors that have occurred in writing FAT sectors to the disk. All FAT sectors are duplicated on the disk, ensuring that a single disk failure will not result in the loss of the FAT tables. If a FAT sector is lost, its duplicate is automatically used. When a disk write error occurs in both the original and the duplicate of a FAT sector, a fatal error occurs.

Fatal FAT Write Errors contains the number of disk write errors that occurred in both the original and duplicate copy of a FAT sector. Fatal FAT write errors occur because the file system cannot recover the information required to determine where a given file resides on a volume. However, since a copy of the FAT table is kept in memory, the file server continues to function.

FAT Scan Errors contains the number of times an internally inconsistent state existed in the file system.

Actual Max Indexed Files contains the number of indexed files active simultaneously in the server since it was brought up.

Active Indexed Files contains the count of files that are currently active, open, and indexed.

Attached Indexed Files contains the count of indexed files ready for indexing but not ready for use. The attached index files are not currently open, but they have indexes built in memory. These indexes are reused if the attached file is reopened, or rebuilt for other files if needed.

Available Indexed Files contains the count of file indexes that are available for use.

See Also

Get Connections Using A File (old) (0x2222 23 )

Get Connections Using A File (0x2222 23 236)

Get Connection Usage Statistics (0x2222 23 229)

Get Connection's Open Files (0x2222 23 235)

Get Connection's Task Information (old) (0x2222 23 218)

Get Connection's Task Information (0x2222 23 234)


Get LAN Driver Configuration Information 0x2222 23 227

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (2) word (Hi-Lo) 9 SubFunctionCode (227) byte 10 LANDriverNumber byte

Reply Format

Offset Content Type (Reply Header) 8 NetworkAddress byte[4] 12 HostAddress byte[6] 18 BoardInstalled byte 19 OptionNumber byte 20 ConfigurationText byte[160]

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
255	0xFF	Failure

Remarks

This call returns configuration information for the LAN drivers installed at the file server.

Network Address contains the LAN board number to which the driver is attached.

Host Address indicates the host address of the LAN board the driver is controlling.

Board Installed indicates whether a driver is installed in the specified LAN board. If Board Installed is zero, all fields returned are undefined.

Option Number contains the option selected for the driver during configuration. The selected option number specifies the hardware setup the driver uses when running the LAN board.

Configuration Text is one or more null-terminated strings containing configuration information, such as the LAN board type ("NetWare Ethernet NP600," for example), and the LAN board hardware settings ("IRQ = 9, IOAddress = 300h, DMA = 7," for example).

See Also

Get File Server LAN I/O Statistics (0x2222 23 231)


Get Logical Record Information 0x2222 23 240

v2.xv3.xv4.xv5.x


Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (4+LogicalRecordNameLen) word (Hi-Lo) 9 SubFunctionCode (240) byte 10 LastRecordSeen word (Lo-Hi) 12 LogicalRecordNameLen byte 13 LogicalRecordName byte[LogicalRecordNameLen]

Reply Format

Offset Content Type (reply header) 8 ShareableLockCount word (Lo-Hi) 10 UseCount word (Lo-Hi) 12 Locked byte 13 NextRequestRecord word (Lo-Hi) 15 NumberOfRecords word (Lo-Hi) (repeats NumberOfRecords times) 17 ConnectionNumber word (Lo-Hi) 19 TaskNumber word (Lo-Hi) 21 LockStatus byte . . . . . .

Completion Code

  0		0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This NCP returns information about a logical record. The following request parameters are defined:

LastRecordSeen specifies the last record for which information is being returned. On the first call, LastRecordSeen must be set to zero. Subsequent calls should set LastRecordSeen to the value in NextRequestRecord returned in the previous reply message. If the value in NextRequestRecord is zero, the server has passed all information to the requesting client.

LogicalRecordNameLen indicates how long the value in LogicalRecordName is.

LogicalRecordName can be up to 99 bytes long.

LogicalRecordName holds the name of the logical record.

The following reply parameters are defined:

ShareableLockCount indicates the number of logical connections having a shareable lock on the logical record.

UseCount indicates the number of logical connections that have the logical record logged.

Locked indicates whether the logical record is locked exclusively (0 = not locked exclusively).

NextRequestRecord is the value that LastRecordSeen must be set to in the next call.

The following information is returned as many times as NumberOfRecords indicates.

ConnectionNumber indicates the logical connection using the logical record.

TaskNumber indicates the task number within the workstation that has the file open.

LockStatus contains the bit flags indicating the file's lock status, as follows:

LockStatus Bits
7654 3210 Definition
xxxx xxx1 Locked exclusive
xxxx xx1x Locked shareable
xxxx x1xx Logged
x1xx xxxx Lock is held by TTS

This requesting client must have console operator rights to make this call.

See Also

Get Logical Records By Connection (0x2222 23 239)


Get Logical Record Information (old) 0x2222 23 224

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (4+LogicalRecordNameLen) word (Hi-Lo) 9 SubFunctionCode (224) byte 10 LastRecordSeen word 12 LogicalRecordNameLen byte 13 LogicalRecordName byte[LogicalRecordNameLen]

Reply Format

Offset Content Type (Reply Header) 8 UseCount word (Hi-Lo) 10 ShareableLockCount word (Hi-Lo) 12 NextRequestRecord word 14 Locked byte 15 NumberOfRecords byte (repeats NumberOfRecords times) 16 ConnectionNumber word (Hi-Lo) 18 TaskNumber byte 19 LockStatus byte . . . . . .

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This call returns information about a logical record.

LastRecordSeen specifies the last record for which information is being returned. On the first call, LastRecordSeen must be set to zero. Subsequent calls should set LastRecordSeen to the value in NextRequestRecord returned in the previous reply message. If the value in NextRequestRecord is zero, the file server has passed all information to the requesting client.

LogicalRecordNameLength contains the length of the LogicalRecordName (up to 99 bytes).

LogicalRecordName is the name of the logical record.

UseCount indicates the number of logical connections that have the logical record logged.

ShareableLockCount indicates the number of logical connections having a shareable lock on the logical record.

NextRequestRecord is the value that LastRecordSeen must be set to in the next call.

Locked indicates whether the logical record is locked exclusively (0 = not locked exclusively).

The following information is returned as many times as NumberOfRecords indicates.

ConnectionNumber indicates the logical connection using the logical record.

LockStatus contains the bit flags indicating the file's lock status, as follows:

LockStatus Bits
7654 3210 Definition
xxxx xxx1 Locked exclusive
xxxx xx1x Locked shareable
xxxx x1xx Logged
x1xx xxxx Lock is held by TTS

This requesting client must have console operator rights to make this call.

See Also

Get Logical Record Information (0x2222 23 240)

Get Logical Records By Connection (old) (0x2222 23 223)

Get Logical Records By Connection (0x2222 23 239)


Get Logical Records By Connection 0x2222 23 239

v2.xv3.xv4.xv5.x


Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (5) word (Hi-Lo) 9 SubFunctionCode (239) byte 10 TargetConnectionNumber word (Lo-Hi) 12 LastRecordSeen word (Lo-Hi)

Reply Format

Offset Content Type (reply header) 8 NextRequestRecord word (Lo-Hi) 10 NumberOfRecords word (Lo-Hi) (repeats NumberOfRecords times) 12 TaskNumber word (Lo-Hi) 14 LockStatus byte 15 LockNameLen byte 16 LockName byte[LockNameLen]

Completion Code

	  0	0x00	Successful
	150	0x96	Server Out Of Memory
	198	0xC6	No Console Rights
	253	0xFD	Bad Station Number

Remarks

This NCP returns the logical records that a connection has logged with the file server. The following request parameters are defined:

TargetConnectionNumber indicates the logical connection that has the record locked exclusively.

LastRecordSeen specifies the last record for which information is being returned. On the first call, LastRecordSeen must be set to zero. Subsequent calls should set LastRecordSeen to the value in NextRequestRecord returned in the previous reply message. If the value in NextRequestRecord is zero, the file server has passed all information to the requesting client.

The following reply parameters are defined:

NextRequestRecord is the value that LastRecordSeen must be set to in the next call.

The following information is returned as many times as NumberOfRecords indicates.

TaskNumber indicates which task within the connection that has the record logged.

LockStatus contains the bit flags indicating the file's lock status.

LockStatus Bits
7654 3210 Definition
xxxx xxx1 Locked exclusive
xxxx xx1x Locked shareable
xxxx x1xx Logged
x1xx xxxx Lock is held by TTS

LockNameLength indicates the length of the LockName that follows.

LockName is the name of the logical lock.

The requesting client must have console operator rights to make this call.

See Also

Get Logical Record Information (0x2222 23 240)


Get Logical Records By Connection (old) 0x2222 23 223

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (5) word (Hi-Lo) 9 SubFunctionCode (223) byte 10 TargetConnectionNumber word 12 LastRecordSeen word(Hi-Lo)

Reply Format

Offset Content Type (Reply Header) 8 NextRequestRecord word 10 NumberOfRecords byte (repeats NumberOfRecords times) 11 TaskNumber byte 12 LockStatus byte 13 LockNameLen byte 14 LockName byte[LockNameLen] . . . . . .

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights
253	0xFD	Bad Station Number

Remarks

This call returns the logical records that a connection has logged with the file server.

TargetConnectionNumber indicates the logical connection that has the record locked exclusively.

LastRecordSeen specifies the last record for which information is being returned. On the first call, LastRecordSeen must be set to zero. Subsequent calls should set LastRecordSeen to the value in NextRequestRecord returned in the previous reply message. If the value in NextRequestRecord is zero, the server has passed all information to the requesting client.

NextRequestRecord is the value that LastRecordSeen must be set to in the next call.

The following information is returned as many times as NumberOfRecords indicates.

TaskNumber indicates which task within the connection that has the record logged.

LockStatus contains the bit flags indicating the file's lock status.

LockStatus Bits
7654 3210 Definition
xxxx xxx1 Locked exclusive
xxxx xx1x Locked shareable
xxxx x1xx Logged
x1xx xxxx Lock is held by TTS

LockNameLength indicates the length of the LockName that follows.

LockName is the name of the logical lock.

The requesting client must have console operator rights to make this call.

See Also

Get Logical Record Information (old) (0x2222 23 224)

Get Logical Record Information (0x2222 23 240)

Get Logical Records By Connection (0x2222 23 239)


Get Network Serial Number 0x2222 23 18

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (18) byte

Reply Format

Offset Content Type (reply header) 9 ServerSerialNumber long (Lo-Hi) 13 ApplicationNumber word (Lo-Hi)

Completion Code

	  0	0x00	Successful
	150	0x96	Server Out Of Memory

Remarks

This NCP returns a file server's serial number and the application number. The combination of the server's serial number and the application number is unique.


Get Object's Remaining Disk Space 0x2222 23 230

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (5) word (Hi-Lo) 9 SubFunctionCode (230) byte 10 ObjectID long (Hi-Lo)

Reply Format

Offset Content Type (reply header) 8 SystemIntervalMarker long (Hi-Lo) 12 ObjectID long (Lo-Hi) 16 UnusedDiskBlocks long (Hi-Lo) 20 RestrictionsEnforced byte

Completion Code

	0	0x00	Successful
	150	0x96	Server Out Of Memory
	198	0xC6	No Console Rights

Remarks

This NCP returns the number of unused disk blocks available to the specified Object ID. A client can only obtain the information for the Object ID by which that client logged in; clients must have console operator rights to make this call for any other Object ID.

The Object ID indicates which Object ID requested the information.

SystemIntervalMarker indicates how long the file server has been up. This value is returned in units of approximately 1/18 of a second and is used to determine the amount of time that has elapsed between consecutive calls. When this field reaches 0xFFFFFFFF, the value wraps back to zero.

Configured Max Open Files contains the number of files the server can open simultaneously.

Unused Disk Blocks indicates how many blocks the file server has available to allocate to a bindery object.

Restrictions Enforced indicates whether the file server operating system can place limitations on disk resources (0x00 = enforced; 0xFF = not enforced).


Get Physical Record Locks By Connection And File 0x2222 23 237

v2.xv3.xv4.xv5.x


Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (22) word (Hi-Lo) 9 SubFunctionCode (237) byte 10 TargetConnectionNumber word (Lo-Hi) 12 DataStreamNumber byte 13 VolumeNumber byte 14 DirectoryBase long (Lo-Hi) 18 LastRecordSeen word (Lo-Hi)

Reply Format

Offset Content Type (reply header) 8 NextRequestRecord word (Lo-Hi) 10 NumberOfLocks word (Lo-Hi) (repeats NumberOfLocks times) 12 TaskNumber word (Lo-Hi) 14 LockType byte 15 RecordStart long (Lo-Hi) 19 RecordEnd long (Lo-Hi)

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights
253	0xFD	Bad Station Number
255	0xFF	No Files Found

Remarks

This NCP returns a logical connection's physical record locks within a file. This call can only be made by a client with console operator rights. The following request parameters are defined:

TargetConnectionNumber indicates the logical connection number of the client using the file.

The DataStreamNumber contains the data stream number if the name space is Macintosh. A value of 0 is the resource fork and a value of 1 is the data fork. If DOS, the value is always 0.

VolumeNumber identifies the volume on which the file exists.

The DirectoryBase is the Directory entry number, indicating the file or directory path. It is obtained from the File Search Initialize NCP (0x2222 62 --).

LastRecordSeen specifies the last record for which information is being returned. On the first call, LastRecordSeen must be set to zero. Subsequent calls should set LastRecordSeen to the value in NextRequestRecord returned in the previous reply message. If the value in NextRequestRecord is zero, the file server has passed all information to the requesting client.

The following reply parameters are defined:

NextRequestRecord contains the value to be placed in LastRecordSeen for the next iteration of this call. If NextRequestRecord is zero, all information has been returned.

NumberOfLocks indicates the number of physical record locks. It also indicates the number of records to follow. The following information is repeated the number of times indicated by the value in NumberOfLocks.

TaskNumber contains the number of the task that is using the file.

LockStatus contains the bit flags indicating the file's lock status:

LockStatus Bits
7654 3210 Definition
xxxx xxx1 Locked exclusive
xxxx xx1x Locked shareable
xxxx x1xx Logged
x1xx xxxx Lock is held by TTS

RecordStart is the byte offset (where the record begins) within the file.

RecordEnd is the byte offset (where the record ends) within the file.

This client must have console operator rights to make this call.

See Also

Get Physical Record Locks By File (0x2222 23 238)

Get Physical Record Locks


By Connection And File (old) 0x2222 23 221

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (22) word (Hi-Lo) 9 SubFunctionCode (221) byte 10 TargetConnectionNumber word 12 LastRecordSeen word 14 VolumeNumber byte 15 DirectoryID word 17 FileName byte[14]

Reply Format

Offset Content Type (Reply Header) 8 NextRequestRecord word 10 NumberOfLocks byte 11 Reserved byte (repeats NumberOfLocks times) 12 TaskNumber1 byte 13 LockType1 byte 14 RecordStart1 long(H/L) 18 RecordEnd1 long(H/L) . . . . . .

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights
253	0xFD	Bad Station Number
255	0xFF	No Files Found

Remarks

This call returns a logical connection's physical record locks within a file. This call can only be made by a client with console operator rights.

TargetConnectionNumber indicates the logical connection number of the client using the file.

LastRecordSeen specifies the last record for which information is being returned. On the first call, LastRecordSeen must be set to zero. Subsequent calls should set LastRecordSeen to the value in NextRequestRecord returned in the previous reply message. If the value in NextRequestRecord is zero, the file server has passed all information to the requesting client.

VolumeNumber identifies the volume on which the file exists.

DirectoryID is obtained from the File Search Initialize NCP and indicates the file path that is relative to this directory.

FileName names the file for which information is being requested.

NextRequestRecord contains the value to be placed in LastRecordSeen for the next iteration of this call. If NextRequestRecord is zero, all information has been returned.

NumberOfLocks indicates the number of physical record locks.

NumberOfRecords indicates the number of records to follow.

The following information is repeated the number of times indicated by the value in NumberOfRecords.

TaskNumber contains the number of the task that is using the file.

LockStatus contains the bit flags indicating the file's lock status:

LockStatus Bits
7654 3210 Definition
xxxx xxx1 Locked exclusive
xxxx xx1x Locked shareable
xxxx x1xx Logged
x1xx xxxx Lock is held by TTS

RecordStart is the byte offset (where the record begins) within the file.

RecordEnd is the byte offset (where the record ends) within the file.

This client must have console operator rights to make this call.

See Also

Get Physical Record Locks By Connection And File (0x2222 23 237)

Get Physical Record Locks By File (old) (0x2222 23 222)

Get Physical Record Locks By File (0x2222 23 238)


Get Physical Record Locks By File 0x2222 23 238

v2.xv3.xv4.xv5.x


Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (5+PathLen) word (Hi-Lo) 9 SubFunctionCode (238) byte 10 DataStreamNumber (Fork) byte 11 VolumeNumber byte 12 DirectoryBase long (Lo-Hi) 16 LastRecordSeen word (Lo-Hi)

Reply Format

Offset Content Type (reply header) 8 NextRequestRecord word (Lo-Hi) 10 NumberOfLocks word (Lo-Hi) (repeats NumberOfLocks times) 12 LoggedCount word (Lo-Hi) 14 ShareableLockCount word (Lo-Hi) 16 RecordStart long (Lo-Hi) 20 RecordEnd long (Lo-Hi) 24 LogicalConnectionNumber word (Lo-Hi) 26 TaskNumber word (Lo-Hi) 28 LockType word (Lo-Hi)

Completion Code

	  0	0x00	Successful
	150	0x96	Server Out Of Memory
	198	0xC6	No Console Rights
	253	0xFD	Bad Station Number
	255	0xFF	No Files Found

Remarks

This NCP returns a list of all physical records that are locked in a file. The following request parameters are defined:

The DataStreamNumber contains the data stream number if the name space is Macintosh. A value of 0 is the resource fork and a value of 1 is the data fork. If DOS, the value is always 0.

VolumeNumber identifies the volume on which the file exists.

The DirectoryBase is the Directory entry number, indicating the file or directory path. It is obtained from the File Search Initialize NCP (0x2222 62 --).

LastRecordSeen indicates the last record for which information is being returned. On the first call, LastRecordSeen must be set to zero. Subsequent calls should use the value returned by the file server in NextRequestRecord. If the value in the NextRequestRecord field is zero, the file server has returned all information to the client.

The following reply parameters are defined:

NextRequestRecord contains the value to be placed in the LastRecordSeen field for the next iteration of this call. If NextRequestRecord is zero, all information has been returned.

NumberOfLocks is the number of physical record locks. It also indicates the number of records to follow. The following information is repeated the number of times indicated by the value in NumberOfLocks.

LoggedCount indicates the number of tasks that have the record logged.

ShareableLockCount indicates the number of tasks that have the record locked shareable.

RecordStart is the byte offset (where the record begins) within the file.

RecordEnd is the byte offset (where the record ends) within the file.

LogicalConnectionNumber indicates which logical connection has the record locked exclusively.

TaskNumber contains the task number within the logical connection that has the record locked exclusively.

LockType is a flag indicating the type of lock on the file:

ValueDefinition
0x00Not locked
0xFELocked by a file lock
0xFFLocked by Begin Share File Set

A client must have console operator rights to make this call.

See Also

Get Physical Records Locks By Connection And File (0x2222 23 237)


Get Physical Record Locks By File (old) 0x2222 23 222

v2.xv3.xv4.xv5.x




Request Format

	Offset	Content				Type
	(Request Header)
	 6	FunctionCode	(23)		byte
	 7	SubFunctionStrucLen	(5+PathLen) word (Hi-Lo)
	 9	SubFunctionCode 	(222)	byte
	10	LastRecordSeen			word
	12	DirectoryHandle			byte
	13	PathLen				byte
	14	FilePath 			byte[PathLen]

Reply Format

Offset Content Type (Reply Header) 8 NextRequestRecord word 10 NumberOfLocks byte 11 Reserved byte (repeats NumberOfLocks times) 12 LoggedCount word 14 ShareableLockCount word 16 RecordStart long 20 RecordEnd long 24 LogicalConnectionNumber word 26 TaskNumber byte 27 LockType byte . . . . . .

Completion Code

0 0x00 Successful

150 0x96 Server Out Of Memory

198 0xC6 No Console Rights

253 0xFD Bad Station Number

255 0xFF No Files Found

Remarks

This call returns a list of all physical records that are locked in a file.

LastRecordSeen indicates the last record for which information is being returned. On the first call, LastRecordSeen must be set to zero. Subsequent calls should use the value returned by the file server in NextRequestRecord. If the value in the NextRequestRecord field is zero, the file server has returned all information to the client.

DirectoryHandle indicates the file path that is relative to this directory.

PathLength indicates the length of File Path.

FilePath is the path and name of the file for which information is being requested.

NextRequestRecord contains the value to be placed in the LastRecordSeen field for the next iteration of this call. If NextRequestRecord is zero, all information has been returned.

NumberOfLocks is the number of physical record locks. It also indicates the number of records to follow. The following information is repeated the number of times indicated by the value in NumberOfLocks.

TaskNumber contains the number of the task that is using the file.

LoggedCount indicates the number of tasks that have the record logged.

ShareableLockCount indicates the number of tasks that have the record locked shareable.

RecordStart is the byte offset (where the record begins) within the file.

RecordEnd is the byte offset (where the record ends) within the file.

LogicalConnectionNumber indicates which logical connection has the record locked exclusively.

TaskNumber contains the task number within the logical connection that has the record locked exclusively.

LockType is a flag indicating the type of lock on the file:

ValueDefinition
0x00Not locked
0xFELocked by a file lock
0xFFLocked by Begin Share File Set

A client must have console operator rights to make this call.

See Also

Get Physical Record Locks By File (0x2222 23 238)

Get Physical Record Locks By Connection And File (old) (0x2222 23 221)

Get Physical Record Locks By Connection And File (0x2222 23 237)


Get Semaphore Information 0x2222 23 242

v2.xv3.xv4.xv5.x


Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (4+SemaphoreNameLen) word (Hi-Lo) 9 SubFunctionCode (242) byte 10 LastRecordSeen word (Lo-Hi) 12 SemaphoreNameLen byte 13 SemaphoreName byte[SemaphoreNameLen]

Reply Format

Offset Content Type (reply header) 8 NextRequestRecord word (Lo-Hi) 10 OpenCount word (Lo-Hi) 12 SemaphoreValue word (Lo-Hi) 14 NumberOfRecords word (Lo-Hi) (repeats NumberOfRecords times) 16 LogicalConnectionNumber word (Lo-Hi) 18 TaskNumber word (Lo-Hi) . . . . . .

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This NCP returns information about a single semaphore. This call should be used iteratively when a logical connection has more semaphores than can be placed in the reply message.

LastRecordSeen indicates the last record for which information is being returned. On the first call, LastRecordSeen must be set to zero. Subsequent calls should use the NextRequestRecord returned by the file server. If the value in the NextRequestRecord field is zero, the file server has returned all information to the client.

SemaphoreNameLen is the length of SemaphoreName.

SemaphoreName is the name that identifies the semaphore.

NextRequestRecord contains the record number to be placed in LastRecordSeen for the next iteration of this call. If NextRequestRecord is zero, all records have been returned.

OpenCount indicates the number of logical connections that have this semaphore open.

SemaphoreValue indicates the current value of the semaphore (-127..128). A negative value is usually interpreted as the number of workstations waiting for the service represented by the semaphore. A positive value is usually interpreted as the number of free resources available in the resource pool governed by the semaphore.

The following information is repeated the number of times indicated by the value in NumberOfRecords.

LogicalConnectionNumber indicates the logical connection using the semaphore.

TaskNumber indicates which task within the logical connection has the semaphore open.

The requesting workstation have console operator rights to make this call.

See Also

Get Connection's Semaphore's (0x2222 23 241)


Get Semaphore Information (old) 0x2222 23 226

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (4+SemaphoreNameLen) word (Hi-Lo) 9 SubFunctionCode (226) byte 10 LastRecordSeen word 12 SemaphoreNameLen byte 13 SemaphoreName byte[SemaphoreNameLen]

Reply Format

Offset Content Type (Reply Header) 8 NextRequestRecord word (Hi-Lo) 10 OpenCount word (Hi-Lo) 12 SemaphoreValue byte 13 NumberOfRecords byte (repeats NumberOfRecords times) 14 LogicalConnectionNumber word (Hi-Lo) 16 TaskNumber byte . . . . . .

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This call returns information about a single semaphore. This call should be used iteratively when a logical connection has more semaphores than can be placed in the reply message.

LastRecordSeen indicates the last record for which information is being returned. On the first call, LastRecordSeen must be set to zero. Subsequent calls should use the NextRequestRecord returned by the server. If the value in the NextRequestRecord field is zero, the server has returned all information to the client.

SemaphoreNameLen is the length of SemaphoreName.

SemaphoreName is the name that identifies the semaphore.

NextRequestRecord contains the record number to be placed in LastRecordSeen for the next iteration of this call. If NextRequestRecord is zero, all records have been returned.

OpenCount indicates the number of logical connections that have this semaphore open.

SemaphoreValue indicates the current value of the semaphore (-127 through 128). A negative value is usually interpreted as the number of workstations waiting for the service represented by the semaphore. A positive value is usually interpreted as the number of free resources available in the resource pool governed by the semaphore.

The following information is repeated the number of times indicated by the value in NumberOfRecords.

LogicalConnectionNumber indicates the logical connection using the semaphore.

TaskNumber indicates which task within the logical connection has the semaphore open.

The requesting workstation have console operator rights to make this call.

See Also

Get Semaphore Information (0x2222 23 242)


Get Transaction Tracking Statistics 0x2222 23 213

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (213) byte

Reply Format

Offset Content Type (Reply Header) 8 SystemIntervalMarker long (Hi-Lo) 12 TransactionTrackingSupported byte 13 TransactionTrackingEnabled byte 14 TransactionVolumeNumber word 16 ConfiguredMaxSimultaneousTransactions word 18 ActualMaxSimultaneousTransactions word 20 CurrentTransactionCount word 22 TotalTransactionsPerformed long 26 TotalWriteTransactionsPerformed long 30 TotalTransactionsBackedOut long 34 TotalUnfilledBackoutRequests word 36 TransactionDiskSpace word 38 TransactionFATAllocations long 42 TransactionFileSizeChanges long 46 TransactionFilesTruncated long 50 NumberOfEntries byte (repeat NumberOfEntries times) 51 ConnectionNumber byte 52 TaskNumber byte

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This function returns statistical information about a file server's transaction tracking system.

SystemIntervalMarker indicates how long the file server has been up. This value is returned in units of approximately 1/18 of a second and is used to determine the amount of time that has elapsed between consecutive calls. When this field reaches 0xFFFFFFFF, it wraps back to zero.

TransactionTrackingSupported indicates whether the server supports transaction tracking. If this field contains a zero, the file server is not an SFT file server, and the contents of all the other fields returned by this function will be undefined.

TransactionTrackingEnabled indicates whether the server's transaction tracking system is enabled. Transaction tracking is disabled when the volume on which the transaction files reside is filled or when a call to Disable Transaction Tracking (function 23, subfuctnion 207) is made.

TransactionVolumeNumber identifies the transaction's volume in the Volume Table maintained by the file server. The Volume Table contains information about each volume on the file server. A file server running NetWare v2.1 and above can accommodate up to 32 volumes (0..31).

ConfiguredMaxSimultaneousTransactions indicates the maximum number of transactions that the server can track simultaneously.

ActualMaxSimultaneousTransactions indicates the maximum number of transactions that have occurred simultaneously since the server was brought up.

CurrentTransactionCount indicates the number of transactions in progress.

TotalTransactionsPerformed indicates the total transactions performed by the server since it was brought up. When this value reaches 0xFFFFFFFF, it wraps back to zero.

TotalWriteTransactions Performed indicates the total number of transactions that required the file server to track file changes. If a workstation requests a transaction but does not actually modify (write) a file, then the transaction tracking software ignores the transaction.

TotalTransactionsBacked Out indicates the total number of transactions that the transaction tracking system has backed out since the file server was brought up. Backouts occur if a workstation requests a backout or if a workstation fails during a transaction. The value in this field includes backout requests the file server could not perform because transaction tracking was disabled.

TotalUnfilledBackoutRequests indicates the number of transaction backout requests that failed because transaction tracking was disabled.

TransactionDiskSpace indicates the number of disk blocks being used by the transaction tracking software (1 block = 4,096 bytes).

TransactionFATAllocations indicates the number of blocks that have been allocated for FATs of files being tracked since the server was brought up (1 block = 4,096 bytes).

TransactionFileSizeChanges indicates the number of times files being tracked changed their size within a transaction since the server was brought up.

TransactionFilesTruncated indicates the number of times files being tracked have been truncated within a transaction since the server was brought up.

The following information is repeated the number of times indicated by NumberOfEntries.

ConnectionNumber indicates which logical connection is involved in a transaction.

TaskNumber indicates which task within a logical connection is involved in a transaction.

See Also

Transaction Tracking Services NCPs


Get Volume Information 0x2222 23 233

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (2) word (Hi-Lo) 9 SubFunctionCode (233) byte 10 VolumeNumber byte

Reply Format

Offset Content Type (Reply Header) 8 SystemIntervalMarker long 12 VolumeNumber byte 13 LogicalDriveNumber byte 14 BlockSize word 16 StartingBlock word 18 TotalBlocks word 20 FreeBlocks word 22 TotalDirectoryEntries word 24 FreeDirectoryEntries word 26 ActualMaxUsedDirectoryEntries word 28 VolumeHashedFlag byte 29 VolumeCachedFlag byte 30 VolumeRemovableFlag byte 31 VolumeMountedFlag byte 32 VolumeName byte[16]

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
152	0x98	Disk Map Error
198	0xC6	No Console Rights

Remarks

This call returns information about a specified volume. A client must have console operator rights to make this call.

SystemIntervalMarker indicates how long the file server has been up. This value is returned in units of approximately 1/18 of a second and is used to determine the amount of time that has elapsed between consecutive calls. When this field reaches 0xFFFFFFFF, it wraps back to zero.

VolumeNumber identifies the volume in a volume table in the file server. The volume table contains information about each volume on the file server. A NetWare v2.1 file server can accommodate up to 32 volumes (0..31).

Logical Drive Number is the logical drive number of the drive on which the volume exists.

Block Size is the number of 512-byte sectors contained in each block of the specified volume.

Starting Block indicates the number of the first block of the volume.

Total Blocks indicates the total number of blocks in the specified volume.

Free Blocks indicates the total number of unused blocks in the specified volume.

Total Directory Entries indicates the number of directory slots that are allocated for the specified volume.

Free Directory Entries indicates the number of unused directory slots.

Actual Max Used Directory Entries indicates the most directory slots ever used at one time on the volume.

Volume Hashed Flag indicates whether the volume is hashed in file server memory

(0 = not hashed).

Volume Cached Flag indicates whether the volume is cached in file server memory

(0 = volume not cached).

Volume Removable Flag indicates whether a user can physically remove the volume from the file server (0 = disk cannot be removed).

Volume Mounted Flag indicates whether the volume is physically mounted in the file server (0 = volume is not mounted).

Volume Name is the name given to the volume. Volume Name can be 1 to 16 characters long. It cannot contain spaces or the characters * ? : \ or /. If it is less than 16 characters, the remaining characters must all be the null character.

See Also

Get Volume Extended Information (0x2222 23 246)


Read Disk Cache Statistics 0x2222 23 214

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (1) word (Hi-Lo) 9 SubFunctionCode (214) byte

Reply Format

Offset Content Type (Reply Header) 8 SystemIntervalMarker long 12 CacheBufferCount word 14 CacheBufferSize word 16 DirtyCacheBuffers word 18 CacheReadRequests long 22 CacheWriteRequests long 26 CacheHits long 30 CacheMisses long 34 PhysicalReadRequests long 38 PhysicalWriteRequests long 42 PhysicalReadErrors word 44 PhysicalWriteErrors word 46 CacheGetRequests long 50 CacheFullWriteRequests long 54 CachePartialWriteRequests long 58 BackgroundDirtyWrites long 62 BackgroundAgedWrites long 66 TotalCacheWrites long 70 CacheAllocations long 74 ThrashingCount word 76 LRUBlockWasDirty word 78 ReadBeyondWrite word 80 FragmentWriteOccurred word 82 CacheHitOnUnavailableBlock word 84 CacheBlockScrapped word

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This call returns statistical information about a file server's caching. A client must have console operator rights to make this call.

SystemIntervalMarker indicates how long the file server has been up. This value is returned in units of approximately 1/18 of a second and is used to determine the amount of time that has elapsed between consecutive calls. When this field reaches 0xFFFFFFFF, it wraps back to zero.

Cache Buffer Count indicates the number of cache buffers in the server.

Cache Buffer Size indicates the number of bytes in a cache buffer.

Dirty Cache Buffers indicates the number of cache buffers in use.

Cache Read Requests indicates the number of times the cache software received a request to write data to the disk.

Cache Write Requests indicates the number of times the cache software received a request to write data to the disk.

Cache Hits indicates the number of times cache requests were serviced from existing cache blocks.

Cache Misses indicates the number of times cache requests could not be serviced from existing cache blocks.

Physical Read Requests indicates the number of times the cache software issued a physical read request to a disk driver. (A physical read request reads in as much data as the cache block holds.)

Physical Write Requests indicates the number of times the cache software issued a physical write request to a disk driver.

Physical Read Errors indicates the number of times the cache software received an error from the disk driver on a disk read request.

Physical Write Errors indicates the number of times the cache software received an error from the disk driver on a disk write request.

Cache Get Requests indicates the number of times the cache software received a request to read information from the disk.

Cache Full Write Requests indicates the number of times the cache software was requested to write information to disk that exactly filled one or more sectors.

Cache Partial Write Requests indicates the number of times the cache software was requested to write information to disk that did not exactly fill a sector. (Partial write requests require a disk preread.)

Background Dirty Writes indicates the number of times a cache block that was written to disk was completely filled with information. (The whole cache block was written.)

Background Aged Writes indicates the number of times the background disk write process wrote a partially filled cache block to disk. (The cache block was written to disk because the block had not been accessed for a significant period of time.)

Total Cache Writes indicates the total number of cache buffers written to disk.

Cache Allocations indicates the number of times a cache block was allocated for use.

Thrashing Count indicates the number of times a cache block was not available when a cache block allocation was requested.

LRU Block Was Dirty indicates the number of times the Least-Recently-Used cache block allocation algorithm reclaimed a dirty cache block.

Read Beyond Write indicates the number of times a file read request was received for data not yet written to disk (due to file write requests that had not yet filled the cache block). (This requires a disk preread.)

Fragment Write Occurred indicates the number of times a dirty cache block contained noncontiguous sectors of information to be written, and the skipped sectors were not preread from the disk. (Multiple disk writes were issued to write out the cache buffer.)

Cache Hit On Unavailable Block indicates the number of times a cache request could be serviced from an available cache block but the cache buffer could not be used because it was in the process of being written to or read from disk.

Cache Block Scrapped contains the number of times a cache block was scrapped. The following describes why a cache block is scrapped:

A process is put to sleep because it needs a cache block and the least-recently-used (LRU) cache block had to be written to disk before it could be reused. When the process is awakened after the LRU cache block has been written and freed, the process discovers that while it was asleep a second process has allocated a different cache block into which it (the second process) has read the information needed by the first (sleeping) process. Now, in order for the first process to access the information in the cache block allocated by the second process, the first process must free ("scrap") its cache block.

See Also

Read Physical Disk Statistics (0x2222 23 216)


Read Physical Disk Statistics 0x2222 23 216

v2.xv3.xv4.xv5.x




Request Format

Offset Content Type (Request Header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (2) word (Hi-Lo) 9 SubFunctionCode (216) byte 10 PhysicalDiskNumbe byte

Reply Format

Offset Content Type (Reply Header) 8 SystemIntervalMarker long 12 PhysicalDiskChannel byte 13 DriveRemovableFlag byte 14 PhysicalDriveType byte 15 ControllerDriveNumber byte 16 ControllerNumber byte 17 ControllerType byte 18 DriveSize long 22 DriveCylinders word 24 DriveHeads byte 25 SectorsPerTrack byte 26 DriveDefinitionString byte[64] 90 IOErrorCount word 92 HotFixTableStart long 96 HotFixTableSize word 98 HotFixBlocksAvailable word 100 HotFixDisabled byte

Completion Code

  0	0x00	Successful
150	0x96	Server Out Of Memory
198	0xC6	No Console Rights

Remarks

This call returns statistics about a specified disk. A client must have console operator rights to make this call.

SystemIntervalMarker indicates how long the file server has been up. This value is returned in units of approximately 1/18 of a second and is used to determine the amount of time that has elapsed between consecutive calls. When this field reaches 0xFFFFFFFF, it wraps back to zero.

Physical Disk Channel indicates the disk channel to which the disk unit is attached.

Drive Removable Flag indicates whether a disk is removable (0 = nonremovable).

Physical Drive Type indicates the type of drive.

Drive TypeDescription
1XT
2AT
3SCSI
4disk coprocessor
5PS/2 with MFM Controller
6PS/2 with ESDI Controller
7Convergent Technology SBIC
50..255Value-Added Disk Drive.

Controller Drive Number indicates the drive number of the disk unit relative to the controller number.

Controller Number contains the address on the physical disk channel of the disk controller.

Controller Type contains the number identifying the type (make and model) of the disk controller.

Drive Size indicates the size of the physical drive in blocks (1 block = 4,096 bytes). The drive size does not include the portion of the disk reserved for Hot Fix redirection in the event of media errors.

Drive Cylinders indicates the number of physical cylinders on the drive.

Drive Heads indicates the number of disk heads on the drive.

Sectors Per Track indicates the number of sectors on each disk track (1 sector = 512 bytes).

Drive Definition String contains the make and model of the drive (null-terminated string).

IO Error Count indicates the number of times I/O errors have occurred on the disk since the server was brought up.

Hot Fix Table Start indicates the first block of the disk Hot Fix Redirection Table. This field is only meaningful with SFT NetWare Level I or above. The redirection table is used to replace bad disk blocks with usable blocks in the event that a media failure occurs on the disk.

Hot Fix Table Size indicates the total number of redirection blocks set aside on the disk for Hot Fix redirection. Some or all of these blocks may be in use. This field is only meaningful with SFT NetWare Level I or above. To determine the number of redirection blocks still available for future use, see the Hot Fix Blocks Available field.

Hot Fix Blocks Available indicates the number of redirection blocks that are still available. This field is only meaningful on SFT NetWare Level I or above.

Hot Fix Disabled indicates whether Hot Fix is enabled or disabled. This field is only meaningful with SFT NetWare Level I or above (0 = enabled).

See Also

Read Disk Cache Statistics (0x2222 23 214)


Send Console Broadcast 0x2222 23 253

v2.xv3.xv4.xv5.x


Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen * word (Hi-Lo) 9 SubFunctionCode (253) byte 10 NumberOfStations byte 11 StationList long[NumberOfStations] 11+(NumberOfStations*4) MessageLen byte 12+(NumberOfStations*4) BroadcastMessage byte[MessageLen]

* SubFuncStrucLen = 3 + (NumberOfStations*4) + MessageLen

Reply Format

Offset Content Type (reply header)

Completion Code

	  0	0x00	Successful
	198	0xC6	No Console Rights
	253	0xFD	Bad Station Number

Remarks

This NCP sends a message to a list of logical connections. A message will not reach a station that has disabled broadcasts or is not logged in. The requesting client must have console operator rights.

Send Console Broadcast can accept messages up to 250 bytes in length.

See Also

Message NCPs


Send Console Broadcast (old) 0x2222 23 209

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen * word (Hi-Lo) 9 SubFunctionCode (209) byte 10 NumberOfStations byte 11 StationList byte[NumberOfStations] 11+NumberOfStations MessageLen byte 12+NumberOfStations BroadcastMessage byte[MessageLen]

* SubFuncStrucLen = 3 + NumberOfStations + MessageLen

Reply Format

Offset Content Type (reply header)

Completion Code

	  0	0x00	Successful
	198	0xC6	No Console Rights
	253	0xFD	Bad Station Number

Remarks

This call sends a message to a list of logical connections. A message will not reach a station that has disabled broadcasts or is not logged in. The requesting client must have console operator rights.

See Also

Send Console Broadcast (0x2222 23 253)

Message NCPs


Set File Server Date And Time 0x2222 23 202

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (7) word (Hi-Lo) 9 SubFunctionCode (202) byte 10 CurrentYear (0 to 99) byte 11 CurrentMonth (1 to 12) byte 12 CurrentDay (1 to 31) byte 13 CurrentHour (0 to 23) byte 14 CurrentMinute (0 to 59) byte 15 CurrentSecond (0 to 59) byte

Reply Format

Offset Content Type (reply header)

Completion Code

	0	0x00	Successful
	198	0xC6	No Console Rights

Remarks

This NCP sets the file server's date and time.

If an invalid value is specified (for example, 250 for Current Month), an error is not returned; instead, the file server is set to an undefined but valid date and time. The requesting client must have console operator or supervisor rights.

Year contains a value from 0 to 99; values from 80 to 99 correspond to the years 1980 through 1999, while values from 0 to 79 correspond to the years 2000 through 2079.

Month contains a value from 1 to 12 corresponding to months January to December.

Day contains a value from 1 to 31 indicating the current day of the month.

Hour contains a value from 0 to 23. Zero (0) is midnight; 23 is 11 p.m.

Minute contains a value from 0 to 59 indicating the current minute in the hour.

Second contains a value from 0 to 59 indicating the current second in the minute.

See Also

Get File Server Date And Time (0x2222 20 --)


Verify Serialization 0x2222 23 12

v2.xv3.xv4.xv5.x

Request Format

Offset Content Type (request header) 6 FunctionCode (23) byte 7 SubFuncStrucLen (5) word (Hi-Lo) 9 SubFunctionCode (12) byte 10 ServerSerialNumber long (Lo-Hi)

Reply Format

Offset Content Type (reply header) 8 ServerApplicationNumber word (Lo-Hi)

Completion Code

	  0	0x00	Successful
	255	0xFF	Failure

Remarks

This call tests the specified server serial number to see if it matches the serial number of the client's server. If the serial number matches, the server returns its server application number for further checking by the client. If not, the server destroys the client's service connection.