AIX Networking Commands
1) How can I display or set values for network parameters?
The
no
command sets or displays current or next boot values for network tuning parameters.
2) How do I get the IP address of my machine?
Type one of the following:
ifconfig -a
host Fully_Qualified_Host_Name
|
For example, type host cyclop.austin.ibm.com.
3) How do I identify the network interfaces on my server?
Either of the following two commands will display the network interfaces:
lsdev -Cc if
|
ifconfig -a
|
To get information about one specific network interface, for example, tr0, run the command:
ifconfig tr0
|
4) How do I activate a network interface?
To activate the network interface tr0, run the command:
ifconfig tr0 up
|
For example, to deactivate the network interface tr0, run the command:
ifconfig tr0 down
|
6) How do I display routing table, interface, and protocol information?
To display routing table information for an Internet interface, type:
netstat -r -f inet
|
netstat -i -f inet
|
To display statistics for each protocol, type:
netstat -s -f inet
|
7) How do I record packets received or transmitted?
To record packets coming in and going out to any host on every interface, enter:
iptrace /tmp/nettrace
|
The trace information is placed into the /tmp/nettrace file.
To record packets received on an interface en0 from a remote host airmail over the telnet port, enter:
iptrace -i en0 -p telnet -s airmail /tmp/telnet.trace
|
The trace information is placed into the /tmp/telnet.trace file.
AIX Workload partitions commands
1) How do I create a workload partition?
To create a workload partition named temp with the IP Address xxx.yyy.zzz.nnn, type:
mkwpar -n temp -N address= xxx.yyy.zzz.nnn
|
To create a workload partition with the specification file wpar1.spec, type:
mkwpar -f /tmp/wpar1.spec
|
2) How do I create a new specification file for an existing workload partition
wpar1?
To create a specification file wpar2.spec for an existing workload partition wpar1,
type:
mkwpar -e wpar1 -o /tmp/wpar2.spec -w
|
3) How do I start a workload partition?
To start the workload partition called temp, type:
startwpar temp
|
4) How do I stop a workload partition?
To stop the workload partition called temp, type:
stopwpar temp
|
5) How do I view the characteristics of workload partitions?
To view the characteristics of all workload partitions, type:
lswpar
Name State Type Hostname Directory
---------------------------------------------------------------------------------
bar A S bar.austin.ibm.com /wpars/bar
foo D S foo.austin.ibm.com /wpars/foo
trigger A A trigger /
|
6) How do I log in to a workload partition?
To log in to the workload partition named wpar1 as user foo, type:
clogin wpar1 -l foo
|
7) How do I run a command in a workload partition?
To run the /usr/bin/ps command as user root in a workload partition named howdy,
type:
clogin howdy -l root /usr/bin/ps
|
8) How do I remove a workload partition?
To remove the workload partition called temp, type:
rmwpar temp
|
To stop and remove the workload partition called temp preserving data on its file
system, type:
rmwpar -p -s temp
|
Note:
Workload Partitions (WPARs), a set of completely new software-based system virtualization
features, were introduced in IBM AIX Version 6.1.
AIX Performance monitoring tools
1) How do I display virtual memory statistics?
To display a summary of the virtual memory statistics since boot, type:
vmstat
|
To display five summaries at 2-second intervals, type:
vmstat 2 5
|
To display a summary of the statistics for all of the workload partitions after boot,
type:
vmstat -@ ALL
|
To display all of the virtual memory statistics available for all of the workload
partitions, type:
vmstat -vs -@ ALL
|
2) How do I display statistics for all TTY, CPU, and Disks?
To display a single set of statistics for all TTY, CPU, and Disks since boot, type:
iostat
|
To display a continuous disk report at 2-second intervals for the disk with the logical
name disk1, type:
iostat -d disk1 2
|
To display 6 reports at 2-second intervals for the disk with the logical name disk1,
type:
iostat disk1 2 6
|
To display 6 reports at 2-second intervals for all disks, type:
iostat -d 2 6
|
To display only file system statistics for all workload partitions, type:
iostat -F -@ ALL
|
To display system throughput of all workload partitions along with the system, type:
iostat -s -@ ALL
|
3) How do I display detailed local and remote system statistics?
Type the following command:
topas
|
To go directly to the process display, enter:
topas -P
|
To go directly to the logical partition display, enter:
topas -L
|
To go directly to the disk metric display, enter:
topas -D
|
To go directly to the file system display, enter:
topas -F
|
4) How do I report system unit activity?
Type the following command:
sar
|
To report processor activity for the first two processors, enter:
sar -u -P 0,1
|
This produces output similar to the following:
cpu %usr %sys %wio %idle
0 45 45 5 5
1 27 65 3 5
|
0 Comment to "Networking and Performance Monitoring Commands used in AIX "
Post a Comment