Not getting correct uptime in messages file


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Not getting correct uptime in messages file
# 1  
Old 12-09-2011
Not getting correct uptime in messages file

The following notice I am getting in /var/adm/messages file

Code:
Dec  9 06:17:24 hostname lw8: [ID 925147 kern.notice] Main, up 476 days 04:42:23, Memory 9,742,808
Dec  9 10:17:25 hostname lw8: [ID 433305 kern.notice] Main, up 476 days 08:42:23, Memory 10,179,864

But my actual uptime is ::
Code:
 11:55am  up 25 day(s), 10:38,  3 users,  load average: 1.72, 1.81, 1.87

Why is that ??

Moderator's Comments:
Mod Comment Please use code tags, thanks. See PM.

Last edited by zaxxon; 12-09-2011 at 02:42 AM.. Reason: code tags
# 2  
Old 12-09-2011
What Operating System and version do you have?

There are certainly known issues in Open Solaris if your Real Time Clock has a flat battery (or was wrong at startup) and the clock was subsequently corrected manually or corrected with NTP.
i.e. The clock changed after the kernel loaded but before System Accounting made a timestamp in the "utmp" file (which is used by the "uptime" command).
# 3  
Old 12-14-2011
Thanks methyl...

Operating system is:
PHP Code:
[QUOTE]SunOS upeminsat1 5.10 Generic_138888-01 sun4u sparc SUNW,Netra-T12[/QUOTE
# 4  
Old 12-14-2011
Are you able to check your clock (that's the one on the system board)?
# 5  
Old 12-15-2011
I am sorry if I am Silly.. But How can I check It?
# 6  
Old 12-15-2011
Cold start the computer. The clock setting bit should be before unix loads. Check your hardware manual.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

LS command does not list the correct file

Hi, I am logged into as root & inside the home directory of another user. ls -a # ls -laq total 44 drwx------ 4 user1 adm 4096 Nov 23 05:10 . drwxr-xr-x. 12 root root 4096 Nov 22 13:05 .. -rw-r--r-- 1 user1 adm 18 Nov 22 13:05 .bash_logout -rw-r--r-- 1 user1 adm 193 Nov... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. Shell Programming and Scripting

Extract the correct format of file Name

All, Objective : Extract the correct format of a file name. Please share the script command which will extract the correct format of the file after untarring. Example : If the file is of .csv format then extract filename.csv if the file is having .CSV then extract the same.CSV if the file... (1 Reply)
Discussion started by: Mahesh G
1 Replies

3. UNIX for Dummies Questions & Answers

After Ftp'ing file to destination how to check the file if it is in correct ASCII and not corrupted

Hi Folks, While transferring file from FTP software like Filezilla the files gets corrupted. Is there any way I can check if the recently transferred file is in ASCII and not corrupted. I have tried using file -i filename command which does tell if the file character set is ASCII or binary... (6 Replies)
Discussion started by: Khan28
6 Replies

4. Shell Programming and Scripting

Automatically correct a File Name

Hi All Need a help to understand how one can automatically correct a file name using a shell script even if it is in a completely different format... Ex : adv_OK_0215_mem_rules_firing.txt / advex_0215_OK_me_rule_fire.txt (or in any other format as above) to :... (13 Replies)
Discussion started by: chatwithsaurav
13 Replies

5. Shell Programming and Scripting

Extract the uptime from the output of the uptime command

Hi! I want to extract the uptime from the output of the uptime command. The output: 11:53 up 3:02, 2 users, load averages: 0,32 0,34 0,43 I just need the "3:02" part. How can I do this? Dirk (6 Replies)
Discussion started by: Dirk Einecke
6 Replies

6. Shell Programming and Scripting

Getting the correct identifier in the output file

Hi All I do have a file like this: 1 1 12 26 289 3.2e-027 GCGTATGGCGGC 2 12 26 215 6.7e+006 TTCCACCTTTTG 3 9 26 175 8.9e+016 GCGGTAACT 4 20 26 232 1.7e+013 TTTTTATTTTTTTTTTTTCC 5 ... (6 Replies)
Discussion started by: Lucky Ali
6 Replies

7. Programming

How to get the correct exception file/line.

The below code throws error in the line number 32 where the function is defined. But How to find the line where the function is called. That is I want to throw the error at the line number 43 (as here the function is called). The code is: #include <iostream> #include <string>... (9 Replies)
Discussion started by: SamRoj
9 Replies

8. Solaris

Correct me to run a sh file in ksh shell!

Hi all! I wrote a file named as rman_backup.sh, and this is contents #!/bin/ksh ORACLE_SID=VNP;export ORACLE_SID echo $ORACLE_SID echo "Please Specify the kind of backup you want to take" echo "1) LEVEL 0 VNP" echo "2) LEVEL 1 VNP" echo "3) EXPORT BACKUP" echo "Enter your option" ... (4 Replies)
Discussion started by: trantuananh24hg
4 Replies

9. Shell Programming and Scripting

Open file with correct application

Can someone please help me with my bourne shell script. I am a struggling newbie. I need create a script that will read an argument from a command line, access a config file with application file types, and open the file with the correct application. The file needs to be able to handle file... (3 Replies)
Discussion started by: 3dtiger
3 Replies

10. UNIX for Advanced & Expert Users

Correct format in a log file

I'm trying to read the output of a .sql script (simple insert and commit oracle pl/slq script) to a log file using a shell script. My problem is I end up with a log file that looks like this: sd12@phenix97:/detain/sd12/logs > cat 20071205_detain_20071206.log 12320496 rows created. Commit... (11 Replies)
Discussion started by: sd12
11 Replies
Login or Register to Ask a Question