Visara Master Console Center Scripting Guide User Manual
Page 197

Chapter 5 Script Commands
Scripting Guide
197
Example:
SWITCH $Msg[ 3]
CASE
“IOS000I”:
//call the IOS000 script to handle
IOS000( $Msg[ 4], $Msg[ 5])
BREAK
CASE
“IOS050I”:
//call the IOS050 script to handle
IOS050( $Msg[ 4], $Msg[ 5])
BREAK
CASE
“IOS060I”:
CASE
“IOS070I”:
CASE
“IOS080I”:
//call the IOS067 script to handle
IOS0678( $Msg[ 4], $Msg[ 5])
BREAK
DEFAULT:
LOG( LOG_FLT, “OTHER MESSAGE”)
BREAK
ENDSWITCH
SWITCH %Index
CASE
0:
//call the IOS000 script to handle
DoThisNow( $Msg[ 4], $Msg[ 5])
BREAK
CASE
1:
//call the IOS050 script to handle
DoThatNow( $Msg[ 4], $Msg[ 5])
BREAK
CASE
2:
CASE
3:
CASE
4:
//call the IOS067 script to handle
IOS0678( $Msg[ 4], $Msg[ 5])
BREAK
DEFAULT:
LOG( LOG_FLT, “OTHER MESSAGE”)
BREAK
ENDSWITCH
See Also: