I am having a Solaris 5.9 server in which an audit trail script is running every day.It is doing nothing but taking the backup of three files given below
-rw-r--r-- 1 root root 1807 May 18 01:30 login_server1_17May2008
-rw-r--r-- 1 root root 0 May 18 01:30 msgs_server1_17May2008
-rw-r--r-- 1 root root 7168 May 18 01:30 history_server1_17May2008.tar
In which msgs_ file size is zero.I cleared wtmpx file and checked but it is not working .
I type dmesg also its showing an error at last line something like
May 15 14:51:19 server1 genunix: [ID 603404 kern.notice] NOTICE: core_log: cub7
5[27241] no space left on device, core truncated: /var/core/core_server1_cub75_ 207_103_1210843251_27241
first of all, remove your core file or move it to some other location. As mentioned, check with your team. df -k and see the % used for file system. If its more than 80%,you need to housekeep. cd /var ;du -sk * |sort -rn to check the culprits and get rid of them. Use this for other partitions as well
'incredible' is right! You need to check the largest files... if they are core dumps or log files (thats what populat /var most of the times), just compress the older ones.
df -h (use -k for Solaris 8 and below) will give you the consumed capacity of your file systems. Your company must be keeping some sort of threshold levels to page/call the on call person to address the issue. We are using 80% for major alerts and 90% for critical alerts!
If it is some other file system than /var and the owner of the culprit files is not root, contact your help desk to contact the file owner to address the issue.
i have one function block in the beginning of my script and there are some commands inside that function which will perform some operations.
And i am invoking that function from my main script by passing some values. Sometimes it is hanging in the middle for some value.
For example:
For 1st... (3 Replies)
I have mistakenly removed /root/.cabal/ from my root directoty and when I tried to reinstall it I get this output:
faiz:~$ sudo cabal install pandoc --reinstall
Resolving dependencies...
In order, the following will be installed:
pandoc-1.14.0.4 (reinstall)
Warning: Note that reinstalls are... (3 Replies)
Disclaimer: I tried searching but wasn't able to get to the answer so please don't flame.
Scenario:
I have a root script that generates a file on box1 and then needs to scp it over to box2 using user1. Both boxes are running open-ssh.
root@locat-host# scp /tmp/file1 user1@box2:/tmp/file1
... (10 Replies)
Hello
Any Unix programm can help me to solve thsi issue:
I have 2 venn digrams please checke the attached file for pictures of venn diagram for eg red is A yellow is B and green is C..Please see attached file for Venn diagrams
In one .....
I have 3 data set A , B and C
Venn diagram... (0 Replies)
awk -F^ '{ if (($1 != "X") && ($5 != "3")) || if (($1 != "S") && ($5 != "2")) print $0}' abc> xyz
The above command returns this error
awk: syntax error near line 1
awk: illegal statement near line 1
I am newbie to awk, Any awk intelligence involved in correcting this issue is highly... (2 Replies)
I have to write an script for..
CUST: 123 trans:
some contents
CUST: 1234 trans:
some contents
Now wat i have to do is this:
CUST:123 akash trans:
some contents
CUST:1234 akash1 trans:
I have been able to add... (3 Replies)