Operating System - HP-UX
1834828 Members
1999 Online
110070 Solutions
New Discussion

Time change entry in syslog

 
M. Tariq Ayub
Regular Advisor

Time change entry in syslog

Hi,

I have 6 hp9000 serrver running HP-UX11i. for some tesing we need to change system time. i want to monitor this time chaning events. the systems are not trusted.

How and from where i can find these log.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Time change entry in syslog

Get out a pad and paper, because last time I changed a system time it wasn't logged.

I may be wrong, I've spent 4 days taking care of my kids alone, but if there is an entry its in /var/adm/syslog/syslog.log

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michael Tully
Honored Contributor

Re: Time change entry in syslog

Date changes are not logged in syslog by default, whether the change of time is forward or backwards.
You could write a small wrapper script that does it for you. If however you use NTP, then synchronisation changes can be logged.
Anyone for a Mutiny ?
Olivier Decorse
Respected Contributor

Re: Time change entry in syslog

Michael is right :
1) date changes are not logged to syslog.log
2) just write a script like this and use it to change date and log a any modification :
#!/sbin/sh
date $1
logger -t 'shell-date' -p -i user.warn "changing date to : `date`"

3) use ntp to log informations date into syslog.log

Olivier.

PS : don't forget to assign points, if response helps you to solve your question.
They say "install windows 2k, xp or better", so i install unix !