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.
-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.
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