snoop - capture and inspect network packets

snoop- capture and inspect network packets
SYNOPSIS
snoop [-aqrCDNPSvV] [-t [r| a| d]] [-c maxcount] [-d device] [-i filename] [-n filename] [-o filename] [-p first[,last]] [-s snaplen] [-x offset[,length]] [expression]
snoop captures packets from the network and displays their contents. snoop uses both the network packet filter and streams buffer modules to provide efficient capture of packets from […]

Run Levels in Linux & Solaris

In Linux and Solaris Operating Sytems the Run levels are considered as more important.
If the Runlevels are used improperly then there will be problem in booting up and using the system.
Linux Run Levels
============
0 - halt (Do NOT set initdefault to this)
1 - Single user mode
2 - Multiuser, without NFS
3 - Full multiuser mode
4 - unused
5 […]

sar - system activity reporter

The sar command is used to sample and report various cumulative statistic counters maintained by the operating system.
SYNOPSIS
sar [-dgpu] [-n mode] [-o filename] t [n]
sar [-dgpu] [-n mode] [-e time] [-f filename] [-i seconds] [-s time]
The sar command writes to standard output the contents of selected cumulative activity counters in the operating system. The accounting […]

vmstat- virtual memory statistics

vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity.
The first report produced gives averages since the last reboot. Addi-tional reports give information on a sampling period of length delay.The process and memory reports are instantaneous in either case.
vmstat - Report virtual memory statistics
SYNOPSIS
vmstat [-a] […]

iostat- Monitoring I/O statistics

The iostat command is used for monitoring system input/output device loading by observing the time the devices are active in relation to their average transfer rates. The iostat command generates reports that can be used to change system configuration to better balance the input/output load between physical disks.
iostat - Report Central Processing Unit (CPU) statistics […]

Recovering Solaris file Permissions

Ever have someone perform a chmod 777 .*, chown -R *, etc… here is how to fix it without reinstalling or restoring from tape. You do need root access either locally or remotely.
Almost all packages installed on a Solaris machine have their settings kept in one file. It is /var/sadm/install/contents.
Root# cd /var/sadm/install
you will find […]