Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to do this with SNMP?

Status
Not open for further replies.

hassaantariq

Technical User
Sep 4, 2006
2
AU
Hello,
i am new with SNMP and trying to learn the concepts and procedures.
I have to automate the process of identifying the devices i.e. as a device comes on the network, it should be automatically located through an IP address, which it receives from DHCP.

This has to be done with SNMP.Please keep this in mind that those devices only support MIB2.
What should i do and what would i need to implement this?
thanks and regards
 
Hi,

If devices are appearing on the network with DHCP assigned addresses, then you've got your work cut out.

There are a couple of approaches that I can think of :

1. Do a ping sweep of the IP address range of the DHCP assigned addresses. If anything responds, then do an SNMP get of its sysObjectId to see what type of device it is.

2. Interrogate the ARP cache of the router which acts as the default gateway for the devices that are on the DHCP range. This could be retrieved by SNMP if the router allows you to SNMP manage it. Then you can do an SNMP get of the live devices on the DHCP range to see what they are (as above).

The only way I can think of doing this is via some type of script (e.g. perl). Its not a trivial task.

HTH.


Nigel Bowden
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top