eval statement syntax for SNMP variables
You can evaluate SNMP variables using the eval statement.
The following examples illustrate how to evaluate SNMP variables
using the
eval statement.Sample: Evaluation of SNMP values
The following example returns the value of the SNMP variablesysName.eval(text, '&SNMP.VALUE.sysName')Sample: Evaluation of SNMP indices
The following example returns the value of the index of the SNMP request for the variableipRouteNextHop. In a table poll, this is
evaluated for every index in the table list..eval(text, '&SNMP.INDEX.ipRouteNextHop')Sample: Evaluation of previously retrieved SNMP values
The following example returns the value of the SNMP variablesysName,
which was retrieved when this poll was last run..eval(text, '&SNMP.VALUE.OLD.sysName')Sample: Evaluation of the results of an expression
The following example returns the results of an expression, such as the SNMP Bandwidth poll. The results are written directly within the alert description within the IBM Tivoli Netcool/OMNIbus or Event Viewer.Note: This feature is only available in
basic threshold polls. The feature is not available in generic threshold polls, because generic
threshold polls do not evaluate to a result, they only evaluate to true or false. If you attempt to
use this syntax in a generic threshold, the operation will not fail; however, it will generate a
blank space in the alert.
eval(text,'&POLLDATA.RESULT')Sample: Evaluation of Old SNMP Indices
The following example returns the value of the index of the SNMP request for the variableipRouteNextHop, which was retrieved
when this poll was last run. In a table poll, this is evaluated for
every index in the table list. Note that the old index is likely to
be the same as the new index.eval(text, '&SNMP.INDEX.OLD.ipRouteNextHop')