Skip to main content

SSH Collection Module Solaris Command Reference

The following table contains the Solaris command reference for the SSH Collection Model.

CommandPrivilegedCommand OperationReason for Use
sudo trueYesImmediately returns successfully.Used to validate access to the sudo utility.
uname -aReturns all elements in the system utsname structure.Used for a full descriptive string for the system.
uname -sReturns the operating system name.Used for OS detection.
uname -pReturns the hardware platform type.Used for system architecture detection.
uname -nReturns the system hostname.Used for hostname detection.
uname -rvReturns OS revision.Used to determine SunOS and kernel version.
cat /etc/releaseReturns detailed OS version string.Used to determine Solaris version and OS build date.
zonenameReturns name of current zone.Used to distinguish between global and non-global zones.
/usr/sbin/zoneadm list -pReturns list of zones on system.Used to fetch UUID of non-global zones.
uptimeReturns system uptime.Used during calculation of network traffic metrics.
/usr/sbin/prtdiag -v \\true
/usr/sbin/smbios -t SMB_TYPE_BIOSReturns BIOS version.(x86) Used to fetch BIOS revision.
/usr/sbin/smbios -t SMB_TYPE_SYSTEMReturns hardware information.(x86) Used to fetch hardware type and serial number.
/usr/sbin/prtconfReturns hardware and memory information.Used to determine total available RAM.
ps -e -o pid,time,rss,argsReturns details on running processes.Used to retrieve a list of running processes.
/usr/sbin/psrinfo -pvReturns CPU information.Used to determine processor type, speed, and topology.
/sbin/ifconfig -aYesReturns network information.Used to determine network interface names, IP addresses, and MACs.
/sbin/dladm show-dev -pYesReturn physical NIC status.(10) Used to determine speed of physical network interfaces.
/sbin/dladm show-phys -p -o LINK,MEDIA,STATE,SPEED,DUPLEX,DEVICEReturn physical NIC status.(11) Used to determine speed and media type of physical network interfaces.
iostat -EnReturn physical disk info.Used to determine type and model of disks.
/sbin/mount -vReturn list of mounted filesystems.Used to determine type and options of mounted filesystems.
df -kYesReturn file system capacity.Used to determine filesystem utilization.
/usr/sbin/zpool list -H -o name,size,allocated,free,capacity,healthReturn ZFS capacity.Used to determine total capacity and utilization of ZFS pools.
pkginfo -liReturn installed software.(10) Used to obtain versions and descriptions of installed OS packages.
pkg infoReturn installed software.(11) Used to obtain versions and descriptions of installed OS packages.
pkg contents -H -t file -a 'mode=?5*' -a 'mode=?7*' -o pkg.name,action.keyReturn installed executables.(11) Used to obtain list of executable files in installed OS packages.
vmstat 1 2Return CPU, memory, and disk statistics.Used to determine current CPU and memory utilization.
/usr/sbin/swap -lReturn swap memory information.Used to determine current swap size and utilization.
kstat -p zfs:0:arcstats:sizeReturn kernel statistics.Used to determine proportion of memory used for ZFS disk cache.
iostat -xn 1 2Return disk activity.Used to determine current disk throughput.
pfiles /proc/*YesReturn open files and sockets.(< 11.2) Used to correlate running processes with network connections.
netstat -an -P tcp -f inetReturn network connections.(< 11.2) Used to determine active TCP connections.
netstat -anu -P tcp -f inetReturn network connections and processes.(>= 11.2) Used to determine active TCP connections and associated processes.
/sbin/dladm show-dev -sYesReturn network interface counters.(10) Used to determine total network throughput.
/usr/sbin/dlstat -p -o LINK,IPKTS,RBYTES,OPKTS,OBYTESReturn network interface counters.(11.0-11.2) Used to determine total network throughput.
/usr/sbin/dlstat -p -o LINK,IPKTS,IDROPS,RBYTES,OPKTS,ODROPS,OBYTESReturn network interface counters.(>= 11.3) Used to determine total network throughput.