I have about 100 Linux servers running in Amazon EC2 (CentOS 6 based) and I need to run a 'date' command against all of them. Rather than logging into each individual server via 'ssh' and running the 'date' command, can someone please help me with how something like this can be scripted? I obviously have NO scripting experience what so ever sadly. I'd love to learn and become a stronger / more efficient Linux administrator but not sure where to start. Can anyone please give me any info on where to start, what I should start writing this script in (i.e. perl, python, bash, etc etc etc), and or anything else?
You still will need to log into every single server, but you can do it in a loop in a script. Set the servers up for passwordless login (--> man ssh), put their names into a file, and in a while loop read the server names line by line, issue the ssh user@hostname command , and collect the output into a log file.
Can you explain what you mean by "put my IP's in one file"? I don't see in your example where you call a file expected to be loaded with IP's or FQDN's...
Confirm if SNMP port is opened by default on these 100 cloud servers or not, then install MRTG (MRTG - Tobi Oetiker's MRTG - The Multi Router Traffic Grapher) or others monitoring tools, display their CPU/load information, which will show the date/time as well, it didn't show the exact time, but will give you reference.
second, confirm NTP service are set correctly, then you needn't worry about the time difference any more.