Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

Network Change & Configuration Management

Reply
Highlighted

list type in Script-Variables section

Techie
Posts: 15
2243     0

Has anyone used a list type in the Script-Variables header of a CCS or Perl script? The CCS Supplement document shows 'list' as one of the data types you can use with Script-Variables but doesn't give an example. Does anyone have a working example?

Highlighted

Re: list type in Script-Variables section

Adviser
Posts: 423
2243     0

Andrew here is an example for using list

 

https://community.infoblox.com/t5/Network-Change-Configuration/Using-the-name-of-the-device-to-compa...

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh
Highlighted

Re: list type in Script-Variables section

Techie
Posts: 15
2243     0

Not quite what I'm looking for.

 

The CCS Supplement document claims that a 'list' data type can be used in the Script-Variables header in the Script section. I would like to know if anyone has used a 'list' data type in Script-Variables and if they can share an example of what using a list in this context looks like.

Highlighted

Re: list type in Script-Variables section

Adviser
Posts: 423
2243     0

I've never used it at that level before always at Action-Commands and Trigger-Commands.

 

It's more for looping or just grabbing one set of something from a list, I will check to see if we can do that Script-Variables

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh
Highlighted

Re: list type in Script-Variables section

Adviser
Posts: 423
2243     0

Here you go:

Script-Variables:
    $new list "my_newhostname,old_name,$name,newhostname,NOTFOUND"

 

Let me know if that works for you, I just tested and it works

 

Sif

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh
Highlighted

Re: list type in Script-Variables section

Adviser
Posts: 423
2243     0

Did that work for you?

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh
Showing results for 
Search instead for 
Do you mean 

Recommended for You