Tuesday, February 2, 2010

Using xargs to poll using SNMP

All SNMP OID's are present in snmp-packets file.

cat snmp-packets | grep -i "Object Name" | awk '{print $3}' | xargs -l1 -i snmpbulkget -Cn0 -Cr19 -c public -v 2c 172.16.153.140 {}