Cisco 3640 in my Corp. is acting as a time source that gives time from a
number of Internet stratums.
All my Unix servers get time from this Cisco .
But I have discovered a bit problem. When Cisco is rebooting, internal
clock is set up to time stamped in IOS :
exactly is 01 March, 1993 year. And my Unix server ( currently I have
noticed only HP-UX ), just set up to this old
time. Please, explaint, how can I prevent this ?
- Does anybody know, how to check the state of Cisco in order
to get right time ?
- Should I do additional checks in 'ntpdate' command in Unix
?
- Or I must get rid of this service on Cisco and rule as my own
with Unix host ?
I and My Cisco-admin after some experiments have wrote such script :
#!/bin/bash
NTPHOST=ntp1
SYSPEER=`/usr/sbin/ntpq -c associations $NTPHOST | grep sys.peer`
if [ -n "$SYSPEER" ]; then
/usr/sbin/ntpdate -s $NTPHOST
fi
--------------------
Please, give me some advice about solving such problem , because
sometimes this sudden time-jumps are so
painful .
Thanks.
That's right, if you boot a router it sets to march, 1st 1993 in all IOS
later 11.0. There is no workaround for this expect setting the right time
after booting the router.
> - Does anybody know, how to check the state of Cisco in order
> to get right time ?
to show the time enter "show clock", to set it enter "clock set ..."
command.
> - Should I do additional checks in 'ntpdate' command in Unix
>
as you told the cisco gets the time from internet stratums. It will do so
again shortly after reboot. If not please check your cisco config.
> - Or I must get rid of this service on Cisco and rule as my own
> with Unix host ?
>
As you like it. Normally I would use the router because it is the neerest
source to the internet time servers and a router even more seldom crashes
than a UN*X host.
> I and My Cisco-admin after some experiments have wrote such script :
>
> #!/bin/bash
>
> NTPHOST=ntp1
> SYSPEER=`/usr/sbin/ntpq -c associations $NTPHOST | grep sys.peer`
>
> if [ -n "$SYSPEER" ]; then
> /usr/sbin/ntpdate -s $NTPHOST
> fi
>
funny workaround :-)
> --------------------
> Please, give me some advice about solving such problem , because
> sometimes this sudden time-jumps are so
> painful .
The question would be : "Why does the router crashes so often ?". The
routers I administer have typical uptimes of 2 years...
>
> Thanks.
>
>
Bjoern Steinmann
stei...@netformat.de
Hannover / Germany
(looking for a job in the USA - anyone have one ?)