cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post

VLAN Helper Address Script Help

I have been tasked, like many other, to update our helper addresses on all of our vlans. This script makes it alot easier, but I am trying to update it to do 2 more things. I would like it to wr mem when its done. I would also like to see if there is a something that I can add to filter the list to choose from to only show VLANs (Interface.InterfaceType == 53)

 

Below is the script currently being ran, and works fine. Just no wr mem.

 

script AddIPHelperAddress (

NCM.Nodes @ContextNode, NCM.Interfaces[] @Interfaces)

{

CLI

{

}

foreach (@itf in @Interfaces)

{

CLI

{

config t

interface @itf.InterfaceDescription

ip helper-address 1.1.1.1

ip helper-address 1.1.1.2

quit

}

}

CLI {quit}

}

0 Kudos
0 Replies