Hello All,
I'm new to scripting within NCM and I'm wondering if someone can help me out:
I want to use a remediation script to deploy an ACL to a Cisco router. One line of the ACL contains an entry for the VLAN 450 Subnet of the device. Since this value is different for every site (about 100 of them) I would like NCM to pull the value from the database and use it in the script. Can this be accomplished?
Example:
Hostname: RouterA
Loopback 1 IP: 192.168.1.1 /24
Gigabit 0/0.1 IP: 10.1.1.253 /24
Gigabit 0/0.450 IP: 10.XXX.XXX.253 /24
ACL:
ip access-list extended VLAN450_Ingress
remark PERMIT LOCAL VL450 TO LOCAL VL450
permit ip 10.XXX.XXX.0 0.0.0.255 10.XXX.XXX.0 0.0.0.255
...<snip>
Any help would be appreciated.
-Ken