Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Capacity Planning

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


in reply to Re^2: Capacity Planning
in thread Capacity Planning

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

> crapps.pl --man

Basically, you can use:

> crapps.pl 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2022-05-16 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (62 votes). Check out past polls.

    Notices?