I am looking for some guidance with an issue modifying a particular command script. I need to add some commands to the router to reference the IP associated with a particular sub-interface on the router. I understand that Orion does not store sub-interface IP addresses (much less facilitate referencing them in a script, however there is a constant in that the 2nd octet can be calculated by adding 5 to the 2nd octet of the main IP address for the router. For example, if the router IP is 10.60.1.1, the subnet I need to reference would be 10.65.1.1.
Specifically, one example of the commands I need to script would look like this (the "VLAN 20 IP Addr is where the calculated VLAN needs to be inserted).
no ccm-manager music-on-hold bind loopback 20
!
call-manager-fallback
no moh BranchHold.wav
no multicast moh 239.1.1.6 port 16384 route [VLAN 20 IP Addr] 10.250.250.1
I have read about the SetOctet command, but Is there a way to calculate the 2nd octet by adding 5 to the router's main IP address and inserting it into the IP?
Thanks,
~Terry