cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
350
Views
0
Helpful
1
Replies

Command Runner API: Pipe limit

I've been leveraging the command runner API to gather data on our network for analysis/parsing via python. In most instances I am able to use piped commands "show run | inc interface | description" or similar to retrieve data, pass into python, and parse for other actions such as template provisioning. I'm currently working on a script to identify ports that are not 802.1X compliant. I already have a template setup that will fix the problem, but I want a script that will identify who/what we will break before implementing. 

At this time, I will not paste the script as I am still developing it and need to overcome the command "blacklist" issue but know that I can pipe commands as I have a separate command-runner script that I use for pre-parsing activities. 

Question: Does Catalyst Center have a limit on the number of pipes a command can contain or a character limit?

Example command throwing errors: Show run | inc interface | description| switchport mode access| authentication open| authentication port-control auto|!

Thank you in advance.

1 Accepted Solution

Accepted Solutions

Catalyst center does not like to show details on authentication (this appears to be the no no word). This may be due to FIPS being enabled or is a safeguard in general. 
In case anyone else runs into the issue- a successful workaround is
"show run | inc interface| description| switchport mode access| open| port-control|!"

View solution in original post

1 Reply 1

Catalyst center does not like to show details on authentication (this appears to be the no no word). This may be due to FIPS being enabled or is a safeguard in general. 
In case anyone else runs into the issue- a successful workaround is
"show run | inc interface| description| switchport mode access| open| port-control|!"