I am trying to use the 3rd and 4th Octet of a Tunnel IP in the creation of a new Tunnel, but not sure how to specify an interface IP to use in the getoctet statement. The one I currently use is AgentIP which gets the Polling IP address therefore in my case its the VLAN100 IP address and not the Tunnel 10 address i would like to use.
can someone point out how to specify the interface in the NCM config template. I have described below the scenario I am working with.
I have 600 routers and they currently have an existing tunnel (Tunnel10) with an IP that is a variation of the polling IP of the node. I would like to create a new tunnel (Tunnel20) that builds on the current structure.
for example I have two types of nodes on my network depending on connectivity (DSL vs Cellular) and these Cisco Router nodes have the following IPs:
DSL
zone 1
polling IP 10.210.(1-200).254
Tunnel10 IP 1.1.1.(1-200)
Tunnel20 IP 2.1.1.(1-200)
zone 2
polling IP 10.220.(1-200).254
Tunnel10 IP 1.1.2.(1-200)
Tunnel20 IP 2.1.2.(1-200)
Cellular
Zone 1
polling IP 10.215.(1-200).254
Tunnel10 IP 1.1.15.(1-200)
Tunnel20 IP 2.1.15.(1-200)
zone 2
polling IP 10.225.(1-200).254
Tunnel10 1.1.25.(1-200)
Tunnel20 IP 2.1.25.(1-200)
I have tried using the string @octet2 = getoctet(@ContextNode.AgentIP,2) in my template but it gets the polling IP address's 2nd octet but because of the slight change in how i use that octet in my tunnel IP i was hoping to
grab the 3rd octet from the existing tunnel IP instead @tunneloctet3 = getoctet(@ContextNode.interfaceIP.tunnel10,3) I know this isn't correct but just here as an example of what i am trying to accomplish.
Thank You in advance for any help you may be able to provide.