Shared Ethernet Adapter accounting tool.
Back in 2008, VIOS version 1.5.2.1, Fix Pack
11.1 was released.
A new command was introduced with this Fix Pack, called seastat.
This handy little utility can be used to view
Shared Ethernet Adapter (SEA) statistics per virtual I/O client. This is not to be confused with a certain
shell script
that Nigel Griffiths wrote a while back! From the man page: “The
seastat command generates a report to view, per client, shared ethernet adapter
statistics. To gather
network statistics at a per-client level, advanced accounting can be enabled on
the Shared Ethernet Adapter to provide more information about its network
traffic. To enable
per-client statistics, the VIOS administrator can set the Shared Ethernet
Adapter accounting attribute to enabled. The default value is disabled. When
advanced accounting is enabled, the Shared Ethernet Adapter keeps track of the
hardware (MAC) addresses of all of the packets it receives from the LPAR clients, and increments packet and byte counts
for each client independently. After advanced accounting is enabled on the
Shared Ethernet Adapter, the VIOS administrator can generate a report to view
per-client statistics by running the seastat command.” Before using the command, you must first
enable “advanced accounting” on the SEA. To enable advanced accounting on the
SEA, enter the following command: $ chdev
-dev ent10 -attr accounting=enabled When advanced accounting is enabled, the SEA
keeps track of the hardware (MAC) addresses of all of the packets it receives
from the LPAR clients, and increments packet and byte counts for each client
independently. After advanced accounting is enabled on the
SEA, the VIOS administrator can generate a report to view per-client statistics
by running the seastat command. You can confirm that accounting is enabled by
checking the SEA device attributes as shown below: $ lsdev
-dev ent10 –attr accounting attribute value
description user_settable accounting enabled Enable
per-client accounting of network statistics True To display Shared Ethernet Adapter statistics
for ent10, I would enter the following command: $ seastat -d ent10 ==== Advanced Statistics for SEA Device Name: ent10 ==== MAC: 4A:73:E0:00:A0:11 ---- VLAN: None VLAN Priority: None Hostname: hvio7 IP: 10.3.73.113 Transmit
Stat ---- Packets:
1831 Bytes:
2706 ==== MAC: 4A:73:E0:00:A0:11 ---- VLAN: None VLAN Priority: None Transmit
Stat ---- Packets:
7666 Bytes: 4532 ==== MAC: 4A:73:E0:00:B0:11 ---- VLAN: None VLAN Priority: None Transmit
Stat ---- Packets:
7646 Bytes:
4520 ==== MAC: 4A:73:E0:00:B0:11 ---- VLAN: None VLAN Priority: None IP: 10.3.73.115 Transmit
Stat ---- Packets:
1826 Bytes:
2701 ==== MAC: 4A:73:E0:00:E0:0B ---- VLAN: None VLAN Priority: None IP: 10.3.73.123 Transmit
Stat ---- Packets:
8226 Bytes:
5527 ==== MAC: 4A:73:E0:00:E0:0B ---- VLAN: None VLAN Priority: None Transmit
Statistics:
Receive
Statistics: ---- Packets:
292 Bytes:
1713 ==== MAC: 4A:73:E0:01:00:0B ---- VLAN: None VLAN Priority: None IP: 10.3.73.118 Transmit
Stat ---- Packets: 32145973
Bytes:
3114 ==== MAC: 4A:73:E0:01:00:0B ---- VLAN: None VLAN Priority: None IP: 10.3.30.66 Transmit
Stat ---- Packets:
7439 Bytes:
5156 ==== MAC: 4A:73:E0:01:00:0B ---- VLAN: None VLAN Priority: None Transmit
Stat ---- Packets:
7899 Bytes: 4720 ==== MAC: 4A:73:E0:01:10:0B ---- VLAN: None VLAN Priority: None IP: 10.3.73.119 Transmit
Stat ---- Packets:
2486 Bytes:
26229038743
Bytes:
15952109586 ==== MAC: 4A:73:E0:01:10:0B ---- VLAN: None VLAN Priority: None Transmit
Stat ---- Packets:
7901 Bytes:
4690 ==== MAC: 4A:73:E0:01:10:0B ---- VLAN: None VLAN Priority: None IP: 10.3.30.67 Transmit
Stat ---- Packets:
7318 Bytes:
5042 ==== MAC: 4A:73:E0:01:20:0B ---- VLAN: None VLAN Priority: None IP: 10.3.73.120 Transmit
Stat ---- Packets:
4123 Bytes:
2764 ==== MAC: 4A:73:E0:01:20:0B ---- VLAN: None VLAN Priority: None Transmit
Stat ---- Packets:
7752 Bytes:
4637 ==== MAC: 4A:73:E0:01:20:0B ---- VLAN: None VLAN Priority: None IP: 10.3.30.68 Transmit
Stat ---- Packets:
7344 Bytes:
5058 ==== MAC: 4A:73:E0:01:30:0B ---- VLAN: None VLAN Priority: None IP: 10.3.73.117 Transmit
Stat ---- Packets: 2546 Bytes:
3656 ==== MAC: 4A:73:E0:01:30:0B ---- VLAN: None VLAN Priority: None Transmit
Stat ---- Packets:
7887 Bytes:
4685 The seastat output provides several
interesting bits of information for each VIOC communicating via a particular
SEA. Such as the IP address of the client LPAR, the MAC address, the VLAN tag and the
packets tran This is a great way to monitor
traffic/activity over a particular SEA. It can be very useful when determining
if an SEA is currently being used i.e.
during troubleshooting network connectivity issues between client LPARs and an
external network that is bridged via a SEA. More information can be found here: http |