NetXMS Support Forum

English Support => General Support => Topic started by: gmonk63 on September 20, 2016, 08:53:46 PM

Title: nxshell snmp vaules
Post by: gmonk63 on September 20, 2016, 08:53:46 PM
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
Title: Re: nxshell snmp vaules
Post by: Victor Kirhenshtein on September 28, 2016, 06:06:29 PM
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
Title: Re: nxshell snmp vaules
Post by: terefang on October 08, 2016, 12:34:31 PM
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 ?
Title: Re: nxshell snmp vaules
Post by: Victor Kirhenshtein on October 20, 2016, 09:01:48 AM
Currently it's not possible. I've added request for context support in data collection as feature request (https://dev.raden.solutions/issues/1325 (https://dev.raden.solutions/issues/1325)).

Best regards,
Victor