Just reduced limit to two bytes, will be included into next patch release.
Best regards,
Victor
Best regards,
Victor
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 Menu
gdb netxmsd
run -D2
bt
for node in [o for o in session.getAllObjects() if isinstance(o, objects.Node)]:
print 'Node: ', node.getObjectName()
try:
md = NXCObjectModificationData(node.getObjectId())
md.setSnmpVersion(SnmpVersion.V3)
# Auth/priv set to SHA1/AES, change first number to:
# 0 for none
# 1 for MD5
# 3 for SHA224
# 4 for SHA256
# 5 for SHA384
# 6 for SHA512
# Change second number to:
# 0 for none
# 1 for DES
md.setSnmpAuthentication("login", 2, "authPassword", 2, "privPassword")
session.modifyObject(md)
except:
print "Cannot change node configuration"
Quote from: semi-liquid on April 25, 2022, 09:11:58 AM
мне бы понять таки как в письмо воткнуть имя пользователя)
list = $node->readAgentList("System.ActiveUserSessions");
return SplitString(list[0], "\"")[1];
$object->writeMaintenanceJournal("Maintenance operation description");
for(r : $object->readMaintenanceJournal())
println(r);