by TheeMahn » Fri Aug 29, 2008 3:49 pm
Epic wrote:Hey everyone, I have no experience with any scripting language
that's why I'm coming for help
. Here is the scenario: There are about 40 Linux machines (I'm gonna call these "clients") in a lab. There is one machine (I'm gonna call this "server") dedicated to store information about all those 40 machines that are constantly running. I need a script that will log into each of those "client" machines run some commands such as smartctl and iostat, to collect disk information from them and save that information in a text file resident in that one "server" machine. I imagine there would be one file per "client" and the file name would have the machine name, command run, and time stamp.
Any help will be appreciated. Thanks.
pretty heavy, I would start by generating IP's of each comp pipe it to a text file, this will be the list in which the script will hit, I am assuming the "server" has execution rights on the "clients" end.
now it starts to become easy parse each ip samba / nfs? well I guess not so easy a failure routine if using samba for example would have to be written piping all output to the main server. I would make the script output the file to a txt file as per ip.
You have asked more then I have the time to write, yes it can be done, I do not get paid enough to write it
TheeMahn
Home of Ultimate Edition. Got a question? Please review the
F.A.Q. Browse the
How to section.
Main O/S: Builder of O/S Guess.
Mainboard: ASUS Hero VI (AM4)
CPU: AMD 1700X water cooled (Deepcool Captain Genome Cooling tower)
Ram: 16 GB GSkill Trident RGB Series Dual Channel DDR4 3200
Video: MSI RX470 8GB Gaming card.
Hard Disks: MASSIVE on the network.(10 Gigabit, 48 port, multiple servers)
Monitors: Dual 4K 43" LG, 4K Samsung 28"
750 Watt modular PSU (Rosswell)
1100 Watt Amp & 4 X 600 Watt speakers
Servers in the basement.