![](/images/new-backgrounds/1308428/308428267x1.webp)
Administration Commands
define_mode
This parameter is ignored if list_options is set to FIRST_IN_LIST.
timeout
Timeout period in seconds. A value of 0 (zero) indicates that the session immediately becomes free.
2.40.2 Returned Parameters
If the command executes successfully, SNAplus2 returns the following parameter:
OK
The command executed successfully.
2.40.3 Error Return Codes
If the command cannot be executed, SNAplus2 returns a primary return code to indicate the type of error and a secondary return code to provide specific details about the reason for unsuccessful execution.
Parameter Check
If the command does not execute because of a parameter error, SNAplus2 returns the following parameters:
primary_rc
PARAMETER_CHECK
secondary_rc
Possible values are:
INVALID_RESOURCE_TYPE
The type of timeout defined was not valid.
INVALID_LU_NAME
The resource_type parameter specified an LU name that was not valid.
INVALID_PARTNER_LU
The resource_type parameter specified a partner LU name that was not valid.
INVALID_MODE_NAME
The resource_type parameter specified a mode name that was not valid.
State Check
No specific state errors, other than those listed in Appendix A, Common Return Codes from snapadmin Commands, occur for this command.
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.41 define_mode
The define_mode command defines a mode (a set of networking characteristics to be used by a group of sessions) or modifies a previously defined mode. You cannot modify the
134