Binary file for showing last reboot


 
Thread Tools Search this Thread
Operating Systems Solaris Binary file for showing last reboot
# 1  
Old 10-20-2011
Binary file for showing last reboot

Does anyone know what is the binary file for seeing the last reboot since my wtmpx file has been dumped as of now and i am not able to see the last reboot with the command "last reboot".

Please don't say uptime, since i want to see the last 4-5 reboots for this server.

Thanks in advance
# 2  
Old 10-20-2011
Check if wtmp is rotated. Might be wtmp.1 for instance. What version of Solaris are you using?
# 3  
Old 10-21-2011
Thanks man for your reply.. Am using solaris 10

The wtmpx file is not rotated. I believe there is one such binary file in solaris which shows reboot time Smilie
# 4  
Old 10-21-2011
What do you mean by last reboot if you meant last boot time then you can see the start time for the init process and see it's start time
# 5  
Old 10-25-2011
Not sure if I understand your question well, but try :
Code:
root@server:/root # last reboot
reboot    system boot                   Tue Oct 25 15:21 
reboot    system down                   Tue Oct 25 14:50 
reboot    system boot                   Sat Oct 22 20:16 
reboot    system down                   Sat Oct 22 20:15 
reboot    system boot                   Sat Oct 22 14:54 
reboot    system down                   Sat Oct 22 14:52 
reboot    system boot                   Sat Oct 22 13:46 
reboot    system down                   Sat Oct 22 13:45 
reboot    system boot                   Sat Oct 22 02:36 
reboot    system down                   Sat Oct 22 02:34 
reboot    system boot                   Sat Oct 22 02:34 
reboot    system down                   Sat Oct 22 02:32 
reboot    system boot                   Sat Oct 22 02:30 

wtmp begins Sat Oct 22 02:30

You can also try to grep some string from /var/adm/messages (I mean some from echoed during boot phase - try the very beginning of the dmesg output where is shown initial boot process).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Sysconfig setup window keeps showing after reboot

so here's teh deal: Solaris 11.3 zone created from a template created by configuring a zone, running sysconfig unconfigure on it and then saved by a zfs send and receive. create the new zoneconfig, import the template FS using zfs recieve. Now everytime we reboot the new zone it makes us do... (0 Replies)
Discussion started by: os2mac
0 Replies

2. Shell Programming and Scripting

Convert binary file to csv and then back to the binary format

Hello *nix specialists, Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my... (7 Replies)
Discussion started by: digidax
7 Replies

3. Solaris

solaris link aggregation problem , once i reboot it is not showing, not able to ping the default gat

Hi All, I am trying to aggregate the NIC's,(igb2 and igb3) (igb0 is used by the physical system and igb1 is used by primary-vsw0) to create the domains on that for faster data transfer, I followed the process for creating the aggregation, dladm create-aggr -d igb2 -d igb3 1 after creating the... (2 Replies)
Discussion started by: buildscm
2 Replies

4. UNIX for Dummies Questions & Answers

Why Linux is not showing file in use ?

Hi i have written a infinite loop which writes to a file log.txt while do echo " file in use " >> log.txt done i have started this process in one terminal , from another terminal i issued cp command cp log.txt log2.txt i was expecting a File in use message but didnt ? i have... (6 Replies)
Discussion started by: rakeshkumar
6 Replies

5. Shell Programming and Scripting

Showing the first 4 lines of a file?

Is there a way to show the first 4 lines of a file without using head -4? In sed would it be sed '1,4d' ? What if I just wanted to display the 2nd line ONLY? How could this be done with AWK?...correctly with SED? (6 Replies)
Discussion started by: puttster
6 Replies

6. AIX

not showing the year of file

Hi I am facing strange issue in one direcotry it is not showing year of file, can you please suggest me wheather there is any limitation on year, on some other file though it is showing the dates. Regards, Manoj. (1 Reply)
Discussion started by: manoj.solaris
1 Replies

7. UNIX for Dummies Questions & Answers

Showing a file's symbolic links

ls -l shows the number of links for each file. Is there a command that will show the link sources for a specific file? Running find on the entire filesystem and doing a little Perl "magic" is the only method I'm aware of. I'm running SunOS 5.8. Thanks. (6 Replies)
Discussion started by: effigy
6 Replies

8. UNIX for Advanced & Expert Users

fuser not showing file open by vi

hi, I opened a simple text file by vi. I then started another shell, and did fuser myFile. I expected it to show the pid of the vi session that had that file open, but it just returned a blank. why would this be? thanks (4 Replies)
Discussion started by: JamesByars
4 Replies

9. Solaris

different between soft reboot and hard reboot

Hi Guru's Can any want here could explain to me the different between soft reboot and hard reboot . Best Regards Seelan (3 Replies)
Discussion started by: seelan3
3 Replies

10. Solaris

compiled binary file gives "cannot execute binary file"

Hi, I have two Solaris machines. 1. SunOS X 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-1500 2. SunOS Y 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-60 I am trying to buiild a project on both these machines. The Binary output file compiled on machine 2 runs on both the machines. Where... (0 Replies)
Discussion started by: scgupta
0 Replies
Login or Register to Ask a Question