NET(C) UNIX System V
Name
net - Controls functions.
Syntax
net [ use | stat | name | start | stop ]
Description
The net command is used to connect to another network
machine, get network status information, and start or stop
the network.
The use option is utilized when Server-based validation is
in effect. This option is unnecessary when accessing a
remote machine as a trusted consumer. The command format
is:
net use alias //remote_machine/net_name [password]]
[-d]
Where:
⊕ alias is the shortname that refers to the root directory
of the remote computer specified in the name field.
⊕ //remote_machine is the name of the remote Server.
⊕ net_name has one of two meanings:
⊕ On a UNIX Server, it is a user name listed in the
Servers /etc/passwd file. The user name determines the
user ID number used when accessing the remote machine.
For UNIX users, subsequent references to //alias will
be treated as references to the remote machine's root
directory.
⊕ On an MS-DOS Server, it is a network name that is
associated with a resource via the NET SHARE command.
⊕ password is the password associated with the local_name.
⊕ On a UNIX Server, it is the login password for
net_name.
⊕ On an MS-DOS Server, it is the password given the
resource with the NET SHARE command.
⊕ -d requests the termination of the connection.
The net stat option displays a table of information about
the network status of the local Consumer and Server
connections. The banner statement at the top of the table
shows the version number of the network is running on the
local computer, the name of the local computer, whether the
Server or Consumer is running on the computer, and the date
and time. The following list explains the title and
contents of each information column:
Consuming from indicates which Server is being
accessed from the local Consumer.
VC State indicates if the connection between
a Consumer and Server is actively
in use at the time the net stat
command is entered.
⊕ Aborted indicates an error has
occured on this circuit. Usually
this circuit can be reestablished
and used automatically, but it is
sometimes necessary to use
vcabort(C).
⊕ Active shows that the circuit is
currently in use, meaning a local
process has a current directory or
open file on the remote machine.
⊕ Dormant means the circuit is
established and ready for use, but
is not currently in use by any
local process.
dialect shows which operating system is
communicating through the network
connection.
vcid is the ID number of the particular
virtual circuit listed.
nprocs is the number of Consumer processes
which have open files or current
directories on the remote Server.
ntrans is the number of request/reply
transaction made across the virtual
circuit.
The net name command displays the local computer node name.
Use the net start command to start the network. The
net start command has the following syntax:
net start [rdr | consumer]
Where rdr or consumer starts the local computer as a
Consumer.
Use the net stop command to stop the network. The net stop
command has the following syntax:
net stop [rdr | consumer]
Where rdr or consumer stops the local computer as a
Consumer.
Files
/usr/lib/xnet/xnet.servers
/usr/lib/xnet/xnet.names
See Also
xfs(C), xfc(C), vcabort(C)
(printed 11/30/89) NET(C)