NetScreen
[Top] [All Lists]

Re: [nn] NTP and daylight saving

To: mahesh@tiscali.co.uk
Subject: Re: [nn] NTP and daylight saving
From: Troy Engel <tengel@fluid.com>
Date: Tue, 07 Nov 2006 15:34:52 -0800
Cc: nn@qorbit.net
Delivered-to: sp-com-lists@consult.net
Delivered-to: ns-list2@consult.net
Delivered-to: nn@qorbit.net
In-reply-to: <54l68l$6v5ppe@mk-ironport-4.mail.uk.tiscali.com>
List-archive: <http://www.qorbit.net/nn>
List-help: <mailto:nn-request@qorbit.net?subject=help>
List-id: "Netscreen mailing list for netscreen admins." <nn.qorbit.net>
List-post: <mailto:nn@qorbit.net>
List-subscribe: <http://qorbit.net/mailman/listinfo/nn>, <mailto:nn-request@qorbit.net?subject=subscribe>
List-unsubscribe: <http://qorbit.net/mailman/listinfo/nn>, <mailto:nn-request@qorbit.net?subject=unsubscribe>
Organization: Fluid, Inc
References: <54l68l$6v5ppe@mk-ironport-4.mail.uk.tiscali.com>
Sender: nn-bounces@qorbit.net
User-agent: Thunderbird 1.5.0.7 (X11/20060913)
Mahesh wrote:
> 
> Now I have to manually adjust all of the thirty or so devices I have in 
> the wild as I don’t see a way of scripting it.

Assuming you don't mind typing in the passwords (or already have 
passwordless SSH keys installed):

==
#!/bin/sh
SERVERLIST="one two three four"
for server in $SERVERLIST; do
   echo -e "set clock `date '+%m/%d/%Y'`\nexit" > /tmp/time.dat
   ssh -T netscreen@$server < /tmp/time.dat
done
rm /tmp/time.dat
==

That was written ad-hoc, do a little testing on your own. If you have 
passwordless SSH keys installed on all your devices, you can use the -i 
parameter to ssh to initialize that (which is what I do with forced DNS 
flushing).

hth,
-te

-- 
Troy Engel | Systems Engineer
Fluid, Inc | http://www.fluid.com
_______________________________________________
nn mailing list
nn@qorbit.net
http://qorbit.net/mailman/listinfo/nn

<Prev in Thread] Current Thread [Next in Thread>