coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Sunday May 27, 2012


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?
Create an account

Who's Online
We have 21 guests online

Newest Member

beyondimagem

Hit Counter
9133536 Visitors

cool Statistics
coolcommands:1330
Categories:83
Total queries:595500
Members:16437





Category Search coolcommands.com
Select Category:


coolcommand

how to monitor network i/o and network-related cpu usage in IBM AIX
Description

The netpmon command monitors a trace of system events, and reports on network activity and performance during the monitored interval. By default, the netpmon command runs in the background while one or more application programs or system commands are being executed and monitored. The netpmon command automatically starts and monitors a trace of network-related system events in real time. By default, the trace is started immediately; optionally, tracing may be deferred until the user issues a trcon command. When tracing is stopped by a trcstop command, the netpmon command generates all specified reports and exits.

# netpmon [ -o File ] [ -d ] [ -T n ] [ -P ] [ -t ] [ -v ] [ -O ReportType ... ] [-i Trace_File -n Gennames_File ]

where:

-d : starts the netpmon command, but defers tracing until the trcon command has been executed by the user. By default, tracing is started immediately.

-i Trace_File : reads trace records from the file Trace_File produced with the trace command instead of a live system. The trace file must be rewritten first in raw format using the trcpt -r command.

-n Gennames_File : reads necessary mapping information from the file Gennames_File produced by the gennames command. This flag is mandatory when the -i flag is used.

-o File : writes the reports to the specified File, instead of to standard output.

-O ReportType : produces the specified report types. Valid report type values are:

- cpu : cpu usage
- dd : network device-driver I/O
- so : internet socket call I/O
- nfs : NFS I/O
- all : all reports are produced. This is the default value.

-P : pins monitor process in memory. This flag causes the netpmon text and data pages to be pinned in memory for the duration of the monitoring period.

-t : prints CPU reports on a per-thread basis.

-T n : sets the kernel's trace buffer size to n bytes. The default size is 64000 bytes.

-v : prints extra information in the report.

Note: Don't foregt to turn off tracing using the trcstop command.
Example

netpmon -o nmon.out -O cpu,nfs; sleep 10; trcstop

Return to search results

Random coolcommands

coolcommand: alt_disk_mksysb - install an alternate disk with a mksysb image in IBM AIX v5.3
Example: alt_disk_mksysb -m /dev/cd0 -d hdisk1
[show me the details]
coolcommand: how to change network address information linux
Example: /etc/init.d/network restart; /etc/init.d/networking restart
[show me the details]
coolcommand: how to backup and compress a mysql database on the fly
Example: mysqldump --quote-names --opt -u root --password=badpass --databases dbname | gzip > dbname.gz
[show me the details]
coolcommand: how to dump a mysql database which uses reserved words as column names
Example: mysqldump --quote-names --opt -u root --password=badpass --databases dnbame > backup.sql
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1152
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris49379
Category AIX46267
Category General UNIX43933
solaris22927
aix22116

Terms of Use
Privacy
Contact


 
coolcommands.com © 2012. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum