Can you please attach a high-resolution screenshot and describe what you were doing:
- from what version you were upgrading
- to what version
- exact steps you did
- from what version you were upgrading
- to what version
- exact steps you did
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menufrom java.util import ArrayList
from java.lang import Long
amap = s.findObjectById(2722)
mapPage = amap.createMapPage()
cd = NetworkMapLink(NetworkMapLink.NORMAL, mapPage.findObjectElement(672).id, mapPage.findObjectElement(674).id)
sList = ArrayList()
sList.add(Long(674))
sList.add(Long(672))
cd.setStatusObjects(sList)
cd.setRouting(NetworkMapLink.ROUTING_DIRECT)
cd.setColorSource(LinkConfig.COLOR_SOURCE_OBJECT_STATUS)
mapPage.addLink(cd)
data = NXCObjectModificationData(2722)
data.setMapContent(mapPage.getElements(), mapPage.getLinks())
s.modifyObject(data)newAuthName = 'public2'
for node in [o for o in session.getAllObjects() if isinstance(o, objects.Node)]: # filter all objects for objects.Node
if (node.getFlags() & Node.NF_DISABLE_SNMP) = 0: # SNMP polling is not disabled
if (node.getSnmpAuthName() != newAuthName):
print('Processing node %s: changing community string from %s to %s' % (node.objectName, node.getSnmpAuthName(), newAuthName))
md = NXCObjectModificationData(node.objectId)
md.setSnmpAuthName(newAuthName)
session.modifyObject(md)
java -jar nxshell-3.1.241.jar script_name.py
root@raspberrypi:~# ls /sys/bus/w1/devices/
28-6cb0611f64ff w1_bus_master1
root@raspberrypi:~# cat /sys/bus/w1/devices/28-6cb0611f64ff/w1_slave
78 01 55 00 7f ff 0c 10 57 : crc=57 YES
78 01 55 00 7f ff 0c 10 57 t=23500
SubAgent=ds18x20.nsm
[DS18X20]
Sensor = Test:28-6cb0611f64ff
user@netxms-server:~$ nxget raspberrypi.lan 'Sensor.Temperature(Test)'
23.312