Configures and controls Fast Connect servers.
net [ help | start | stop | pause | resume | config | status | statistics | trace | share ]
The net command configures and controls Fast Connect servers.
help | Displays help on the subcommand. |
start | Starts the server. |
stop | Stops the server. |
pause | Stops the server temporarily. |
resume | Resumes the paused server. |
config | Lists and changes configuration parameters for the server. |
status | Gives status of the server. |
statistics | Gives statistics on server resources. |
trace | Turns the server tracing on and off. |
share | Lists, adds or deletes file and printer shares on the server. |
or
net subcommand help
It can start the server only if the server process is already loaded but the server is in stopped (not running) state. The server can be in this state either in the beginning when the process was started at system initialization time or after stopping the server using net stop.
/load | Loads the server process if it is not already loaded. |
0 | The server (%s) is already running. |
0 | The server (%s) has started successfully. |
1 | Syntax error was detected: Unknown keyword or command option (%s). |
2 | The server (%s) could not be started because its process was not running. |
3 | The request is not valid for the current state of the server (%s). |
4 | Operation could not be performed. |
/unload | Unloads the server process. |
0 | The server (%s) has stopped successfully. |
0 | The server (%s) has stopped and its process unloaded successfully. |
1 | Syntax error detected: Unknown keyword or command option (%s). |
2 | The request is not valid for the current state of the server (%s). |
3 | Error in unloading the server process on the server (%s). |
4 | Operation could not be performed. |
5 | Either cifsPrintServer is not running or it could not be terminated. |
0 | The server (%s) has paused successfully. |
1 | Syntax error detected: Unknown keyword or command option (%s). |
2 | The request is not valid for the current state of server |
3 | Operation could not be performed. |
0 | The server (%s) has resumed successfully. |
1 | Syntax error detected: Unknown keyword or command option (%s). |
2 | The request is not valid for the current state of server |
3 | Operation could not be performed. |
Syntax1 | Lists the configuration parameters. |
Syntax2 | Lists all the components or groups of configuration parameters for the server. |
Syntax3 | Adds or changes the given parameter for the given component cname. |
Syntax4 | Lists the entry for the given parameter for the given component cname from the configuration file. |
Note: The configuration parameter can only be changed by the root user.
/listparm | Lists the given parameter for the given component. |
/component:cname | Specifies the component in the configuration file
whose parameter needs to be added or changed.
Valid values for cname are smbserver,
and
one of the shares specified
for shares parameter of the smbserver.
The default component is smbserver.
The parameter can be one of the following:
|
0 | Command completed successfully. |
1 | Syntax error: Unknown keyword or command option (%s). |
2 | Command could not be executed. Invalid parameter value (%s). |
3 | Operation could not be performed. |
Server Name ........ Server Description ........ Domain Name ........ AIX Fast Connect Software version ........ Guest ID Name ........
adapters = tr0 tr1 and shares = file0 print1)
smbserver tr0 tr1 file0 print1
adapters = tr0 tr1 and shares = file0 print1
tr0 tr1
file0 print1
0 | Server (%s) is running. |
1 | Syntax error: Unknown keyword or command option (%s). |
2 | Server (%s) is not running. |
3 | Server (%s) has been paused. |
4 | Operation could not be performed |
/reset | Resets all statistic fields for the server. |
0 | Command completed successfully. |
1 | Syntax error: Unknown keyword or command option (%s). |
2 | Operation could not be performed. |
Sessions started ..... Sessions timedout ..... Sessions dropped ..... Password Errors ..... Permission Errors ..... System Errors ..... Bytes sent low ..... Bytes sent high ..... Bytes received low ..... Bytes received high ..... Average response ..... Request buffer failures ..... Big buffer failures ..... Jobs queued .....
/on | Turns tracing on. |
/off | Turns tracing off. |
0 | Command completed successfully. |
1 | Syntax error: Unknown keyword or command option (%s). |
2 | Operation could not be performed. |
Note: To change a share, you must first delete it and then add it again.
/add | Adds a share to the server. |
/deletes | Deletes a share from the server. |
/infolevel | Specifies the level of information desired. Default level is 1. Valid values are 0, 1 and 2 and 99. |
/type | Specifies the share type. Valid values are file and printer. Default value is file. |
/netname:share_name | Name of the share that is to be listed, added or deleted. Without this option, all shares will be listed. |
/path:path_name | Absolute pathname of the share which must be specified if it is of type file. |
/printq:qname | Name of the share queue which must be specified if it is of type printer. |
/print_options:ostr | String specifying printer options. |
/desc:desc | Brief description of the share. |
0 | Command completed successfully. |
1 | Syntax error: Unknown keyword or command option (%s). |
2 | Operation could not be performed. |
3 | Command could not be executed. Invalid value (%s) of parameter. |
4 | Syntax Error: The share path or queue name must be specified. |
5 | Error adding the share - share name already exists. |
6 | Error deleting the share - share name not found. |
7 | The configuration file could not be updated to reflect the current change. |
netname1 netname2 ... netnamen
Share Name Share Type Path Name or Share Description Queue Name ----------- ---------- --------------- ------------------ netname1 File /home/name/xxx File Description netname2 Printer lpq1 Printer Description ...... ...... .... .......... netnamen Printer lpq2 Printer Description
netname:%s:type:%s:path:%s:printq:%s:print_options:%s:desc:%s::