Hi maybe you can help me with this? Would appreciate it if you could have a look. Firstly let me say that I have the custom property fields of (a) Device_Location and (b) bgp_neighbour populated, however every time I run the script instead of the contents of the new_description custom property being added to the description of the interface I am instead getting the literal value
"@node.new_description" so it reads... Description: @node.new_description?
Where can I find the API of whatever language is being used here, what language is it? I see some stuff familiar to java and other languages such as if statements and for each loops. Where can I find a resource to learn how to use these scripts to my advantage?
Many thanks
script Change interface description ( NCM.Nodes @ContextNode )
{
foreach ( @node in @ContextNode )
{
if ( @node.DeviceLocation == 'tester' )
{
CLI
{
configure terminal
interface fastethernet 0/1
description @node.new_description
exit
exit
write mem
}
}
}
}