Re: Uptime not displaying how long the system has up
- From: Thomas Tornblom <thomas@xxxxxx>
- Date: Tue, 24 Jan 2006 19:53:58 GMT
Check that utmpx is ok and can be read:
spiff:~ (212)>truss -t open,read uptime
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
open("/lib/libc.so.1", O_RDONLY) = 3
open("/proc/self/auxv", O_RDONLY) = 3
read(3, "D807\0\0E37F04\bDE07\0\0".., 168) = 168
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
open("/lib/libc.so.1", O_RDONLY) = 3
open("/var/adm/utmpx", O_RDWR|O_CREAT, 0644) = 3
open("/var/adm/utmpx", O_RDWR) = 4
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192) = 3720
read(4, 0x080722EC, 8192) = 0
open("/usr/share/lib/zoneinfo/Europe/Stockholm", O_RDONLY) = 3
read(3, " T Z i f\0\0\0\0\0\0\0\0".., 675) = 675
8:50pm up 4 day(s), 21:29, 1 user, load average: 0.20, 0.39, 0.35
This is from a Solaris nevada system, but I don't think this has been
changed significantly since solaris 8.
Thomas
.
- References:
- Uptime not displaying how long the system has up
- From: crwilton
- Uptime not displaying how long the system has up
- Prev by Date: Re: Uptime not displaying how long the system has up
- Next by Date: Restarting inetd
- Previous by thread: Re: Uptime not displaying how long the system has up
- Next by thread: Re: Uptime not displaying how long the system has up
- Index(es):