nxsl
-
Приветики. Продублирую здесь:
-
Нужен push в nxsl, сейчас работает через action / nxapush (за появление -o в котором отдельное спасибо)
https://www.netxms.org/forum/feature-requests/nxsl-improvements/ -
Cisco-related просьба. Хотелось бы надеяться на появление атрибута ifAlias в объекте Interface. UseInterfaceAliases приводит, если честно, к бардаку, как в картах, так и дереве объектов. Сейчас использую Custom Attributes, вызов из хука:
sub ifUpdateAlias(root) { transport = CreateSNMPTransport(root); if (transport == null) { println "Failed to create SNMP transport, exit"; } foreach(o : GetObjectChildren(root)) { if (classof(o) == "Interface") { index = o->ifIndex; value = SNMPGetValue(transport, "1.3.6.1.2.1.31.1.1.1.18." . index); if (value != null) { SetCustomAttribute (o, "ifAlias", value); } } } }-
Чтение / запись Comments, Status Calculation из nxsl.
Когда-то раньше main() был обязателен, теперь уже нет. Но старая форма все равно поддерживается.
Было бы неплохо, если бы main() вызывался при включении скрипта директивой use.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login