Quantcast
Channel: THWACK: All Content - Network Configuration Manager
Viewing all articles
Browse latest Browse all 6057

NCM Config Template variable / parsing assistance

$
0
0

Hello All,

 

I've posted something similar to this a ways back, but I was never able to complete my testing, so I am starting over.

I am looking for some assitance in parsting out part of a cisco config (hostname) and taking that an putting it into a command for an access list.

 

Here's what I am targeting/ my example

 

I have a hostname lets say

Hostname is HOST1234     (the 1234 are actually the second and third octet of an IP address)

 

I simply want to create a script in NCM (that will not prompt for input) that will create a configuration similar to :

 

Below.. is an example of the hostname.. and xxx in in the ip address is a constant. the 12.34 comes from the hostname.

 

HOST1234

 

config t

 

access-list 1 permit  xxx.12.34.xxx  any eq nnnnnn

 

Does anyone have a similar template ?


Viewing all articles
Browse latest Browse all 6057

Trending Articles