This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Cisco CLI script with 2 loops

Is it possible to do a script that outputs 2 looped variables with the below

i input 10,20 and data,voice and get

vlan 10

 name data

vlan 20

 name voice

The closest i have been able to come is the below

script ConfigureVLANCisco (  

                                          NCM.Nodes @ContextNode,

                                          string [] @vlans,

                                          string [] @vlansname )

{

  CLI

  {

   configure terminal

  }

  foreach (@vlan in @vlans)

  foreach (@name in @vlansname)

  {

    CLI

    {

       vlan @vlan

         name

    }

   }

  }

which outputs

vlan 10

 name data

 name voice

vlan 20

 name data

 name voice

any help is appreciated.