nwsaputil(1Mipx)


nwsaputil -- start/stop advertising local server, or display information on permanently advertised servers

Synopsis

nwsaputil [-a | -d | -q] [-t type] [-s socket] [-n name]

Description

Use nwsaputil on the UnixWare command line to stop or start advertising a local server, or to query the contents of the sapouts file (which contains information about servers advertised with the permanent option).

Options

-a
Advertise a specified server and add it to the sapouts file. You must use -t and -s with this option. You can also use -n to specify the server name. If you do not use -n, the configured UnixWare workstation name is used as the server name.

You must be the root user to use this option. You cannot use -d or -q with this option.

-d
Stop advertising a specified server and delete it from the sapouts file.

You must use -t with this option. You can also use -n to specify the server name. If you do not use -n, the configured UnixWare workstation name is used as the server name.

You must be the root user to use this option. You cannot use -d or -q with this option.

-q
Query contents of the sapouts file. You can use -t, -s, and -n individually or together as a filter of the responses. You cannot use -a or -d with this option.

-t type
Specify server type. Replace type with the type of server. The type can be specified in hexadecimal (0xn), octal (0n), or decimal (n).

-s socket
Specify server socket number. Replace socket with the socket number. The socket number can be specified in hexadecimal (0xn), octal (0n), or decimal (n).

-n name
Specify server name. Replace name with the server name. The server name is not case sensitive (you can use either uppercase or lowercase characters).

References

nwsapinfo(1ipx)

Examples

To advertise print server BOB with socket number 0x4068 and add it to the sapouts file, enter:

nwsaputil -a -s0x4068 -t0x0047 -nbob

To advertise the workstation as type 6754 with socket number octal 467 and add it to the sapouts file, enter:

nwsaputil -a -s0467 -t6754

To stop advertising a server called WORK_SERVER with type 345 and remove it from the sapouts file, enter:

nwsaputil -d -t345 -nwork_server

To query all contents of the sapouts file, enter:

nwsaputil -q

To query all contents with server name LOCAL_SERVER, enter:

nwsaputil -q -nlocal_server


30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.