cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
509
Views
0
Helpful
3
Replies

Remove multiple Crypto PKI trustpoint lines.

Quint
Level 1
Level 1

Hi all

this is a tuff one, am hoping there is someone out there that can help me solve this  issue.

How can a person remove the crypto pki trustpoint line form 300 cisco devices.  i have a text file that has all the devices ip addresses with there corresponding crypto pki trustpoint certificates.

i have no idea how to start a bash script or any other script that will log into each device, and remove the crypto lines, each one is different to the devices and interaction is also requred.

thanx

 

3 Replies 3

Hello,

 

I don't think you can do this with a Windows batch file. You could install Perl for Windows and modify the script mentioned in the link below:

 

https://www.experts-exchange.com/questions/21108412/automate-telnet-login-and-excute-cisco-command-procedures-batch.html

 

Installing Perl on Windows (32 and 64 bit)

 

https://learn.perl.org/installing/windows.html

Hi Georg

Thank you for the reply. I am trying to use bash or expect  running in ubuntu/linux to do this but i have no idea how. on top of that my Perl skills are zero ... 

 

thanx 

Hello,

 

understood. I'll try to find something else...

Review Cisco Networking products for a $25 gift card