I tried directly on the server which has version Java Version 1.8.0 and still nothing. However this scripts works just fine on both server and separate client.
import sys
from fnmatch import fnmatch
if len(sys.argv) > 1:
mask = sys.argv[1]
else:
mask = ".1.3.6.1.*"
nodes = filter(lambda x: isinstance(x, objects.Node), s.getAllObjects())
matched = filter(lambda x: fnmatch(x.getSnmpOID(), mask), nodes)
for node in matched:
print node.getObjectId(), node.getObjectName(), node.getPrimaryIP().getHostAddress()
any script with getAllChilds method does not work
something has definitely changed the older api shows getChilds() method the latests does not and I cant even find the documentation for my version 2.2.16
https://www.netxms.org/documentation/javadoc/versioned/Release-2.2.8/
import sys
from fnmatch import fnmatch
if len(sys.argv) > 1:
mask = sys.argv[1]
else:
mask = ".1.3.6.1.*"
nodes = filter(lambda x: isinstance(x, objects.Node), s.getAllObjects())
matched = filter(lambda x: fnmatch(x.getSnmpOID(), mask), nodes)
for node in matched:
print node.getObjectId(), node.getObjectName(), node.getPrimaryIP().getHostAddress()
any script with getAllChilds method does not work
something has definitely changed the older api shows getChilds() method the latests does not and I cant even find the documentation for my version 2.2.16
https://www.netxms.org/documentation/javadoc/versioned/Release-2.2.8/
Thanks for the info
I always thought timeseries databases where better suited for NMS's