Solaris
From GarrettHoneycutt
Contents |
Crash Analysis
When a system locks up there will be the chance that a crash file was created, make sure that when the system is locked up that you send a break to the system and sync the data in memory to the disk. This will only apply to Sparc based systems, as on X86 based systems this is not yet possble.
Enable coreadm to capture cores and log them in syslog
$ coreadm -e logSet pattern of core files
$ coreadm -g /var/core/core.%f.%p
Dump everything
$ coreadm -G allLog core to syslog
$ coreadm -e logUpdate the coreadm.conf file with new settings
$ coreadm -e global
PCommands
# See the man pages for more information # Most can add a -v for verbose output prtconf # General system information prtdiag # System diag info including any current alerts psrinfo # processor information pagesize # show avaialble memory page sizes
The current state of the system
vmstat mpstat iostat netstat swap
Some other more detailed stat commands
kstat cpustat cputrack busstat trapstat
These take a process id as last argument
##### Read man page about warnings before using these ##### pmap # Show process memory mapping pargs # args used to start process also pargs -e # show environment for a process pfiles # files opn by a process - see warnings pstack # show current stack trace - see warnings pflags # process flags pcred # process owner etc pldd # dynamic libraries linked to process psig # signal handlers and headers pwdx # current working directory