SWITCH statement
The SWITch statement is in the $$$CONFG member.
For more information about the $$$CONFG member, see Customizing-for-a-proprietary-syslog-extension.
If a switch has not been previously defined, it is defined by the SWITch statement. Switch names might be of any length and are not case-sensitive: MYSWITCH, myswitch and MySwitch are equivalent. You might define any number of switches.
The operands of SWITch are processed cumulatively from left to right. For example, to set the RMF and Scty switches on and the Perf switch off, use the following code:
SWITCH ON(Perf RMF) OFF(Perf) ON(Scty)
SWITch uses the following parameters:
Parameter | Description |
---|---|
SWITch | Identifies the start of the SWITch statement |
for and/or if | |
OFF( switch ...) | One or more software switches to be set off |
ON( switch ...) | One or more software switches to be set on |