Solaris 管理员常用命令( 四 )


/* Set the system to perform diagnostics on the next reboot. */

/usr/sbin/eeprom local-mac-address?=true
/* Multiple Port Network Card Setting */

/usr/sbin/grpck
/* Check /etc/group file syntax */

/usr/sbin/pwck
/* Check /etc/passwd file syntax */

/usr/sbin/sys-unconfig
/* Clear host specific network configuration information */

System Information and Monitoring

coreadm -e log
/* Report global core */

/bin/echo "0t${stamp}>Yn/* Convert UNIX timestamp to something human-readable */

/usr/sbin/eeprom
/* Show eeprom parameters */

grep "-root" /var/adm/sulog | grep -v| tail -25
/* List most recent attempts to switch to superuser account. */

isainfo -bv
/* Quickly checkout if machine is in 32 or 64 bit mode */

last
/* Tells who was or still is on the system */

logger -i
/* Log the process ID */

psradm -f [processor id]
/* Take processor offline */

/usr/sbin/prtconf -vp
/* Show system configuration details */

/usr/platform/`/bin/uname -i`/sbin/prtdiag -v
/* System Diagnostics */

prtconf -pv | grep banner-name |awk -F" " { print $2 } " | head -1
/* Show actual model name of machine */

psrinfo | wc -l
/* Display number of processors */

sar -A
/* Provides cumulative system report. */

sar -a
/* Report use of file access system routines. */

sar -u
/* Report CPU Utilization */

telnet 13 | grep ":"
/* Get the time on remote Unix machine */

uname -a
/* Displays system information */

vmstat 10
/* Displays summary of what the system is doing every 10 seconds */

who -b
/* Displays the date of the last system reboot. */

ypcat hosts | sort -n -t.0 -11 -22 -33 -4
/* Take the input of "ypcat hosts" or "cat /etc/inet/hosts" and sort by IP. */

推荐阅读