Usage is: set_shelf_ip_info --shelf <shelf_ip> [OPTIONS]
Required arguments:
-s,--shelf=SHELF_IP IP address of shelf with FRU info to set
Optional arguments:
When specified w/o parameters, the optional arguments will assume
their default values. When omitted, the values present in the Shelf
FRU Information will be retained.
-i, --vlan=VLAN_ID VLAN ID (12-bits)
-u, --untagged=DISCARD When DISCARD is 1, incoming
untagged frames will be discarded.
-t, --tagged=DISCARD When DISCARD is 1, incoming
tagged frames will be discarded.
-x, --boundary-violations=DISCARD When DISCARD is 1, incoming
boundary violations are discarded.
-b, --group-base=BASE_IP BASE_IP is the base address for
the block of addresses available
to the shelf. Host ID of all ones
or all zeros are not permitted.
-e, --group-end=END_IP END_IP is the end address for
the block of addresses available
to the shelf. Host ID of all ones
or all zeros are not permitted.
-m, --subnet-mask=SUBNET_MASK SUBNET_MASK is the subnet mask
for the shelf. It defines the
network assigned to the shelf.
-g, --gateway=GATEWAY_IP GATEWAY_IP is the IP address
of the gateway
-d, --dry-run When this option is used, the
nothing is written back to the shelf.
-f, --force When this option is used, write to
the shelf even if there are no changes.
When there is no record present in the
shelf, this can be used w/o any other
configuration options to create a
default record
-v, --verbose=VERBOSITY VEBOSITY can range from 1 to 3.
Return Value:
0 if OK
1 if there is a problem with the arguments provided
2 if there are problems communicating with the shelf
  • No labels