Management
Management

SNMP MIB for hidden routes

‎07-02-2019 12:06 AM

Is there a MIB to pull hidden routes?  similar to a show route hidden

3 REPLIES 3
Highlighted
Management

Re: SNMP MIB for hidden routes

[ Edited ]
‎07-02-2019 05:30 AM

Hi,

 

I wasn't able to find a suitable mib variable, although in fairness I didn't spend too much time looking, or was looking in all of the wrong places... Perhaps someone is better able to provide a MIB variable that you could poll.

 

Alternatively, if no MIB variable is available then a solution could be implemented using an SNMP-Script (SLAX, XSLT or  Python) depending upon the version of code that you are running, the feature was added in 15.1 IIRC and familiarity with the appropriate scripting language.  I'm not 100% sure of the code versions required for Python support, but I've added an additional reference below which might be of assistance too.

 

References:

https://www.juniper.net/documentation/en_US/junos/topics/concept/junos-script-automation-snmp-script...

https://www.juniper.net/documentation/en_US/junos/topics/example/junos-script-automation-snmp-script...

https://www.juniper.net/documentation/en_US/junos/topics/usage-guidelines/automation-enabling-an-snm...

https://www.juniper.net/documentation/en_US/junos/topics/reference/general/junos-script-automation-b...

https://www.juniper.net/documentation/en_US/junos/topics/reference/general/junos-script-automation-p...

 

Regards.

Management

Re: SNMP MIB for hidden routes

‎07-02-2019 08:03 AM

Route related MIB should be included in ipCidrRouteTable or jnxIpCidrRouteTable (RFC2096) 

 

But didn't find a MIB for hidden route

 

https://www.juniper.net/documentation/en_US/junos/topics/concept/standard-mib-overview.html

IP, except for ipRouteTable, which has been replaced by ipCidrRouteTable (RFC 2096, IP Forwarding Table MIB)

https://www.juniper.net/documentation/en_US/junos/topics/reference/mibs/mib-jnx-ipforward.txt

 

 


Mengzhe Hu
JNCIE x 3 (SP DC ENT)
Management

Re: SNMP MIB for hidden routes

‎07-02-2019 08:59 AM

To the best of my knowledge, it's not supported in Junos.

 

Everything we do is from RFC2096 (later replaced by RFC4292) 

https://tools.ietf.org/html/rfc4292

 

MIB ipCidrRouteDiscards/inetCidrRouteDiscards/ipRoutingDiscards/inetCidrRouteDiscards also doesn't apply ti hidden routes. 

 

There's no Juniper enterpise specific MIB further to get hidden route information 


Mengzhe Hu
JNCIE x 3 (SP DC ENT)