![](/images/new-backgrounds/1308428/308428127x1.webp)
Administration Commands
define_cos
The security parameter was not set to one of the valid values.
EXCEEDS_MAX_ALLOWED
Adding the specified ports would exceed the maximum total number of ports on a CN.
INVALID_CN_NAME
The fqcn_name parameter contained a character that was not valid or was not in the correct format.
INVALID_PORT_NAME
One or more of the port names specified did not match the name of a defined port.
INVALID_PORT_TYPE
One or more of the specified ports cannot be on a CN because its DLC type is a
State Check
If the command does not execute because of a state error, SNAplus2 returns the following parameters:
primary_rc
STATE_CHECK
secondary_rc
PORT_ACTIVE
The port specified by the port_name parameter cannot be modified because it is currently active.
Function Not Supported
If the command does not execute because the node’s configuration does not support it, SNAplus2 returns the following parameters:
primary_rc
FUNCTION_NOT_SUPPORTED
The local node is a LEN node. This command is valid only at a network node or an end node.
secondary_rc
(This parameter is not used.)
Other Conditions
Appendix A, Common Return Codes from snapadmin Commands, lists combinations of primary and secondary return codes that are common to all commands.
2.12 define_cos
The define_cos command adds a class of service (COS) definition or modifies a previously defined COS. The definition specifies TG “rows” and node “rows”, which associate a range of node and TG characteristics with weights that are used for route calculation. The lower the weight the more favorable the route.
2.12.1 Supplied Parameters
Parameter name | Type | Length | Default |
[define_cos] |
|
|
|
cos_name | character | 8 |
|
64