Quantcast
Channel: THWACK: All Content - Network Configuration Manager
Viewing all articles
Browse latest Browse all 6057

Where can I find API or learning resource for advanced scripting which allows custom properties as variables in configuration script?

$
0
0

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

        }

    }

  }

}


Viewing all articles
Browse latest Browse all 6057

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>