Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Capacity Planning

by VinsWorldcom (Prior)
on Dec 05, 2016 at 16:05 UTC ( #1177238=note: print w/replies, xml ) Need Help??

in reply to Capacity Planning

Without further clarification on what devices you're talking about, I'll assume Cisco since I have a solution for what you're after if the devices you're connecting to are Cisco.

Replies are listed 'Best First'.
Re^2: Capacity Planning
by Aatus (Initiate) on Dec 05, 2016 at 16:14 UTC
    Thanks, Cisco CLI works: Basically if I was doing this manually: putty ssh -l username password: router#ping reply from bytes=32 time=37ms TTL=56 reply from bytes=32 time=37ms TTL=56 reply from bytes=32 time=37ms TTL=56 reply from bytes=32 time=37ms TTL=56 If anything if I could grab the 3rd reply for time=37ms and put that next to the IP in the list.

      There is an entire POD in the script, access by:

      > --man

      Basically, you can use:

      > devices.txt --ssh --username SSHUSER --password SSHPASS -- +command file.txt --write

      The above uses SSH to connect to each host by IP or hostname, 1 per line, in the file devices.txt using the username SSHUSER and password SSHPASS executing on each device the commands in, 1 per line, in the file file.txt and saving the session transcript in a file by the hostname or IP connected to.

      Preparing devices.txt and file.txt as well as parsing the output from the session files is left as an exercise for the reader.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1177238]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2022-05-17 17:06 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (68 votes). Check out past polls.