Cisco Devices discovery

Answered Question
Aug 6th, 2009
User Badges:

my Solaris server configured to use ipnodes for Cisco devices discovery.instead of host file.I don't have permission to host file. the script I have to access Cisco devices using snmpwalk and snmpget. the problem is net-snmp not able get name resolution from ipnodes and I got error" unkown host" but when I using ping the name resolution is working. any one has idea why net-snmp not using ipnodes? thanks in Advance.

Correct Answer by Joe Clarke about 7 years 9 months ago

I believe the precompiled packages of net-snmp do not include support for getaddrinfo() or getipnodebyname(). The result is that gethostbyname() is used which does not consult ipnodes. If you recompile, getaddrinfo() should be detected, and this will be used to resolve your hostnames.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Joe Clarke Thu, 08/06/2009 - 09:59
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

What version of Solaris? On Solaris 10, ipnodes and /etc/hosts are the same file. On other versions, I believe you will need to recompile net-snmp with IPv6 support to get ipnodes resolution to work.

raindrop18 Thu, 08/06/2009 - 10:51
User Badges:

thank J. my Solaris is version 10. here is the senario. the unix group maintain the host file and didn't give permission for and have been told and given permission on ipnodes. so I have added all my cisco devices lists with corresponding ip address to ipnodes.so in short the host file reflect all other devices but the ipnodes reflect all Cisco devices? I don't know this logis is working or not. just been told. appreciated your comments.

Joe Clarke Thu, 08/06/2009 - 10:59
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

On Solaris 10, ipnodes should be a symlink to /etc/hosts. But it sounds like this was changed by your admins. In that case, I think you will need to rebuild net-snmp with IPv6 support to get support for ipnodes.

raindrop18 Thu, 08/06/2009 - 11:43
User Badges:

Thanks a lot J. so even though we are not using IPv6 still need net-snmp need to rebuild with IPv6 support? to get ipinodes functionality?

Correct Answer
Joe Clarke Thu, 08/06/2009 - 12:09
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

I believe the precompiled packages of net-snmp do not include support for getaddrinfo() or getipnodebyname(). The result is that gethostbyname() is used which does not consult ipnodes. If you recompile, getaddrinfo() should be detected, and this will be used to resolve your hostnames.

raindrop18 Thu, 08/06/2009 - 13:26
User Badges:

thank you so very much!!!you are correct. i have just rebuild net-snmp with ipv6 and it's working.

Actions

This Discussion