08-06-2009 08:43 AM
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.
Solved! Go to Solution.
08-06-2009 12:09 PM
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.
08-06-2009 09:59 AM
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.
08-06-2009 10:51 AM
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.
08-06-2009 10:59 AM
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.
08-06-2009 11:43 AM
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?
08-06-2009 12:09 PM
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.
08-06-2009 01:26 PM
thank you so very much!!!you are correct. i have just rebuild net-snmp with ipv6 and it's working.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide