If this is for multiple devices, I would setup a "program" notification
that kicks off a PERL or other script to do the snmp poll.  That way you
could have your script reference a master list of IP or Hostnames with
Valid MAC addresses.  If this is for a small number of devices you could
setup a SNMP service check that runs within the object polling the oid
and comparing it against a constant value such as the MAC.  This does
not seem very scalable though as it appears you would need to create a
different service for each unique mac or oid value.  If you could
populate a read field on the object such as the contact inf with a
meaningful string such as "Valid Device" on all desired machines, then
you would only need one change checker service that could be used on all
objects since you would be looking for the same value across the board
assumming that the devices put in the objects place would not also have
that string.

If you do not want to poll every min (default) along with the pings you
would need a second object for each device so you could adjust how often
it is polled.  If you had a second object, you could create a dependency
so that the device would only be polled if the parent was down.

Another thing to consider.  You could do away with the ping and only do
the SNMP "inventory change" poll.  If the poll fails either a) the
device is down or b) the device has been changed.  Eitehr way I assume
you would need to take action.

Post whatever you come up with, i would be interested to hear how you
solved the problem.

>>> [EMAIL PROTECTED] 5/24/2004 10:15:19 AM >>>
Has anyone played with or developed scripts in WUG. 
 
What I am trying to do is if a device goes down and then back up to run
a
script that will do an snmputil get on a particular OID to check for
the
device serial number (we are putting that in the location field) or the
MAC
address. I want to use this to check to make sure that the device
hasn't
changed out w/o my knowledge.
 
Thanks!
 
Scott

Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Reply via email to