SNMP Proxy

Started by gmonk63, February 17, 2016, 05:05:27 PM

Previous topic - Next topic

gmonk63

Is it possible to configure snmp proxy via nxshell  I see that its is possible during creating but what about after the fact



Thanks

gmonk63

I think I got it let me know if this correct or not but it seems to work  this will read in from a list of nodes and set each nodes snmp proxy to the following id 10236


from org.netxms.client.objects import Node

for name in open("snmp-proxy.txt").readlines():
    node = session.findObjectByName(name.strip())
   
    if node:
        md = NXCObjectModificationData(node.getObjectId())
        proxy = 10236
        md.setSnmpProxy(proxy)
        session.modifyObject(md)

Victor Kirhenshtein

Hi,

seems correct.

Best regards,
Victor