nxshell snmp vaules

Started by gmonk63, September 20, 2016, 08:53:46 PM

Previous topic - Next topic

gmonk63

Is it possible to get snmp values via nxshell ?  I need to get the serial numbers for a certain type of switch and the only way is via snmp




Thanks

Victor Kirhenshtein

Hi,

you can use call NXCSession.queryParameter. For example, to query system description from node with id 178:


print session.queryParameter(178, DataCollectionObject.SNMP, ".1.3.6.1.2.1.1.1.0")


Best regards,
Victor

terefang

Quote from: Victor Kirhenshtein on September 28, 2016, 06:06:29 PM

print session.queryParameter(178, DataCollectionObject.SNMP, ".1.3.6.1.2.1.1.1.0")


is there any way to add snmp-context to this ?

Victor Kirhenshtein

Currently it's not possible. I've added request for context support in data collection as feature request (https://dev.raden.solutions/issues/1325).

Best regards,
Victor