Topic
1 reply Latest Post - ‏2014-02-24T04:26:49Z by chinnajee.rao
blue.rabbit
blue.rabbit
1 Post
ACCEPTED ANSWER

Pinned topic Uptime 83 days, user logged on 84 days?

‏2013-08-29T10:54:34Z |

can anybody explain this or point me where to look what causes this output?

server # > w
  12:50PM   up 83 days,  16:37,  3 users,  load average: 1.54, 1.47, 1.54
User     tty          login@       idle      JCPU      PCPU what
testuser pts/0       12:50PM          0         0         0 w
tcenter  pts/1       07Jun13      17:51    139:06     17:48 /soft/tc
tcenter  pts/2       06Jun13     84days         0         0 /usr/bin/ksh

TIA

br

 

  • chinnajee.rao
    chinnajee.rao
    4 Posts
    ACCEPTED ANSWER

    Re: Uptime 83 days, user logged on 84 days?

    ‏2014-02-24T04:26:49Z  in response to blue.rabbit

    server # > w
      12:50PM   up 83 days,  16:37,  3 users,  load average: 1.54, 1.47, 1.54
    User     tty          login@       idle      JCPU      PCPU what
    testuser pts/0       12:50PM          0         0         0 w
    tcenter  pts/1       07Jun13      17:51    139:06     17:48 /soft/tc
    tcenter  pts/2       06Jun13     84days         0         0 /usr/bin/ksh

     

    In the above output,

    12:50PM is the timestamp at the time the command was given. Next is the uptime. The system had been up (time since the last boot) for 83 days, 16 hours and 37 minutes. There was three  user logged in at that time. And the three load average figures were 1.54, 1.47, 1.54

    And the output clearly says that there is a difference in these 3 files /var/log/wtmp, /var/log/btmp and /var/run/utmp

    here ,

    /var/run/utmp - for tracking who output

    man utmp or who for more details

    /var/log/wtmp - for tracking last output

    man wtmp or last for more details

    /var/log/btmp - for tracking lastb ouput

    man lastb for more details

     

    Cheers

    Chinnajee V Rao