07-31-2011
# df -h /var
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d3 4.9G 2.9G 2.0G 60% /var
Possibly /var could be full or out of space when wtmpx and utmpx event logging happened.
---------- Post updated at 02:29 AM ---------- Previous update was at 01:32 AM ----------
Hi Bartus11
after performing the steps u mentioned it seems like wtmpx file got nullified and last reboot was giving this output,
# last reboot
wtmp begins Sun Jul 31 00:41
Thanks we have taken backup and i got my datas back.
---------- Post updated at 02:30 AM ---------- Previous update was at 02:29 AM ----------
Hi Bartus11
after performing the steps u mentioned it seems like wtmpx file got nullified and last reboot was giving this output,
# last reboot
wtmp begins Sun Jul 31 00:41
Thanks we have taken backup and i got my datas back.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hey, I'm trying to create the command that will create a file named user.txt that contains the output of the command cut -d: -f1,5 /etc/passwd, and displays itself afterwards.
I don't know how to bridge cat > user.txt with cut -d: -f1,5 /etc/passwd, or how display it afterwards. Any help would... (2 Replies)
Discussion started by: raidkridley
2 Replies
2. Shell Programming and Scripting
Hi All,
can anyone tell me what is wrong with this command.
tail -f /opt/olr-logs/PaymentGateway.log | grep "DEBUG - Start! AkhtarPaymentGateway - generateChecksum" | awk '{print $13}' | sed 's/,//g'>> abc
But I found nothing in the file abc
Please do help me.or Provide me some... (8 Replies)
Discussion started by: akhtar.bhat
8 Replies
3. UNIX for Advanced & Expert Users
i am trying to find the files which are more than 100MB and it was created 10 days ago.
find /lola/loaded -size +102400 -mtime -10 -print | xargs ls -ltr
-rw-rw-r-- 1 lola_adm gdrmp 82054170 Jun 23 06:17 /lola/loaded/ILMEMBER20090622.txt
-rw-rw-r-- 1 lola_adm gdrmp 652080494 Jun 24... (3 Replies)
Discussion started by: sudhiroracle
3 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I try to using the below command to find out all the datafiles under "sja"
direcotory.
$ xargs -i find {} -type f -ls < sja
/bin/ksh: sja: cannot open
so can you tell me what is wrong?
Thanks
Jerry (3 Replies)
Discussion started by: GreatJerry
3 Replies
5. UNIX for Advanced & Expert Users
Hello,
I'm having a problem with xbindkeys giving the wrong mapping information, hence I can't get it work at all when trying new mappings from this machine.
From another computer, I have some definitions for xbindkeys (made with xbindkeys-config). These key codes work correctly on this... (0 Replies)
Discussion started by: Narnie
0 Replies
6. AIX
I faced an interesting problem on my AIX servers. When I checked last logins with command last I saw that hostnames are wrong. Let say, I made login from workstation xxxxx and with the command last I saw:
root pts/2 yyyyy 5 jan 15:38 still logged in
Ping xxxxx and ping... (3 Replies)
Discussion started by: giovanni
3 Replies
7. Shell Programming and Scripting
Hi all,
I'm trying to run the following command to get all files in one directory to another with the files' timestamps preserved,
cp -p /logs/dvgbiau/batch/* /logs/dvgbiau/tmp_batch
Note that ./batch and ./tmp_batch are two sub-directories under /logs/dvgbiau.
The error was,... (1 Reply)
Discussion started by: isaacniu
1 Replies
8. UNIX for Dummies Questions & Answers
Options::
A)$shell
B)echo $ bash
C)echo $ O
D)$ O (1 Reply)
Discussion started by: raghugowda
1 Replies
9. Shell Programming and Scripting
I use things like this a lot in ksh and bash, but lately bash has been printing the command for every loop:
... | while read f
do
if
then
echo Differ "$f"
fi
done
How to prevent this? (5 Replies)
Discussion started by: DGPickett
5 Replies
10. UNIX for Beginners Questions & Answers
I want to create a shell script to gather user account information and displays the result to administrator.
I have created a script but its showing all the information when i search for username like:
amit@mx:~$ ./uinfo.sh amit
Username : amit
User Info ... (2 Replies)
Discussion started by: amit1986
2 Replies
LEARN ABOUT OPENSOLARIS
scshutdown
scshutdown(1M) System Administration Commands scshutdown(1M)
NAME
scshutdown - shut down a cluster
SYNOPSIS
scshutdown [-y] [-g grace-period] [message]
DESCRIPTION
Note -
Beginning with the Sun Cluster 3.2 release, Sun Cluster software includes an object-oriented command set. Although Sun Cluster software
still supports the original command set, Sun Cluster procedural documentation uses only the object-oriented command set. For more infor-
mation about the object-oriented command set, see the Intro(1CL) man page.
The scshutdown utility shuts down an entire cluster in an orderly fashion.
Before starting the shutdown, scshutdown sends a warning message, then a final message asking for confirmation.
Only run the scshutdown command from one node.
The scshutdown command performs the following actions when it shuts down a cluster:
o Changes all functioning resource groups on the cluster to an offline state. If any transitions fail, scshutdown does not com-
plete and displays an error message.
o Unmounts all cluster file systems. If any unmounts fail, scshutdown does not complete and displays an error message.
o Shuts down all active device services. If any transition of a device fails, scshutdown does not complete and displays an error
message.
o Runs /usr/sbin/init 0 on all nodes. See init(1M) for more information.
You can use this command only in the global zone.
You need solaris.cluster.system.admin RBAC authorization to use this command. See rbac(5).
OPTIONS
The following options are supported:
-g grace-period Changes the number of seconds from the 60-second default to the time specified by grace-period.
-y Pre-answers the confirmation question so the command can be run without user intervention.
OPERANDS
The following operands are supported:
message Is a string that is issued after the standard warning message The system will be shut down in ... is issued. If message
contains more than one word, delimit it with single (') or double (") quotation marks. The warning message and the
user-provided message are output when there are 7200, 3600, 1800, 1200, 600, 300, 120, 60, and 30 seconds remaining
before scshutdown begins.
EXAMPLES
Example 1 Shutting Down a Cluster
phys-palindrome-1# scshutdown
EXIT STATUS
The following exit values are returned:
0 The command completed successfully.
nonzero An error occurred. Error messages are displayed on the standard output.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsczu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
Intro(1CL), cluster(1CL), shutdown(1M), init(1M), attributes(5)
Sun Cluster 3.2 10 Apr 2006 scshutdown(1M)