2009-11-13 01:49 AM
Hi Jay Levan,
It is possible to create one trap which will be triggered when you
either create or delete a volume. The volNumber object can be used for
I created a sample trap @ my ONTAP. Here goes the details :
filer> snmp traps
priority = notification
active = on
OID = snmp.184.108.40.206.4.1.7220.127.116.11.0
trigger = change-trigger
interval = 10
edge-1 = 1 (up)
current-value = 98
The current-value is automatically populated and you don't need to worry
When you receive this trap @ trap receiver, you can look at the
volNumber value. With respect to old value, if you see an increment
there, you can consider it as volume creation operation. If there is a
decrement, then it should be a volume deletion operation.
If you are looking for 2 different traps, one for Volume added and the
other for Volume destroyed, I don't know how to achieve that as of now.
2009-11-13 05:59 AM
Now to get a little more greedy ...
Is there an equivelant trap that can send the name of the volume that changed? I tried using
snmp.18.104.22.168.4.1.722.214.171.124.1.2 but keep getting "Error--var spec couldn't be retrieved from database"
2009-11-14 03:06 AM
Object snmp.126.96.36.199.4.1.7188.8.131.52.1.2 is a tabular object. To get the right value, you need to pass the index to the mib object.
enterprises.7184.108.40.206.0 = 98 <== volNumer ==>
enterprises.7220.127.116.11.1.2.98 = "vol6" <== volName ==>
Here, vol6 is the new volume I created which has the last index 98.
On your equivalent trap question : I'll explore it more this weekend and let you know if I get any useful information.