Email Subscription Notifications Suspended Temporarily
We are in the process of making navigation in the Servers and Operating Systems forums simpler and more direct. While doing this, we have to temporarily suspend email notifications for subscriptions. If you are subscribed to one or more discussion boards or blogs in the community, please check them daily to see new content. Notifications will be turned back on in a few days. We apologize for any inconvenience this may cause. Thanks, Warren_Admin
Switches, Hubs, and Modems
cancel
Showing results for 
Search instead for 
Did you mean: 

PCM+: Getting tech info from multiple switches

Anders_35
Regular Advisor

PCM+: Getting tech info from multiple switches


I've tried many times to use a policy to dump
tech-info from many switches to file.

Most switches fail with the error:

CLI Timeout: Termination Prompt not found

Seems random what fails and what doesn't.

The policy runs two commands:
exit (to get out of config context) and
"sh tech".

So, what's that timeout about?
2 REPLIES
Les Ligetfalvy
Esteemed Contributor

Re: PCM+: Getting tech info from multiple switches

Well... if you did not say "random", I would have guessed that some of the switches default to the menu rather than the CLI.

I have tried using the CLI wizard/policy to pull info from all my switches, but there lacks the availability to create unique filenames to reflect the IP or name of the device and the time of the extraction. I finally gave up on getting PCM to do it and ended up scripting HyperTerm with AutoIT/KiX.

There are also several scriptable telnet programs but I couldn't be bothered to learn the syntax.

Even with my poor man's solution, I get the odd timeout but it always runs perfectly the second time around. It would appear that one or two of my switches are slow to come around on the first try. I found that if I telnet logon before running the script, it works fine. You might try sending out a policy that simply logs off just before the one that does the work.
Anders_35
Regular Advisor

Re: PCM+: Getting tech info from multiple switches

Well, I didn't have much luck with that, ufortunately. It's no big deal, I use Perl and Net:Telnet for the job, anyway.
It just annoys me that PCM doesn't handle this.