HP-UX VLAN Administrator's Guide, February 2007
nwmgr --diag [link] -A dest=<mac addr>[,pktsize=<bytes>,timeout=<seconds>]
[--it <number>] -c lan<VPPA>
nwmgr: Operational Overview
This section briefly summarizes the operational parameters of nwmgr. It lists the operations
available as well as some of the options available on those operations.
Operations: Available nwmgr operations for VLAN interfaces are as follows:
• Add an interface (-a | --add)
• Perform critical resource analysis (CRA) on an interface (--cra)
• Delete an interface (-d | --delete)
• Diagnose the link connectivity of an interface (--diag | --diagnose)
• Get (display) attributes of an interface (-g | --get)(Default operation)
• Display help information (-h | --help)
• Reset interface or statistics (-r | --reset)
• Set attributes of an interface (-s | --set)
Options: The following is a partial list of options available to apply to nwmgr operations:
• Specify an attribute (-A | --attribute). See the nwmgr_vlan(1M) man page for a list of
valid attributes.
• Specify a target interface of the operation (-c | --class_instance).
• Specify a target subsystem for the operation. For the VLAN subsystem, the option argument
is always vlan (-S vlan | --subsystem vlan).
• Specify the configuration from which the operation will save data. For the VLAN subsystem,
cu (current) is the only valid argument (--fr cu | --from cu).
• Specify that the operation be performed on the saved configuration (-sa | --saved).
• Display the output in script parseable format (-sc | --script).
• Specify that the operation applies to the statistics of the target. Statistics are displayed for
get operations. Statistics are cleared for reset operations (-st | --stats).
• Display verbose output (-v | --verbose).
Comparing nwmgr, lanadmin, and linkloop Syntax
Table 3-1 lists common nwmgr syntax examples and the equivalent lanadmin and linkloop
syntax.
Table 3-1 nwmgr Syntax and Equivalent lanadmin and linkloop Syntax Examples
Equivalent lanadmin and linkloop Syntaxnwmgr Syntax
lanadmin -V scannwmgr -S vlan
lanadmin -V info 5000nwmgr -c lan5000
lanadmin -V create vlanid 10 1nwmgr -a -S vlan -A vlanid=10, ppa=1
lanadmin -V modify vlanid 20 5000nwmgr -s -c lan5000 -A vlanid=20
lanadmin -V delete 5000nwmgr -d -c lan5000
lanadmin -p 5000nwmgr --cra -c lan5000
linkloop -i 5000 0xaabbccddeeffnwmgr --diag -c lan5000 -A
dest=0xaabbccddeeff
40 Using nwmgr to Configure and Administer HP-UX VLANs