wangyl1977 发表于 2007-04-05 22:08

SUN常用的诊断命令和工具(ZZ)



adb            Analyze dumps and a running system.
AnswerBook Display online reference manuals in areas of hardware, user, system administration, and other
arch           Display architecture and kernel architecture information.
arp          Display the Address Resolution Protocol tables
aset           Use the Automated Security Enhancement Tool
catman -w   Create the /usr/share/man/windex database for use with index function available through the apropos command
crash          Analyze crash dumps
devlinks    Create symbolic links in /dev using information in /devices

dmesg         Analyze recent log messages
disks         Create symbolic links in /dev/dsk and /dev/rdsk
drvconfig      Configure the devices directory and the device information tree
eeprom      Analyze and change programmable read-only memory (PROM) settings
fsdb         Use file system debugger (see fsdb_ufs in man page s)
fstyp          Display extensive file system parameters for a specified file system
groups      Display group definitions for a given user
grpck         Check the /etc/group file for syntax errors or inconsistencies
infocmp      Compare tic formatted files
kadb          Trap kernel and low-level faults
ndd            Get and set named device driver parameters
newfs         Create and examine file system parameters
nfsstat      Analyze NFSTM performance information
nm            Display symbol table information for (unstripped) executables (in /usr/ccs/bin)
pagesize      Print the size of a memory page in bytes
perfmeter   Provide a graphic display of performance metrics Protocol (ICMP) request and reply datagrams
pkgchk      Check file integrity and accuracy of installation
prtdiag       (on sun4u and sun4d) Display system configuration and diagnostic information(kept in /usr/platform/‘uname -m‘/sbin)
prtconf -v   Get system device information from POST probe
prtconf -vp   Display PROM version (OBP)

pwck          Check the /etc/passwd file for errors and inconsistencies
route          Add, remove, and display kernel route table information
rpcinfo      Display information about Remote Procedure Call (RPC) services
A running system   Compare symptoms and results between functioning and faulting systems
shells                  Use -x and -v options to provide debugging information
snoop                  Display and analyze network traffic
strings               Search object and binary files for ASCII strings
SunSolve databaseList bug, patch, release, and general technical information for hardware and software
sysdef            Analyze device and software configuration information
sum               Calculate and print a checksum value for a named file
SyMON™         Use system monitor utility package with interfaces to the
diagnostics package, SUNvts
sys_unconfig      Enable you to change information entered during sysidtool
phase of installation

tapes          Create logical links to device special files in /devices fortapes
tic            Terminfo compiler; translate a terminfo file from the sourceformat into the compiled format
timex          List runtime and system activity information duringcommand execution
truss         Trace system calls issued and used by a program or command
tunefs       Modify file system parameters that affect layout policies /usr/proc/bin/* Use utilities that exercise the functions of the /proc filesystem

diff         Compare file contents
dfmounts   Display remote file system mount information
dfshares       Display shared file system information
find            Search for specific files in the file system structure
format          Analyze or modify disk partition information
fsck            Check UFS file systems for inconsistencies
last               Display history of system login information
ls               Analyze file properties
netstat (-i, -r)   Analyze network tuning information, including active routes.
ifconfig            Analyze the status of network interfaces
iostat            Analyze I/O performance issues
sar          Analyze system performance (must be initialized in /etc/init.d/perf)
showrev -p   
ping                  
file                Determine a file’s type
ps               List properties of running processes (/bin/ps, /usr/ucb/ps)
swap            Add, delete, and monitor system swap areas
tail -f            Leave file open for reading and display what is there
traceroute      Show the routes followed by packets transferred in asubnetted environment
uname          Print platform, architecture, os, and systemnode information
vmstat               Analyze memory performance statistics
who am i       Display the effective current user name, terminal line and    login time
df -k            Display disk space usage in Kbytes, including free space


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2005/showart_271803.html
页: [1]
查看完整版本: SUN常用的诊断命令和工具(ZZ)