Thank You Asraf

Keep Sharing

On Tue, Dec 22, 2009 at 3:50 PM, ashraf mohammed <[email protected]>wrote:

>
>
>
> {1}  The command vmstat reports information about processes, memory,
> paging, block IO, traps, and cpu activity.
> # vmstat 3   {2} Display Memory Utilization Slabinfo# vmstat -mGet
> Information About Active / Inactive Memory Pages# vmstat -a {3} Find Out The
> Top 10 Memory Consuming Process# ps -auxf | sort -nr -k 4 | head -10Find Out
> top 10 CPU Consuming Process# ps -auxf | sort -nr -k 3 | head -10 {4} #9:
> mpstat - Multiprocessor UsageThe
> mpstat command displays activities for each available processor,
> processor 0 being the first one. mpstat -P ALL to display average CPU
> utilization per processor:
> # mpstat -P ALL  {5}
> To display process memory information for pid # 47394, enter:
> # pmap -d 47394 {6}#14: tcpdump - Detailed Network Traffic AnalysisThe
> tcpdump is simple command that dump traffic on a network. However, you
> need good understanding of TCP/IP protocol to utilize this tool.
> For.e.g to display traffic info about DNS, enter:
> # tcpdump -i eth1 'udp port 53'
> To
> display all IPv4 HTTP packets to and from port 80, i.e. print only
> packets that contain data, not, for example, SYN and FIN packets and
> ACK-only packets, enter:
> # tcpdump 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) -
> ((tcp[12]&0xf0)>>2)) != 0)'
> To display all FTP session to 202.54.1.5, enter:
> # tcpdump -i eth1 'dst 202.54.1.5 and (port 21 or 20'
> To display all HTTP session to 192.168.1.5:
> # tcpdump -ni eth0 'dst 192.168.1.5 and tcp and port http'  {7} # cat
> /proc/cpuinfo
> # cat /proc/meminfo
> # cat /proc/zoneinfo
> # cat /proc/mounts
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> http://in.yahoo.com/
>
> [Non-text portions of this message have been removed]
>
>  
>



-- 
Regards
PRASHANT KOKATE
Sent from Mumbai, MH, India


[Non-text portions of this message have been removed]

Reply via email to