Shutting down the Server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Shutting down the Server
# 1  
Old 03-28-2007
Shutting down the Server

Hi

Is there anyway i can find out from which terminal a shutdown command has been run from ? Smilie
# 2  
Old 03-28-2007
Code:
grep -r shutdown /var/log/

# 3  
Old 03-28-2007
thanks sysgate

I have run this command but it brings through nothing Smilie any other ideas.... Smilie
# 4  
Old 03-29-2007
What is your OS ? It depends where such logs are stored, usually /var/log.
Also, if your system is BSD, you can use "lastcomm|grep shutdown" EDIT : I just saw that Linux has it too, I wasn't aware of that.
if you don't have it configured - it is easy :

Quote:
To start the process accounting facilities on your system, su to become root. Make sure that the log file exists by performing a touch on the desired location. Example:
Code:
touch  /var/log/pacct

Then type the full path to your accton program (usually /usr/sbin/accton or /sbin/accton) followed by the filename. Example:
Code:
/sbin/accton /var/log/pacct

Otherwise, just go through the logs, search for the shutdown/reboot event, use "last" to see who has been logged in at this particular time, and you will find it.

Last edited by sysgate; 03-29-2007 at 11:56 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

11.2 not shutting down completely

I just installed this 11.2 ver and when I tell it to shutdown it takes for ever then just hangs with this just a little bit of that red line left to go, then it just sits there like forever until I get tired of looking at it then force a shutdown by holding my power button down until my laptop... (8 Replies)
Discussion started by: userx-bw
8 Replies

2. Fedora

Script for shutting down 48 computers

Hi All, I am pretty new to unix type languages. At work we have a server room with about 50 windows computers in one system and 50 in a unix system. We sometimes have power outages and I don't like the power slam. I wrote a windows batch file using sysinternals help to shutdown the windows... (4 Replies)
Discussion started by: Jeff Rollins
4 Replies

3. AIX

Getting error while shutting down

Hi, I am getting the error "/etc/rc.shutdown failed. Shutdown aborting" while shutting down the os. Please suggest. (1 Reply)
Discussion started by: manoj.solaris
1 Replies

4. Solaris

I Need to edit message at shutting down

on solaris 8 i edited file rc0 in /sbin at last line ex. /sbin/sync; /sbin/sync; /sbin/sync # Unmount file systems. /usr, /var, /var/adm, /var/run are not unmounted by # umountall because they are mounted by rcS (for single user mode) rather than # mountall. If this is changed,... (1 Reply)
Discussion started by: infjustice
1 Replies

5. Shell Programming and Scripting

Shutting down a client machine from server using scripts

Hi, i have several client machines connected to a server..how do i shutdown a specific client from server using shell scripts?? is it possible to use socket programming to establish a connection before doing this? (need a code in 'c') thanking you tanvi (1 Reply)
Discussion started by: tanvi
1 Replies

6. UNIX for Dummies Questions & Answers

critical temperature eached, shutting down

Hey all, I have attached an image of a problem that I've been having since last night. My computer will be on no more than 5-10 min and I'll get this message that pops up and my computer shutsdown. I know for a fact my computer is not overheated becasue I will have it off for hours and then... (7 Replies)
Discussion started by: pullmand
7 Replies

7. Ubuntu

Ubuntu Hangs when shutting down

i really dont know any other way to put it besides that Ubuntu 8.04, that i just installed on my computer hangs when it shuts down. the bar depletes the orange like it should, but it never actually shuts down. anyone know whats going on? (3 Replies)
Discussion started by: Texasone
3 Replies

8. UNIX for Advanced & Expert Users

Shutting down Solaris

Hi I have a mix of solaris 8,9 & 10. I need to have our 6 Solaris servers shutdown buy a script that will be executed by APC network Shutdown software Im really not sure how I would write a script to shut them down and the following processes? the processes are portmapper seq seq_api... (1 Reply)
Discussion started by: tonysequoia
1 Replies

9. Solaris

shutting down/restarting oracle with the solaris server restart

How can I make sure that all the database instances are shut down and brought up when the server is restarted. Krishan (3 Replies)
Discussion started by: krishan
3 Replies

10. Solaris

shutting down oracle with the server

What can I do to ensure that oracle database is shut down when the server reboots. (1 Reply)
Discussion started by: krishan
1 Replies
Login or Register to Ask a Question