Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > N

nwmgr_intl100(1M)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

nwmgr_intl100: nwmgr — network interface management command for intl100 driver

SYNOPSIS

nwmgr

nwmgr [-g] [-v] [-c lan_instance | -S intl100]

nwmgr [-g] --st [all | extmib | mib] -c lan_instance

nwmgr [-g] -A {all | attr1, attr2, ...} -c lan_instance

nwmgr [-g] -q info -c lan_instance

nwmgr -s -A attr1=value1, attr2=value2,... -c lan_instance

nwmgr -s -A all --sa --fr cu[rrent] -c lan_instance

nwmgr -s -A {all | attr1, attr2,...} [--cu] --fr de[fault] -c lan_instance

nwmgr -r -c lan_instance

nwmgr -r --st -c lan_instance

nwmgr --diag -A dest=mac_addr [--it number] [-A pktsize=bytes] [-A timeout=seconds] -c lan_instance

nwmgr -h [-g | -s | -r | --diag] [-c lan_instance | -S intl100]

Remarks

The lanadmin, lanscan, and linkloop commands are deprecated. These commands will be removed in a future HP-UX release. HP recommends the use of the replacement command nwmgr(1M) to perform all network interface-related tasks.

DESCRIPTION

The nwmgr program is a unified command to administer all HP-UX LAN and RDMA-based interfaces. General information about the command as a whole can be found in the nwmgr(1M) manpage. The nwmgr_intl100(1M) manpage describes nwmgr as applied to the intl100 driver.

The intl100 driver is one of the HP-UX drivers that manages the 100BT Ethernet copper interfaces (100Base-TX). Each interface has several attributes. Some attributes, such as MTU are configurable while others are read-only. In general, each attribute can have a certain value during run time (which is its current value), another value in the configuration file that stores data across boots (its saved value), and an HP-supplied value that is applied by the driver after boot (its default value) before the saved value is applied. The list of attributes is described in the Attributes section below.

The nwmgr command can be used on intl100 interfaces to display information (with the -g option, which is the default), modify the settings (the -s option), reset the interface or its statistics (the -r option), and to diagnose link connectivity (the --diag option).

Operations other than get, require the authorization hpux.network.config. For more information about authorizations and Role-based Access Control, see rbac(5).

The output in each case can be obtained in either human-readable form (the default form) or in a script-friendly parseable form (with the --sc or --script option). The format for script-friendly output is described in the nwmgr(1M) manpage. It is guaranteed that any change in the scriptable output across releases will contain only additions, but not modifications or deletions.

The human-readable format can change across releases, including modifications and deletions, though the changes can be expected to be incremental. The usage is explained in greater detail below. The output format that is described is the human-readable one; references to the scriptable output are made as necessary.

Operations

The nwmgr command provides the following operations for the intl100 driver.

--cra

Operation to perform Critical Resource Analysis on the interface.

--diag | --diagnose

Operation to diagnose/test link connectivity.

-g | --get

Get display interface settings.

-h | --help

Display help information.

-r | --reset

Reset interface or statistics.

-s | --set

Set configuration information of the components and the subsystems.

Options

The nwmgr command provides the following options for the intl100 driver. For more information about these options, refere to nwmgr(1M).

-A | --attribute

Specify the parameter associated with a target whose value can be retrieved and/or set.

-c | --class

Limit the scope of the operation to the LAN class.

--fr | --from

Specifies the configuration parameter values to be used or the operation. The from operation takes any one of current, saved, or default as argument.

-it | --iteration

Specifies how many test frame to send during a diagnose operation. The default is 1.

-q | --subsystem_qualifier

Specifies a keyword or special identifier used by a subsystem to add additional context for the operation being performed.

The argument supported for intl100 is info, which provides more information on the instance of the intl100 subsystem; such as, the hardware path, feature capabilities, current feature settings, the assigned NMID, speed, and MTU of the card.

-S | --subsystem

Limit the scope of the operation to the subsystem specified. Example of a subsystem is: intl100

--sa | --saved

Specifies that the operation applies to configuration parameter valuse saved in a persistent store.

--sc | --script

Display the output in script parseable format.

--st | --stats

Specifies that the operation applies to the statistics of the target.

-v | --verbose

Specify verbose mode

Attributes

The valid attributes for the intl100 interface are:.

dest=mac_addr

Ethernet MAC address of the remote interface. Used with the --diagnose operation.

mac

Ethernet MAC Address. The default value is the factory MAC address. This is valid for get and set operations.

mtu

Displays the maximum Ethernet payload size (MTU), in bytes. MTU above 1500 is not allowed.

pktsize=bytes

Specifies the package size of each test frame (for the diagnose operation). The default is 100 bytes.

speed

The actual values of Speed, Duplex and Autonegotiation of the Ethernet link if the link is up; otherwise, the configured values. Note that, for 100Base-FX, the speed is always fixed at 100 Mbps and the duplex can be set to either Half or Full Duplex. The valid values allowed for speed in the command line for 100Base-FX are 100FD and 100HD (case insensitive).

For 100Base-T, it is essential that the link partner has the same speed, duplex and auto-negotiation settings as the NIC being configured. The speed can be forced to 10 or 100 Mbps, with Full or Half Duplex, with auto-negotiation off. This is done by setting speed to one of 10HD, 10FD, 100HD, or 100FD (case insensitive). The valid values allowed for speed in the command line for 100Base-T are: 10HD, 10FD, 100HD, 100FD, and auto_on.

The valid values to set for speed for the 100Base-FX are 100FD and 100HD. Note that 10 Mbps and auto-negotiation are not supported speed configurations for the PCI 100Base-FX card.

The output for the speed attribute can take one of the two formats. In the human-readable format, it is of the form:

speed {Full | Half} Duplex (Autonegotiation : {On | Off})

Example:

100 Mbps Full Duplex (Autonegotiation : On).

In the script-friendly output, the speed value is of the form:

speed {FD | HD} auto_{on|of}

Examples:

100FD auto_on

100HD auto_off

Note that in both formats, the speed and duplex attributes are optional. They may not be present in some situations.

In the configuration file, there is an additional twist because there are separate variables for speed-duplex and auto-negotiation. For 100Base-T, the HP_BTLAN_SPEED variable can contain one of the following values 10HD, 10FD, 100HD, 100FD, and auto_on (same as the command line values). The HP_BTLAN_AUTONEG variable is of no relevance when HP_BTLAN_SPEED is set. For PCI 100Base-FX, the HP_BTLAN_AUTONEG variable is irrelevant.

timeout=seconds

Specifies how many seconds to wait for acknowledgement of each test frame (for the diagnose operation). The default is 5 seconds.

USAGE

The common usage of nwmgr for intl100 interfaces are described in this section.

Display Network Interfaces

The most basic command to display network interface information.

nwmgr

  • The nwmgr command without any arguments displays all the network interfaces in the system, including physical LAN interfaces (NICs), virtual LAN interfaces (VLANs and APA aggregates), and RDMA-based interfaces.

View Basic Properties of Interfaces

The following command can be used to view the basic properties of one or more interfaces.

nwmgr [-g] [-v] [-c lan_instance | -S intl100 ]

nwmgr [--get] [--verbose] [--class_instance lan_instance | --subsystem intl100]

  • Note that the get operation is the default, so the -g option need not be specified explicitly.

  • If an interface is specified as a target with the -c option, only that interface is displayed. If the -S option is specified, all intl100 interfaces are displayed.

  • The command without the verbose option displays a table, with one row for each interface that is listed.

  • The verbose option changes the output to include more details about each interface that is displayed, and also changes the format to be line-oriented, with each line describing one attribute. The following attributes are displayed: mac, mtu, and speed.

  • More details on these attributes can be found in the Attributes section.

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 intl100 drivers. all is the default if no argument is provided with --stats. It displays the same information 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 interface (when the all keyword is specified) or the specified attributes (when they are listed by name).

nwmgr [-g] -A {all | attr1, attr2, ...} -c lan_instance

nwmgr [--get] --attribute {all | attr1, attr2, ...} --class_instance lan_instance

  • Each attribute is listed on a separate line as a name-value pair.

View Interface Details

The following command can be used to get detail information about 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 subject to variation across drivers. In the case of intl100, the output is same as what is shown by: nwmgr -g -v -c lan_instance

  • The -q option provides more information about the subsystem.

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: mac, mtu, and speed.

Save Current Attribute Values

The following command can be used to save the current attribute values 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 attribute of an interface in the configuration file (/etc/rc.config.d/hpintl100conf) so that the interface configuration is saved across boots. The user can also run the start-up script later manually to apply the configuration file values to the running kernel, by typing: /sbin/rc2.d/S326hpintl100 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.

nwmgr -r -c lan_instance

nwmgr --reset --class_instance lan_instance

  • The interface is subjected to a PCI reset, which clears all previous state, including the interface statistics. The interface is then re-programmed with the attribute values that were current before the reset. Promiscuous mode and multicast addresses are preserved across the reset.

  • While the reset is in progress, the data traffic through the interface is interrupted. So, the command automatically performs a Critical Resource Analysis to see if the interface is data-critical; that is, any other resource depends for its functionality on the availability of the interface. If so, the reset is not performed.

  • The reset can be forced, even if the interface is data-critical, by using the --force option. It is possible for an interface to be system-critical; that is, the health of the system depends on the availability of the interface. In that case, the reset is not be performed even if the --force option is specified.

Reset Statistics of an Interface

The following command can be used to reset statistics for an interface.

nwmgr -r --st -c lan_instance

nwmgr --reset --stats --class_instance lan_instance

  • The data traffic 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

The following command can be used to diagnose link connectivity.

nwmgr --diag [link] -A dest=mac_addr [--it number] [-A pktsize=bytes] [-A timeout=seconds] -c lan_instance

nwmgr --diagnose [link] --attribute dest=mac_addr [--iterations number] [--attribute pktsize=bytes] [--attribute timeout=seconds] --class_instance lan_instance

  • 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 value is 1.

  • The pktsize attribute specifies the size of each test frame. The default value is 100 bytes.

  • The timeout attribute specifies how many seconds to wait for the acknowledgement of each test frame. The default value is 5 seconds.

RETURN VALUES

0

On success.

<>0

On failure, the command returns values in as shown in ERRORS below.

ERRORS

Below are the errors generated by nwmgr on failure.

EACCES

Attempt to set a read-only attribute.

EBUSY

The interface is currently inaccessible.

EINVAL

One or more of the attributes or options is invalid for the operation.

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 intl100 interface lan1.

nwmgr -A speed,mtu -c lan1

Display all attributes of the intl100 interface lan1.

nwmgr -A all -c lan1

Set MTU to 1400 and speed to auto-negotiation on lan1.

nwmgr -s -A mtu=1400,speed=auto_on -c lan1

Restore MTU and the MAC address to their defaults on lan1.

nwmgr --set -A mtu,mac --from de -c lan1

COMPARISON WITH LANADMIN

Commands To Display Generic NIC Attributes

lanadminnwmgr
lanadmin -m PPAnwmgr [-g] -A mtu -c lanPPA
lanadmin -a PPAnwmgr [-g] -A mac -c lanPPA
landamin -s PPAnwmgr [-g] -A speed -c lanPPA
lanadmin -m -a -s PPAnwmgr [-g] -A mtu,mac,speed -c lanPPA
nwmgr [-g] -A all -c lanPPA

Commands To Get NIC Statistics

lanadminnwmgr
lanadmin -g PPAnwmgr -g --st mib -c lanPPA
lanadmin -x stats drv PPAnwmgr -g --st subsys -c lanPPA
nwmgr -g -st mib,subsys -c lanPPA
lanadmin -g mibstats_ext PPAnwmgr -g --st extmib -c lanPPA

Commands To Set Generic NIC Attributes

lanadminnwmgr
lanadmin -M mtu_size PPAnwmgr -s -A mtu=mtu_size
-c lanPPA
lanadmin -A MAC_Add PPAnwmgr -s -A mac=MAC_Address
-c lanPPA
lanadmin -S speed PPAN/A. NOTE: Speed can be specified
as a combination of speed and
duplixity only. For example:
000FD, 100HD etc.
landmin -X speed_value PPAnwmgr -s -A speed=speed_value
-c lanPPA

Command To Reset Statistics of a NIC

lanadminnwmgr
lanadmin -c PPAnwmgr -r -st -c lanPPA

Command To Reset MTU To the Default Value

lanadminnwmgr
lanadmin -R PPAnwmgr -s -A mtu
-from default -c lanPPA

Command To Set To Default Configurations

lanadminnwmgr
lanadmin -A DEFAULT PPAnwmgr -s -A mac
-from default -c lanPPA
NOTE: Similarly default configuration
can be set for the other attributes
like speed,mtu, mac etc.

Note:

The nwmgr equivalent for displaying the usage information is not available.

Note:

The lanadmin options that support apa and vlan are covered in the nwmgr_apa(1M) and nwmgr_vlan(1M) manpages.

COMPARISON WITH LINKLOOP COMMAND

Command to Test the Link Level Connectivity

linkloopnwmgr
linkloop -i PPAnwmgr -diag -A dest=MAC_Address
MAC_Address-c lanPPA
linkloop -i PPAnwmgr --diag -A dest=linkaddr,
-n count -s sizepktsize=size, timeout=timeout
-t timeout Mac_Address--it count -c lanPPA
linkloop -r rifN/A

Note:

nwmgr does not allow multiple station addresses to be specified in the same command line.

COMPARISON WITH LANSCAN COMMAND

Command To List Interfaces and Their Attributes

lanscannwmgr
lanscannwmgr -g -v -c lanPPA
nwmgr -C lan
nwmgr -S gelan

Command To Display Interface Names Only

lanscannwmgr
lanscan -inwmgr -g -v -c lanPPA
nwmgr -C lan -sc | awk -F# '/if_state/ {print $1}'

Command To Display MAC Types Only

lanscannwmgr
lanscan -mnwmgr -g -v -c lanPPA
NOTE: nwmgr reports only on
Ethernet links

Command To Display NMIDs Only

lanscannwmgr
lanscan -nnwmgr -g -v -c lanPPA

Command To Display the PPAs Only

lanscannwmgr
lanscan -pnwmgr -g -v -c lanPPA
nwmgr -C lan --sc | awk
-F# '/if_state/ {print substr($1,4)}'

Command To Display All MAC Addresses

lanscannwmgr
lanscan -anwmgr -g -v -c lanPPA

Note:

nwmgr displays the NIC attributes such as interface name, MAC type, the NMID, the PPA and the MAC address for only one NIC since only one instance of "lan" class instance can be specified for the --class_instance (-c) option.

Note:

The lanscan options (-l and -q) that support "apa" are covered in the nwmgr_apa(1M) manpage.

AUTHOR

nwmgr was developed by HP.

FILES

/etc/rc.config.d/hpintl100conf

Contains the saved (persistent) configuration values for intl100 interfaces.

/sbin/rc2.d/S326hpintl100

Startup script for the intl100 driver, which applies the configuration file to the running system. It is executed automatically after each reboot, and the user can execute it by providing the argument start.

SEE ALSO

nwmgr(1M).

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.