i am not able to poll MEMORY and CPU metric from an ASA device .
Environment :
java8 application invokes snmp4j.jar code to perform an SNMP walk , same code is working for other devices but ASA device not able to poll CPU & MEMORY Metric .
the device,
Ans: Cisco ASA (Adaptive Security Appliance) device
the query you send, and
Ans: SNMP_WALK for cpmCPUTotalIndex, cpmCPUTotalPhysicalIndex, cpmCPUTotal5sec, cpmCPUTotal5minRev with
with oidList: [1.3.6.1.4.1.9.9.109.1.1.1.1.2, 1.3.6.1.4.1.9.9.109.1.1.1.1.3, 1.3.6.1.4.1.9.9.109.1.1.1.1.7, 1.3.6.1.4.1.9.9.109.1.1.1.1.8]
not what you expect to be returned.
Ans: We are expecting responses for each OID type, something like:
cpmCPUTotalIndex=7,
cpmCPUTotalPhysicalIndex=11,
cpmCPUTotal5sec=16,
cpmCPUTotal5minRev=14
But, we are not receiving any response from ASA device and finally SNMP Timeout is generated. But the same java application code is working for other devices. Kindly help.
Regards,
Rattaiah
If you are not getting any response, the please check your security credentials used.
If they are correct, then the device is buggy.
A correct device would at least return a noSuchObject or noSuchInstance exception VB on a GET request.
Code is returning SNMP Timeout, but if I execute “snmpwalk” command to same device, device is returning proper response for CPU and Memory metrics.
Currently we are using snmp4j-2.5.0.jar. I have also tried with snmp4j-2.8.7.jar, but same result of SNMP timeout is observed.
Please let me know if this is the issue with snmp4j jar, as snmpwalk cmd is returning proper response.