HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
n
nwmgr_btlan(1M) nwmgr_btlan(1M)
View Interface Statistics
The following command can be used to display interface statistics.
nwmgr [-g] --st [all |
extmib | mib] -c lan_instance
nwmgr [--get] --stats [all |
extmib | mib] --class_instance
lan_instance
The arguments
all, extmib, and
mib are the only valid arguments for --stats for btlan
drivers. all is the default if no argument is provided with
--stats. It displays the same informa-
tion as
extmib which displays extended MIB statistics.
mib displays a subset of MIB statistics of
the interface.
View Interface Attributes
The following command can be used to display the current value of either all the attributes of the
btlan
interface (when the all keyword is specified), or the specified attributes (when they are listed by name,
separated by commas).
nwmgr [-g] -A {all
| attr1, attr2, ...} -c lan_instance
nwmgr [--get] --attribute {all
| attr_list} --class_instance
lan_instance
Each attribute is displayed on a separate line as a name-value pair.
View Interface Details
The following command can be used to display detail information of the interface.
nwmgr [-g] -q info -c lan_instance
nwmgr [--get] --qualifier info --class_instance
lan_instance
This form displays interface-specific properties that are informational, often not configurable and sub-
ject to variation across drivers. In the case of
btlan, the output is same as what is shown by:
nwmgr -g -v -c lan_instance
Set Attribute Values
The following command can be used to set values to the specified attributes.
nwmgr -s -A attr1=value1, attr2=value2, ... -c lan_instance
nwmgr --set --attribute attr1=value1, attr2=value2,...
--class_instance
lan_instance
The attributes that can be set are:
mtu, mac, and speed.
Save Current Attributes Values
The following command can be used to save the current value of each interface in the configuration file.
nwmgr -s -A all --sa --fr cu[rrent] -c lan_instance
nwmgr --set --attribute all --saved --from cu[rrent] --class_instance
lan_instance
This form ’freezes’ the current state of an interface; that is, it stores the current value of each attri-
bute of an interface in the configuration file (/etc/rc.config.d/hpbtlanconf
), so that the
interface configuration is saved across boots. The user can also manually run the start-up script later
to apply the configuration file values to the currently running kernel, by executing:
/sbin/rc2.d/S333hpbtlan start.
This feature allows a user to experiment with the current values, and save the desired configuration.
Set Attribute Values from Default Values
The following command can be used to set default values to all attributes (if all is specified), or to selected
attributes (if the attribute names are listed).
nwmgr -s -A {all | attr1, attr2, ...} [--cu] --fr de[fault] -c lan_instance
nwmgr --set --attribute {all | attr1, attr2, ...} [--current] --from de[fault]
--class_instance lan_instance
This can be useful in rolling all the changes made to an interface since the time the system booted.
Reset an Interface
The following command can be used to reset an interface.
HP-UX 11i Version 3: February 2007 − 4 − Hewlett-Packard Company 93