I work in operations and need to be able to log into multiple servers among a few hundred servers in a productive way. What I mean by productive is this: from the time from when someone asks me to look at a series of hosts to the time I actually get in to the hosts should be minimal. Right now I have to go look at my notes, find the host names, add my username in front, put the series of hosts in a text editor and paste that command into the terminal, which gets very tedious.
Ideally I can make some function I can call from the termial that'll help me filter through my host list and find the ones I need, add my username and create my ssh(or csshx) command. I've thought about having the following text file:
description hostname user ......... ......... ...
cat to find the hosts I need, and concatenate the
user@ to the front and creating the command. I feel that there is a better way out there and I'd like to see people's opinion on this.
Thanks for your time!