Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-26-2012
Registered User
 
Join Date: Jun 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
server time

Hi All,

I have a number of servers that are running different time-zones.
I can get find out the date and time of the servers with no problem
However, my problem is I need to know only the servers that are running GMT time. I am installing patches, and one of them is corrupting /Etc/localtime. It is converting the servers that are running GMT to EDT. Before I run my next batch I need to pull these out.

thanks.

G...
Sponsored Links
    #2  
Old 06-26-2012
...@...
 
Join Date: Feb 2004
Location: NM
Posts: 9,654
Thanks: 164
Thanked 645 Times in 622 Posts
I am assuming you can ssh to each server

Code:
for i in server1 server2 server3
do
   ssh $i 'uname -a && date +%Z'
done

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to rename file in FP server with server time stamp? krsnadasa HP-UX 5 12-02-2011 05:08 AM
How often does Linux NTP server update its time with the external NTP server? MichaelLi Linux 1 03-25-2011 09:43 AM
Time Zone for a User Different From Server Time RoshniMehta AIX 1 06-23-2010 04:28 AM
How To Provide Time Sync Using Nts-150 Time Server On Unix Network? pesty UNIX for Advanced & Expert Users 2 03-22-2007 02:20 AM
time server fsmadi Solaris 1 03-05-2007 08:33 AM



All times are GMT -4. The time now is 07:11 AM.