Posted By: | reminder |
Posted Date: | May 05, 2010 |
Category: | Network Management |
Version: | 1.2 |
License: | Cisco-Style BSD |
Summary: | Script executes IOS commands, matches the result against patterns to extract numeric values to be published via SNMP Expression MIB. |
Script Modified Date: | May 05, 2010 |
Cisco IOS Version tested: | XE 2.5.1 |
Cisco Products Tested: | ASR1k |
Environment Variables used: | |
Rating Count: | 1 |
Average Rating: | 4 |
File Size: | 8.3 KB |
Script Info URL: | |
CliValueToSnmpExprMib executes one or multiple IOS commands and matches one or multiple regex patterns for extracting numeric values from the command outputs. The configuration section after the script header allows the specification of > commands > patterns for extracting the interesting values > Expression MIB OID indexes for each value The script creates Expression MIB entries unless it exists already. Otherwise it will just its value. The script efficiently deals with multiple commands. It executes all commands in one go, does all the value extractions, and finally updates all expression MIB entries together.