Changing/Renaming Node Interface Object Description

Started by jdesousa, July 22, 2019, 04:56:03 PM

Previous topic - Next topic

jdesousa

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

Victor Kirhenshtein

Hi,

you can use NXSL function GetInterfaceObject to get access to interface object and then RenameObject to rename it.

Best regards,
Victor