HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
n
nwmgr_vlan(1M) nwmgr_vlan(1M)
ERRORS
[EACCES] Attempt to set a read-only attribute.
[EBUSY] Interface is presently inaccessible.
[EINVAL] One or more of the attributes or options is invalid for the task.
[EIO] IO error.
[ENOENT] File does not exist.
[ENOMEM] Memory allocation failed. This could be a transient condition.
[ENOTSUP] Operation or feature is not supported.
[ENXIO] Interface could not be accessed.
[EPERM] User lacks the hpux.network.config
authorization required for this operation.
[ERANGE] Specified values of one or more attributes were lower than the minimum or greater
than the maximum allowed.
[ENODEV] Device or interface not found.
[EEXIST] Device or interface already exists.
EXAMPLES
Help for all VLAN operations in terse mode:
nwmgr -h -S vlan
Help for all VLAN operations in verbose mode:
nwmgr -h -S vlan -v
Help for the get operation:
nwmgr -g -S vlan -h
Add vlan with vlanid 10 to ppa 1:
nwmgr -a -S vlan -A vlanid=10,ppa=1
View attributes of all VLAN interfaces in tabular format:
nwmgr -g -S vlan
View attributes of all VLAN interfaces in name=value format:
nwmgr -g -S vlan -v
View attributes of all VLAN interfaces in scriptable format:
nwmgr -g -S vlan -v --sc
View attributes of lan5000 in tabular format:
nwmgr -g -c lan5000
View attributes of lan5000 in name=value format:
nwmgr -g -c lan5000 -v
View attributes of lan5000 in scriptable format:
nwmgr -g -c lan5000 -v --sc
View vlanid of lan5000 in scriptable format:
nwmgr -g -c lan5000 -A vlanid --sc
View statistics of lan5000 in scriptable format:
nwmgr -g -c lan5000 --st --sc
Set vlanid to 20 in lan5000:
nwmgr -s -c lan5000 -A vlanid=20
Set vlanid to 25 in lan5000 with output in scriptable format:
nwmgr -s -c lan5000 -A vlanid=25 --sc
Save all the attributes of lan5000 to configuration file:
nwmgr -s -c lan5000 -A all --sa --fr cu
Save all the attributes of all VLAN interfaces on the system to configuration file:
nwmgr -s -S vlan -A all --sa --fr cu
112 Hewlett-Packard Company − 7 − HP-UX 11i Version 3: February 2007