Sponsored Content
Full Discussion: Server Shutdown
Operating Systems AIX Server Shutdown Post 302486188 by allanwang77 on Friday 7th of January 2011 09:50:16 AM
Old 01-07-2011
1. Checking the shutdown time:
-bash-3.00$ last shutdown
wtmp begins Feb 28 11:01
2. Checking the on line people who has the access to shutdown server at that time.
You can use # last username and # last to limit it.
3. Checking user history or asking them what they did at that time.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Server shutdown Troubleshooting

SCO Unixware 7.1.1 Hi friends, At 11:30pm last night mymain Unix Server hung or rebooted (Unaware which one), and was bot available for 10 minutes. Is there a log file somewhere which will tell me what happened ? I have looked ad /var/adm/syslog, but cannot make head nor tail of it. ... (1 Reply)
Discussion started by: sureshy
1 Replies

2. UNIX for Advanced & Expert Users

shutdown a unix server

Hi, how to shutdown a unix machine ? We are on SunOS server15.8 Generic_108528-24 sun4u sparc SUNW,Ultra-Enterprise Many thanks. (2 Replies)
Discussion started by: big123456
2 Replies

3. UNIX for Advanced & Expert Users

Mysterious Server Shutdown

Virtually no UNIX admin experience. Any admin duties are shared by several folks with no special training. Today we had our Sun v880 server, running Solaris 5.8, shutdown for no apparent reason. When we checked on server we found it completely powered down, yet still connected to a fully... (6 Replies)
Discussion started by: buechler66
6 Replies

4. AIX

server is getting shutdown

Hi Guys, Please help in this...when we start HACMP services ..server is getting shutdon. Error mesg from cluster.log. Apr 14 08:43:27 bascop17 snmpd: NOTICE: SMUX trap: (0 0) (127.0.0.1+46302+1) Apr 14 08:43:33 bascop17 topsvcs: (Recorded using libct_ffdc.a cv 2):::Error ID:... (1 Reply)
Discussion started by: b_manu78
1 Replies

5. UNIX for Advanced & Expert Users

RHEL 4 U5 - Server immediate shutdown

Dear all, My server has shutdown frequently. It is AMD64, OS is RHEL 4 U5. I've seen the system log, before the shutdown occured: Jul 29 04:28:56 localhost kernel: EDAC k8 MC0: general bus error: participating processor(local node response), time-out(no timeout) memory transaction... (2 Replies)
Discussion started by: mr_bold
2 Replies

6. UNIX for Advanced & Expert Users

shutdown and reboot unix server

Hi, please could someone advise the best command to shutdown and then for it to reboot back online again. Note: I shall be doing this from a telent session. regards venhart (3 Replies)
Discussion started by: venhart
3 Replies

7. Solaris

Server Shutdown Problem

I have a sparc T1 server (I know its old) running Solaris 8, which we use for testing. It has been very slow in response- prompt takes couple of minutes to come up, so I decided to reboot the server but I can reboot it, it is giving following errors when I try to shutdown it down. root@deva:/#... (3 Replies)
Discussion started by: Tirmazi
3 Replies

8. Solaris

Startup and shutdown a server

Are rc scripts executed serially or all at the same time. Is there a way to see this happen? A log file or the syslogd? This is Solaris 10. (2 Replies)
Discussion started by: djehresmann
2 Replies

9. UNIX for Advanced & Expert Users

Shutdown the Linux server if no one is using the server

Hi All, I want to shutdown the server if no one is actualy using it. Its a linux server. I thought of sending a msg on users terminal for those who all are logged in and expecting a input from them. If they will reply system should not get shutdown else it should not. Can any one... (2 Replies)
Discussion started by: Sadhana
2 Replies

10. Red Hat

Shutdown server when network inactive

I was referring script to shutdown server from local interface ubuntuforums.org/archive/index.php/t-2017336.html. This is scheduled in CRON. It will run every 20 minutes and check for inactivity. It compares the RX and TX packets from 20 minutes ago to detect if they significantly increased. If... (0 Replies)
Discussion started by: sanjaymp
0 Replies
WRITETMP(8)						      System Manager's Manual						       WRITETMP(8)

NAME
writetmp - write special wtmp entries to a wtmp file. SYNOPSIS
writetmp [-w wtmp|-] [-X[3|4]] [-u user] [-l line] [-h host] [-i id] [-p pid] [-t type] [-c comment] [--help] [--version] [entry-type] DESCRIPTION
Writetmp is a utility to write special entries to a wtmp file. Useful as either a replacement for the functionality of the "halt -w" or "reboot -w" commands which are normally run at shutdown time or to write special wtmp entries to an alternate wtmp file to which such entries would normally not be written. Under normal conditions radius radtwmp or tacacs accounting logs do not contain shutdown and boottime entries because the access control software is not setup to take into account these events. In the case of a quick shutdown or server crash, the wtmp file(s) will lose coherency. To avoid or minimize the amount of accounting error, it is necessary to write shutdown and boottime entries to such logs. Also changes in time which are made manually with date or via the network with a program such as rdate are not reflected in the accounting logs, which, if the time difference is severe can improperly account time for logins active during the time change. If an entry-type is specified on the command line, the -u, -l, -h, -i, -p, -t and -c options are ignored as writetmp will fill in the user- name, line, id, and host entries as required for that particular wtmp entry-type. Writetmp understands the following entry types: shutdown used just prior to a normal system shutdown. Also accepts halt or reboot as aliases for shutdown. boottime used at system initialization time, to indicate the system is booting. oldtime Indicates the time is about to change. newtime Indicates the time has changed. The difference in time is determined from the timestamp on the last oldtime entry. runlevel Indicates a change in runlevel (useless in an accounting sense). OPTIONS
Writetmp understands the following command line switches: --help Outputs a verbose usage listing. --version Displays the version of writetmp. -w wtmp Select a different output file instead of the default (/var/log/wtmp). -X[3] Write to a wtmp file maintained by versions 3.3 or 3.4 Tacacs terminal server access control software. -X4 Write to a wtmp file maintained by version 4.0 of Tacacs terminal server access control software. -u user Specify the username for the username field. -l line Specify the tty name for the line field. -h host Specify the hostname. -i id Specify the init id name. Not applicable to tacacs wtmp files. -p pid Specify the pid number. Not appliccable to tacacs wtmp files. -t type Specify the type of wtmp entry for the ut_type field, not to be confused with entry-type. May be coded as a number or one of: unknown, runlevel, boottime, newtime, oldtime, init, login, user or dead. -c comment Specify the comment for the tacacs 4 wtmp comment field (16 characters max). EXAMPLES
Write a shutdown message to an alternate wtmp log: writetmp -w /var/adm/xtmp shutdown A shell script to update the time in an alternate wtmp file when netdate is run: #!/bin/sh writetmp -w /var/adm/xtmp oldtime netdate clock.llnl.gov writetmp -w /var/adm/xtmp newtime Find out how often and for how long people run a specific program, such as pine: #!/bin/sh # /var/adm/cmdtmp must be globally writable. cmdtmp=/var/adm/cmdtmp writetmp -w $cmdtmp -u pine -l cmd$$ -h $USER -t user /path/to/real-pine $* writetmp -w $cmdtmp -l cmd$$ -t dead FILES
/var/log/wtmp login database. AUTHOR
Steve Baker (ice@mama.indstate.edu) BUGS
Does not lock the wtmp file and does not guarantee a successful write. Could in theory corrupt a log file. Rdate and netdate can take seconds to complete, so writing oldtime/newtime records around them may not be entirely accurate. SEE ALSO
date(1), last(1), sac(8), netdate(8L), reboot(8) UNIX Manual WRITETMP(8)
All times are GMT -4. The time now is 01:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy