MIB Viewer

smMlmFilterVariableExpression

OBJECT-TYPE
1.3.6.1.4.1.2.6.12.7.4.1.10
Access
read-write
Status
mandatory
Sub-identifiers
0
This field is used to match trap against the environment variables, set on the basis of MIB variables and other information flowing in the trap. The expression can be any expression with left operand as environment variable name( prepended with $) and right operand as values of variables or regular expression, with the following operators: () : grouping && : logical and || : logical or == : equal to != : not equal to < : less than <= : less than equal to > : greater than >= : greater than equal to ! : negation The precedence and associativity of operators is same as in c language and expression evaluation is based on standard c program execution. Set of environment variables that can be used in the expression are: SM6K_HOSTNAME={hostname running subagent} SM6K_DOMAIN_NAME={fully qualified hostname} SM6K_HOST_ADDRESS={ip address} SM6K_INSTANCE_NAME={instance string of row} SM6K_INSTANCE_ID={instance ASCII octet value of row} SM6K_EXECUTION_REASON=Filter_Matched|Filter_Armed| Filter_Disarmed SM6K_TRAP_ENTERPRISE={enterprise ID from the trap} SM6K_TRAP_AGENT_ADDRESS={IP address of the sending agent} SM6K_TRAP_GENERIC_NUM={generic trap number of the trap} SM6K_TRAP_SPECIFIC_NUM={specific trap number of the trap} SM6K_TRAP_TIME_TICKS={time ticks since the sending agent was started} SM6K_NUM_TRAP_VARS={number of MIB variables in the trap} SM6K_TRAP_VAR_OBJ_ID#={Object ID for MIB variable in trap} SM6K_TRAP_VAR_TYPE#=INTEGER|Counter|Gauge|TimeTicks| IpAddress|OCTET_STRING|Opaque| OBJECT_IDENTIFIER|NULL|Unknown SM6K_TRAP_VAR_VALUE#={value of the MIB object} where the # is replaced by the trap variable's positional number in the trap (starting at 1). Values can be in the form of integer, dot notation or string or hex string. If it is a string it should be within quotes. Format of regular expression is: RE:expression (within double quotes), where 'expression' is the extended regular expression in the style of ed or egrep command. example: Check for trap number 22 from System Information Agent. ( $SM6K_TRAP_ENTERPRISE == .1.3.6.1.4.1.2.6.12) && ( $SM6K_TRAP_SPECIFIC_NUM == 22 ) If the expression evaluates to TRUE, then the trap is matched.
DisplayString