Hi all.
I am not a DBA. But I do have responsibility for making sure the archive logs dont fill up and cause the database. This happend the other day while I was absent (sick) and I got a good ticking off for it.
Needless to say I dont want this happen!
Could anyone lend a hand to a complete novice here and explain how I could run a script that would alert me and my boss by email if the archive logs got to over 90% ???
That will tell you how many k are allocated/used. Is there a hard number you want this tracked against? (For example, the above command may return 543560 meaning 543M used; but maybe you do not want to exceed 600M.)
The following is a script that would use what you just told me; remember to delete the # comments from the df command line and the mailx command line.
explaining this:
gets rid of extra space characters
using space char as delimiter, takes the 3rd field
now using period as delimiter, takes the 1st field (tricky way to get a whole number from a decimal)
I am trying to create a script that checks if my VPN connection is up and running...
Everything seems to work as except but for some reason, the script fills up my /var/log/auth.log with the below information
Dec 13 01:07:44 debian sudo: soichiro : TTY=pts/0 ; PWD=/home/soichiro/Desktop ;... (5 Replies)
Appreciate help for the below issue.
Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt..............
1)if logs exist it should move the logs with extention... (1 Reply)
Requirement:
Under fuse application we have placeholders called containers;
Every container has their logs under:
<container1>/data/log/fuse.log
<container1>/data/log/fuse.log.1
<container1>/data/log/fuse.log.XX
<container2>/data/log/fuse.log... (6 Replies)
I have this command that i am calling from php (exec()):
openssl pkcs12 -export -in cert.pem -inkey key.pem -out cred.p12
and then i need to insert password twice
Enter Export Password:
Verifying - Enter Export Password:
I need script that will fill the password... (3 Replies)
I have the below shell script which is checking /archlog mount point space on cappire(solaris 10) server. When the space usage is above 80% it should e-mail. When i tested this script it is working as expected.
-------------------------------------------------------------------------... (0 Replies)
Hi,
I am constantly automaticaly downloading a few things on the internet but since my internet connection is unstable, it sometimes wont work. Thing is the internet will appear to be connected, but no website can be accessed and no program can successfully connect to any location. I can fix... (4 Replies)
I am trying to fill out a web form from within a script I am writing. I think that I should be using curl to do this, but I'm not really sure. The form has username and password fields and a submit button. I want to be able to log in from the command line.
Html from the site:
<h5... (2 Replies)