netmgr_igelan.1m (2011 09)

n
nwmgr_igelan(1M) nwmgr_igelan(1M)
Reset Statistics for an Interface
The following commands reset the statistics for an interface.
nwmgr -r --st -c lanPPA
nwmgr --reset --stats --class_instance lan
PPA
The data trafc statistics for an interface are cleared to zero. This includes the byte count and
packet count for inbound and outbound traffic. Other aspects of the interface are left unmodified.
Diagnose Link Connectivity
These commands perform link diagnosis.
nwmgr --diag [link] -A dest=mac_addr [
--it number][-A pktsize=bytes]
[
-A timeout=seconds] -c lan
PPA
nwmgr --diagnose [link] --attribute dest=mac_addr [
--iterations number]
[
--attribute pktsize=bytes][--attribute timeout=
seconds]
--class_instance lan
PPA
Link connectivity at the data link layer is checked by sending IEEE XID test frames to the specified
destination MAC address and counting the replies. The
--iterations option specifies how many
test frames to send; the default is 1.
The
pktsize attribute specifies the size of each test frame; the default size is three bytes less than
the MTU size currently set.
The
timeout attribute specifies how many seconds to wait for the acknowledgement of each test
frame; the default is 5 seconds.
RETURN VALUES
0 The command returns 0 on success.
<>0 On failure, the command returns values described in the ERRORS section below.
ERRORS
[EACCES] Attempt to set a read-only attribute.
[EBUSY] The interface is presently inaccessible. This is usually because the interface is part of an
APA aggregate, which prevents setting attributes on the interface.
[EINVAL] One or more of the attributes or options is invalid for the task.
[ENOMEM] Memory allocation failed. This could be a transient condition.
[ENOTSUP] Operation or feature is not supported.
[ENXIO] The target interface could not be accessed.
[EPERM] The user lacks the authorization
hpux.network.config, which is required for this
operation.
[ERANGE] The specified values of one or more attributes was less than the minimum or more than
the maximum.
EXAMPLES
List all LAN interfaces in the system:
nwmgr -C lan
Display the speed and MTU of the igelan interface lan1:
nwmgr -A speed,mtu -c lan1
Display all attributes of the igelan interface lan1:
nwmgr -A all -c lan1
Set MTU to 9000 and enable transmit CKO on lan1:
nwmgr -s -A mtu=9000,tx_cko=on -c lan1
Restore MTU and transmit CKO to their defaults on lan1:
HP-UX 11i Version 3: September 2011 7 Hewlett-Packard Company 7