How can be detect is device router or host by using snmp. I tried to use google. But nothing found.
migrated from stackoverflow.com Mar 1 '10 at 15:49
This question came from our site for professional and enthusiast programmers.
You can try to determine device type by polling sysObjectID (18.104.22.168.22.214.171.124) - this should give you information about the vendor and device type (see e.g. CISCO-PRODUCTS-MIB for the list of Cisco routers sysOIDs).
The other option is RFC-1213 sysServices which can indicate the routing capability of the device.
The following SF question has some details about routing table, which can serve as additional source of information http://serverfault.com/questions/41842/snmp-equivalent-for-show-ip-route.