Table G-12 provides general troubleshooting information, highlighting differences between methods and configuration file locations between Solaris and Linux (RHEL, SLES).
Table G-12. [*] General Troubleshooting Methods and File Locations
Task/Location | Solaris | Red Hat | SUSE |
---|
Change a host name | Minimum change required for the following files: /etc/nodename /etc/hosts /etc/hostname.[*] /etc/net/[*]/hosts | hostname (while running) or edit /etc/sysconfig/ network (for permanent change after network restart) | /etc/HOSTNAME and /etc/hosts |
List of well-known networking services and port numbers | /etc/services | /etc/services | |
List of well-known protocols | /etc/protocols | /etc/protocols | |
Display NFS and RPC statistics | nfsstat | nfsstat | |
Display a snapshot of virtual memory | N/A | cat/proc/meminfo | |
Display virtual memory statistics | vmstat | vmstat | |
Display I/O statistics | iostat | iostat | |
Report system activity | sar | sar | |
Display simple and complex lock contention information | N/A | View /var/lock directory | |
Report CPU usage | top | top | |
Display system error log | dmesg | dmesg | |
Display paging/ swapping space | swap -l | cat/proc/swaps | |
Disk crash dump utilities | dumpadm savecore | /etc/init.d/diskdump lkcd savecore | |
Disk crash config files | /etc/ dumpadm.conf | /etc/sysconfig/ diskdump | /etc/sysconfig/dump |
Network crash dump utilities | N/A | /etc/init.d/netdump /etc/init.d/netdump -server | lkcd |
Network crash config files | N/A | /etc/sysconfig/ netdump /etc/netdump.conf | /etc/sysconfig/dump |
Crash-analyzing tools | mdb | crash | lcrash |
Crash dump default store directory | /var/crash | /var/crash | /var/log/dump |
Specify users who have access to cron (Every user has access to cron if the access file does not exist.) | /etc/cron.d/ cron.allow | /etc/cron.d/cron.allow | |
Specify users who have no access to cron | /etc/cron.d/ cron.deny | /etc/cron.d/cron.deny | |
Specify remote users and hosts that can execute commands on the local host | /etc/hosts.equiv | /etc/hosts.equiv | |
Default super user log | /var/adm/sulog | /var/log/messages | |
Configure syslogd logging | /etc/syslog.conf | /etc/syslog.conf | |
Display physical RAM | prtconf | cat/proc/meminfo | |
Start or stop scripts directory | /etc/init.d | /etc/init.d and /etc/rc.d | /etc/init.d |
Devices directory | /dev and /devices | /dev | |