Purpose
Generates
a report to view, per client, Shared Ethernet Adapter statistics.
Syntax
To display
Shared Ethernet Adapter statistics, per client.
seastat -d Shared Ethernet
Adapter device name [-n | -s searchtype=value ]
To
clear all Shared Ethernet Adapter statistics that have been gathered
per client.
seastat -d Shared
Ethernet Adapter device name -c
Description
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.
Note: Advanced accounting must be enabled on the Shared Ethernet
Adapter before the
seastat command can print any statistics.
To
enable advanced accounting on the SEA, enter the following command:
chdev -dev <SEA device name> -attr accounting=enabled
Flags
Flag name |
Description |
-d Shared Ethernet
Adapter device name |
Specifies the device name of the Shared Ethernet
Adapter. |
-n |
Disables name resolution on the IP addresses. |
-c |
Clears all of the per client Shared Ethernet
Adapter statistics that have been gathered. |
-s searchtype=value |
Searchs for a specified value. |
Exit Status
The
following exit values are returned:
Return code |
Description |
0 |
Successful completion. |
>0 |
Invalid flag, argument, or command failure |
Examples
- To display Shared Ethernet Adapter statistics for sea0,
type:
seastat -d sea0
- To clear the Shared Ethernet Adapter statistics for sea0,
type:
seastat -d sea0 -c
- To search a MAC address, type:
seastat -d entX -s mac=XXXXXX
- To search for a vlan, type:
seastat -d entX -s vlan=<0 to 4094>