Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Secondary IP Addresses and SNMP

How can I tell using SNMP whether an IP address configured on an interface is primary or secondary?  Thanks for any help.

Everyone's tags (1)
4 REPLIES
Blue

Re: Secondary IP Addresses and SNMP

What is the context of the "primary or secondary" you're referring to? In HSRP or something else?

New Member

Re: Secondary IP Addresses and SNMP

Thanks for responding.

Yes, I looked into the CISCO-HSRP-MIB. Using, oid 1.3.6.1.4.1.9.9.106.1.2.1.1.11., I can get the primary IP address. Using this I can determine which IP block is primary and which is secondary.

However, I would like to be able to determine if the IP address configured on an interface is primary or secondary if HSRP is not configured.

CISCO-IP-IF-MIB seems to be able to do it, however, I see no support for it on the ASRs.

Thanks,

Yogi

Blue

Re: Secondary IP Addresses and SNMP

Is ciiIPAddressCategoryCap the OID you're referring to when you say "CISCO-IP-IF-MIB seems to be able to do it"? That answer notwithstanding, here's a little thinking-out-loud:

I don't know to what extent you want to rely on SNMP. I think you could simply use SNMP or some other means to pull off the entire IOS config, and parse it with Perl/sed/whatever on your local box.

Or, since you can already "determine which IP block is primary and which is secondary" with CISCO-HSRP-MIB, you could also poll "ipAdEntAddr / 1.3.6.1.2.1.4.20.1.1". By piecing those two together, maybe it could get you what you want.

Finally, if you know what you're looking for can be found with some combo of IOS "show" commands, I suggest posting in the other Network Management forum: https://supportforums.cisco.com/community/netpro/network-infrastructure/network-management, for a possible EEM-based solution.

New Member

Re: Secondary IP Addresses and SNMP

Thanks for responding, yjdabear.

We will probably get the running config and work that way. Many thanks for the idea!

Yogi

1818
Views
0
Helpful
4
Replies
CreatePlease login to create content