User Guide
DDOC0108-000-A2
CNS4 CSfC
11 - 32
Command Line Interface
Revision 0.0
11.2.23
serv
Syntax
serv [-h | --help | --version]
serv [-a val] [-n val] [-w val] [-h val] [-f val] [-d val] [-t val]
serv --boot [-a val] [-n val] [-w val] [-h val] ...
Description
The serv command allows the user to set the boot configuration for CNS4 services and to
manually start/stop services. When no options are given, the current boot configuration and
active status is displayed for all the services.
Options
-h, --help.............................. Print help message.
--version .............................. Print program version.
-B, --boot ............................. Apply the settings to the boot-time configuration.
-a, --all <num> .................... All Services
--nas <num>........................ All NAS Services. (CIFS, NFS, FTP, HTTP and TFTP)
-c, --cifs <num> ................... CIFS Service
-n, --nfs <num> ................... NFS Service
-f, --ftp <num> ..................... FTP Service
-w, --http <num>.................. HTTP Read Service
-d, --dhcp <num>................. DHCP Service
-s, --snmp <num>................ SNMP Service
-i, --iscsi <num> .................. iSCSI Service
-m, --mnt <num> ................. Mount NAS partitions
--force.................................. Force active services using nas volumes to stop when unmounting (--
mnt 0) nas disk volumes.
--wrap <0,1> ....................... Output word wrap. 1=word wrap 0=no wrap. Default:1
--sw ..................................... Generate single line machine output.
--fsep "<char>" ................... Specify field separation character for machine output. When used --
sw or --fsep should be the first argument.Enumerated Type
<num>................................. Selects server state. 0=Disable, 1=Enable, 2=Use boot setting.
Enumerated type:
<num>................................. Selects server state. 0=Disable, 1=Enable, 2=Use boot setting
Example 1
. Status/configuration display
Line Identifier
BOOTCFG .......................... Reports of service states to be applied at boot-up.
LIVECFG............................. Reports the current operation state of each service.
NOTE
The 'status' field appears on the same line as the others. The example output above is line
wrapped for clarity.
Fields
cifs=<s>............................... Common Internet File System service state (SMB Server Message
Block).
nfs=<s> ............................... Network File System service state.
ftp=<s> ............................... File Transfer Protocol service state.
http=<s> ............................. Hypertext Transfer Protocol service state.
dhcp=<s> ............................ Dynamic Host Configuration Protocol service state.
snmp=<s> ........................... Simple Network Management Protocol service state.
iscsi=<s> ............................. SCSI service state.
mnt=<s> .............................. Mount NAS partitions.
status=<sts> ....................... Summary status for the line.
cns>
serv
[serv]
BOOTCFG: cifs=<s> nfs=<s> ftp=<s> http=<s> dhcp=<s> tftp=<s> tel=<s> snmp=<s>
<iscsi=<s> mnt=<s> status=<sts>
LIVECFG: cifs=<s> nfs=<s> ftp=<s> http=<s> dhcp=<s> tftp=<s> tel=<s> snmp=<s>
status=<sts>
[!serv] <summary>