Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
Question I am unable to perform a MIB walk on the ifIndex
The utility-mib-helper script simplifies working with the SNMP Utility MIB by pefomring a handful of small but very useful tasks related to the Utility MIB. Possible Actions: walk-mib - This performs a MIB walk of all the Utility MIB values
Description utility-mib-helper performs a handful of small but very useful tasks related to the Utility MIB. Possible Actions walk-mib - This performs a MIB walk of all the Utility MIB values
See matching posts in thread - Polling the Chassis MIB on an I...
The only difference that might occur across platforms is MIB support. You cannot provision or configure a device using SNMP on Junos OS. For a list of standard SNMP MIBs that are supported on various devices running Junos OS, click Standard SNMP MIBs supported by Junos OS
For example, the page linked below includes a script that demonstrates setting a given utility MIB to the value 100. Read the document snmp-example #op-script #Slax #SNMP #mib #How-To
Description This script demonstrates setting a given utility MIB to the value 100. Source Code GitHub Links The source code below is also available from GitHub at the following locations: snmp-example in Junoscriptorium on GitHub Example Output SLAX Script Contents XML Script Contents Example Output 01 user@cli> op snmp-example string wibble Utility MIB wibble has value 100 02 03 user@cli> show snmp mib walk jnxUtil 04 jnxUtilIntegerValue.119.105.98.98.108.101 = 100 05 06 system ( 07 scripts ( 08 op ( 09 file snmp-example.slax; 10 ) 11 ) 12 ) SLAX Script Contents 01 version 1.0; 02 03 /* 04 * CVS details 05 * $Id$ 06 * 07 * the change log can be found at the bottom of this file 08 */ 09 10 /* 11 * This script uses the snmp.slax library. This library makes it as easy 12 * to get a value as it does set a value. 13 * This script demontrates this by setting a given utility MIB to the value 100 14 */ 15 16 ns junos = "http://xml.juniper.net/junos/*/junos"; 17 ns xnm = "http://xml.juniper.net/xnm/1.1/xnm"; 18 ns jcs = "http://xml.juniper.net/junos/commit-scripts/1.0"; 19 ns ext = "http://xmlsoft.org/XSLT/namespace"; 20 21 import "../import/junos.xsl"; 22 import "snmp.slax"; 23 24 param $string; 25 26 var $arguments = ( 27 <argument> ( 28 <name> string; 29 <description> "a string"; 30 ) 31 ) 32 33 match / ( 34 <op-script-results> ( 35 /* set the utility MIB to the value of 100 */ 36 call snmp set($instance = $string, $value = "100"); 37 38 /* now here's the magic. get the value without having to convert 39 * the string into an OID format 40 */ 41 var $mib = "jnxUtilIntegerValue." $string; 42 var $value = ( 43 call snmp get($instance = $mib); 44 ) 45 46 <output> "Utility MIB " $string " has value " $value; 47 ) 48 ) XML Script Contents 01 <?
See matching posts in thread - Can I query multicast route table...
For a list of supported standard and enterprise-specific MIBs, click SNMP MIBs and Traps Reference. This article provides answers to the most common questions about SNMP counters. Which MIB should I use for interface counters?
Overview Update an SNMP MIB with the value of the current mbuf allocation...Using regular expressions, it extracts the current mbuf allocation and stuffs it in the utility mib with the key "current-mbufs"