how would you know your server was rebooted 3 times or 5 times

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
Operating Systems AIX how would you know your server was rebooted 3 times or 5 times
# 1  
how would you know your server was rebooted 3 times or 5 times

Is there such location or command to know how many times did you reboot your server in that particular day?in AIX.
# 2  
Am not familiar with AIX, but I'd try last(1).
# 3  
Issue the "errpt" command. You will find residues of every reboot cycle in there. I am sure there are other methods too.

I hope this helps.

# 4  
you can use the "last" command, which uses the file /var/adm/wtmp

last | grep -E "(reboot|shutdown)"

or write an rc script that logs to a file

Edit: oh didn't see agns post
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #351
Difficulty: Medium
Unix was hatched in an unnamed PDP-7 operating system in 1969.
True or False?

9 More Discussions You Might Find Interesting

1. Red Hat

Response Times

Hello all. Let me qualify my question by saying that I am struggling with how to ask the question I am semi green but have no issue reading up if pointed in the right direction. Please be gentle! A RHEL server 6.2. Hosts a statistical application that has some web apps and batch programming... (0 Replies)
Discussion started by: rsheikh01
0 Replies

2. Solaris

Solaris 10 server crashed two times

Hi, I have two Solaris 10 servers. First server crashed last week (Monday) and second one crashed over the weekend. I have checked the logs such as /var/adm/messages, syslog and dmesg. So for I found none. My management wants to know why the server crashed. I need to come with some kind of... (4 Replies)
Discussion started by: samnyc
4 Replies

3. What is on Your Mind?

Welcome in these 1337 times

Have you noticed that the Unix time right now starts with the combination "1337"? 1337 times indeed. ;-)) bakunin (10 Replies)
Discussion started by: bakunin
10 Replies

4. Shell Programming and Scripting

To get difference between 2 times.

Can anyone help me to write a script to get diffrence between 2 times. (platform- solaris) i.e., Diffence shoud be displayed in tems of hours. (Approximately) for eg: file1 = 05-Apr-2012 13:42:32 file2 = 04-Apr-2012 12:42:41 O/P is like : diff = 25 Hrs (2 Replies)
Discussion started by: thomasraj87
2 Replies

5. Programming

Problem with implementing the times() function in C (struct tms times return zero/negative values)

Hello, i'm trying to implement the times() function and i'm programming in C. I'm using the "struct tms" structure which consists of the fields: The tms_utime structure member is the CPU time charged for the execution of user instructions of the calling process. The tms_stime structure... (1 Reply)
Discussion started by: g_p
1 Replies

6. Shell Programming and Scripting

Script to check for the newest file mutiple times a day and SCP it to another server.

Hi, I need a sample of a script that will check a specific directory multiple times throughout the day, and scp the newest file to another server. Example: current file is misc_file.txt_02272011 (the last part is the date), once that has been secure copied, another one may come in later the... (1 Reply)
Discussion started by: richasmi
1 Replies

7. UNIX and Linux Applications

ssh times out

I have fedora 13 installed on my home computer. I am unable to ssh from my office to my home computer. On trying to ssh to my home computer, I get the following response: $ ssh -vvv username@129.X.XXX.XXX OpenSSH_5.3p1, OpenSSL 1.0.0a-fips 1 Jun 2010 debug1: Reading configuration data... (6 Replies)
Discussion started by: arbitguy
6 Replies

8. Shell Programming and Scripting

finding out how many times something comes up

Hi, I have a file that looks something like this: YPA124 NV YPA124 NV YPA124 V YAR198 V YAR198 V YOB911 V YOB911 V YOB911 NV YOB911 NA So what i want to do is find out how many times each name on column 1 is represented by indicators on column 2. So the output would... (4 Replies)
Discussion started by: phil_heath
4 Replies

9. Shell Programming and Scripting

Question about times and so

I've got an logfile like: Start dump db_name1 : Wed Oct 30 15:08:47 MET 2002 Ready dump db_name1 : Wed Oct 30 15:14:46 MET 2002 Start dump db_name2 : Wed Oct 30 15:14:46 MET 2002 Ready dump db_name2 : Wed Oct 30 15:15:36 MET 2002 Start dump db_name3 : Wed Oct 30 15:15:36 MET 2002... (1 Reply)
Discussion started by: TheBlueLady
1 Replies

Featured Tech Videos