HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)

n
nwmgr(1M) nwmgr(1M)
For example:
# nwmgr --get
Name/ Interface Station Sub- Interface Related
ClassInstance State Address system Type Interface
============== ========= ============== ======== ============== =========
lan0 UP 0x00306EF4E07C igelan 1000Base-T
lan1 UP 0x000F202B92D4 igelan 1000Base-T
lan2 UP 0x0010837BDE00 btlan 100Base-TX
The parsable (script-friendly) output contains the same data as the readable output for each subsystem.
The format consists of four columns delimited with a number sign (
#).
For example:
# nwmgr --get --script
lan0#subsystem#current#igelan
lan0#if_type#current#1000Base-T
lan1#if_state#current#UP
lan1#mac#current#0x000F202B92D4
lan1#subsystem#current#igelan
lan1#if_type#current#1000Base-T
lan2#if_state#current#UP
lan2#mac#current#0x0010837BDE00
lan2#subsystem#current#btlan
lan2#if_type#current#100Base-TX
lan3#if_state#current#DOWN
Interface listing displays the following information about the LAN or RDMA device that has software sup-
port on the system:
Interface Name
Interface State
Interface Address. Indicates the primary unicast MAC address for LAN interfaces and the GID for
RDMA interfaces
Subsystem
Interface Type
Association. Lists another interface that is associated with the interface
Note that the
--get operation is the default; you do not need to specify the
-g option.
Use one of the following commands to view help for
nwmgr or subsystem specific usage.
nwmgr -h [ -S all | subsystem ]
nwmgr --help [ -S all | subsystem ]
When used with -S all, it displays the list of subsystems supported by nwmgr.
All other features are subsystem specific. You can obtain information about features supported by a specific
subsytem from the subsystem specific manpages, using the nwmgr_<subsystem>(1M) name format.
RETURN VALUE
On success, nwmgr returns 0.
On failure, it returns one of the values described in the ERRORS section.
ERRORS
If nwmgr fails, it returns one of the following errors. The values of the error codes are described in
<sys/errno.h>.
[EACCES] Unable to access the interface.
[EINVAL] One or more of the attributes or options is invalid for the operation.
[EIO] I/O to the target interface failed.
88 Hewlett-Packard Company 4 HP-UX 11i Version 3: February 2007