This command retrieves the status of a session. When calling this command, ncb_buffer is set to a block of memory that will be filled with a SESSION_HEADER structure followed by one or more SESSION_BUFFER structures. If the first byte of ncb_name is an asterisk (*), this command obtains the status for all sessions associated with all names in the local name table. If the supplied buffer is too small, the error NRC_INCOMP (0x06) is returned. If the buffer length is less than 4, the error returned is NRC_BUFLEN (0x01).
| Field | In/Out | Required |
|---|---|---|
| ncb_command | IN | X |
| ncb_retcode | OUT | |
| ncb_lsn | ||
| ncb_num | OUT | |
| ncb_buffer | IN | X |
| ncb_length | IN | X |
| ncb_callname | ||
| ncb_name | IN | X |
| ncb_rto | ||
| ncb_sto | ||
| ncb_post | IN | |
| ncb_lana_num | IN | X |
| ncb_cmd_cplt | OUT | |
| ncb_event | IN |