Management Commands
Table 2-4 describes management commands commonly used in the scenario where Solaris hosts are connected to storage systems
Command |
Function |
---|---|
cfgadm |
Manages configuration. |
df -k |
Queries the file system size and usage. |
devfsadm |
Maintains the /dev and /devices namespaces |
fcinfo hba-port |
Queries information about a Fibre Channel host bus adapter (HBA). |
format |
Queries information about disks on a host. |
ifconfig |
Configures network interface parameters. |
iscsiadm |
Manages iSCSI. |
luxadm -e port |
Views the connection status of Fibre Channel ports on a host. |
mount |
Mounts file systems. |
mpathadm |
Manages STMS multipathing. |
pkgadd |
Installs patches. |
pkginfo |
Queries patch information. |
pkgrm |
Deletes a patch. |
shutdown -iinit-level -ggrace-period -y |
Reboots the host or shuts down the system. |
svcs |
Displays the running status of an operating system. |
svcadm |
Modifies the running status of an operating system. |
umount |
Unmounts file systems. |
In the preceding table, # in command lines is a variable and must be set to a number based on site requirements.
Parameters in the shutdown -iinit-level -ggrace-period –y command are described as follows:
- -iinit-level: brings the system to an init level that is different from the default of S. The choices are 0, 1, 2, 5, and 6. Run levels 0 and 5 are reserved states for shutting the system down. Run level 6 reboots the system. Run level 2 is available as a multi-user operating state.
- -ggrace-period: indicates a time (in seconds) before the system is shut down. The default is 60 seconds.
- -y: continues to shut down the system without intervention. Otherwise, you are prompted to continue the shutdown process after 60 seconds.
For example, the shutdown -i5 -g0 -y command is used for fast reboot, and the shutdown -i6 -g0 –y command is used for fast shutdown.