NetXMS Support Forum

English Support => General Support => Topic started by: jdesousa on July 22, 2019, 04:56:03 PM

Title: Changing/Renaming Node Interface Object Description
Post by: jdesousa on July 22, 2019, 04:56:03 PM
Hi Guys I would be grateful for your assistance,
How can I change a nodes interface description under the following conditions,
using a script under the status poll hook::
1. Node and its interface state is operational....admin/oper state/exp state== UP/UP/UP and Normal
2. Node has NO SNMP Capability
3, Node has Only One Interface Shown
3. Node is Pingable

Interface Description== "unknown" and would like to change this to the primary ip address=="x.x.x.x.x"

Thanks
Title: Re: Changing/Renaming Node Interface Object Description
Post by: Victor Kirhenshtein on August 02, 2019, 12:48:32 PM
Hi,

you can use NXSL function GetInterfaceObject (https://wiki.netxms.org/wiki/NXSL:GetInterfaceObject) to get access to interface object and then RenameObject (http://ttps://wiki.netxms.org/wiki/NXSL:RenameObject) to rename it.

Best regards,
Victor