10-12-2007
Quote:
Originally Posted by
Niadh
I am trying to update a script which I had created to monitor tablespace usage.
Originally the sql spooled out to a text file anything with more than 75% used.
I have been asked to change this.
Now the sql must spool out all tablespaces.
The script I have to write should scan the file for values over 75% and if it encounters any it sends a high importance/priority email to the DBAs.
If no values above 75 are enountered it just sends out an informational email.
The bit I am having trouble with is the files scan for values 75 and over.
Any ideas from anyone?
Can you please provide the existing sql which use to spool only 75% used space, so that we can look insight what type of files it generating.....and then we could trace out....how to write the script
9 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hi. I wanted to increase my knowledge base with unix. can you help me find a like that talks about luns, physical volumes, volume groups, logical volumes then mountpoints? i would appreciate it
thanks
Jigar (1 Reply)
Discussion started by: jigarlakhani
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am looking for documentation (PDF, DOC, books, web ...) about UNIX scripts.
What could you advice me ?
Thanks. (3 Replies)
Discussion started by: Filippo
3 Replies
3. UNIX for Dummies Questions & Answers
Can any1 please help me answer a couple of this question?
1) What is the process management of UNIX? (single task, multitasks, etc...)
2) What is the process management of Linux? (single task, multitasks, etc...)
3) What is the type of process of UNIX? (process, thread, etc...)
4)... (1 Reply)
Discussion started by: blind02002
1 Replies
4. Shell Programming and Scripting
Hi,
I am a newbie in shell scripting. I want to get an expert help in solving a text processing issue.
The issue I am facing is that, in the below log file contents I need to extract each block of lines (it could be a single line also) based on some regular expression and store it in... (8 Replies)
Discussion started by: Alecs
8 Replies
5. Shell Programming and Scripting
Hi All,
I got a problem and stuck to filter a log file, called it as "sample.log". This "sample.log" file is being generated by "script A". The "sample.log" look like below:
:FORMATDATE_FORMATTIME:CmdArg->:SomeDoce:SomeFormatDocument:
:FORMATDATE_FORMATTIME:imprtcp succeeded.... (1 Reply)
Discussion started by: anakiar
1 Replies
6. Programming
I suppose everybody here read reference books like Kernighan & Ritchie one, but where's the real deal?
I mean I'd like to learn more about special efficient techniques, tips&tricks, what compiler effectively does, and stuff like that.
Could you please suggest me some books or internet... (1 Reply)
Discussion started by: Luke Bonham
1 Replies
7. Shell Programming and Scripting
#!/bin/bash
>error_log
for s in `cat s.txt`
do
uptime $s >>error_log
echo $s >>error_log
done
The above code produce output with server name and its uptime in 2 different lines .My requirement is to have the same in one line . Please assist (3 Replies)
Discussion started by: vinil
3 Replies
8. Shell Programming and Scripting
Hello All,
I'm looking for some help with grepping for two specific strings in files with multiple lines. For instance, I have files and the content looks like this:
=====Start=====
Record:1
Field 1 = aaaaaaaaaa
Field 2 = bbbbbbbbbb
Field 3 = 1234567890
... (9 Replies)
Discussion started by: bbbngowc
9 Replies
9. Shell Programming and Scripting
Hi ,
I have to use HP-unix OS to get difference between 2 files.while i tried a piece of code in other OS(linux/unix) as below, it worked fine & the output is desired one.
diff --suppress-common-lines -y file_1 file_2 >d.txt
The same doesn't works in HP -unix. Any help shall be... (6 Replies)
Discussion started by: vinil
6 Replies
LEARN ABOUT ULTRIX
uumkspool
uuaids(8c) uuaids(8c)
Name
uucompact, uumkspool, uurespool, uupoll - uucp utilities
Syntax
uucompact -ssystem
uumkspool system ...
uurespool [ -t# ]
uupoll system ...
Description
All of the commands are located in
The command compacts uucp system spool directories and associated subdirectories. If system is ALL, then all existing uucp system spool
directories are compacted. Otherwise, only the specified system spool directory is compacted. If no system is specified, is compacted.
If is stopped before it is finished, it can be restarted without reprocessing directories. The command continues processing where it left
off during it's previous instantiation.
The command makes a per system spool directory and associated subdirectories for each of the specified systems. For example, if system is
mk3 and if the local system name is penny, the following directories are created:
/usr/spool/uucp/sys/mk3
/usr/spool/uucp/sys/mk3/C.
/usr/spool/uucp/sys/mk3/X.
/usr/spool/uucp/sys/mk3/D.
/usr/spool/uucp/sys/mk3/D.penny
/usr/spool/uucp/sys/mk3/D.penny
The command moves files from old spool directories to new spool directories. Because the structure of the spool directories has changed
from older versions of it is necessary to respool old spooled files to new spool directories in at least two instances:
o When installing the current version of
o When creating a new system spool directory for each system.
In the latter case, it is necessary to move files from to the new spool directories. To ease this task, moves files that have been spooled
in one of 4 formats and respools them under the new spooling structure. The format is specified by the -t# option, where the number sign
(#) can be any one of the following:
o Original spool - All files are in
o Split spool - Contains the subdirectories
o Modified split spool - Contains all subdirectories listed in split spool, and
o Used when a new system directory has been created and spool files must be moved from the DEFAULT directory to the new system directory.
The command forces a connect attempt to the named systems even if recent attempts have failed, but not if the file prohibits the call. For
example, the file will prohibit the call if it is the wrong time of day. Thus, the should be monitored for messages about the connection.
Files
Spool directory
Logfile
See Also
mail(1), uucp(1c), uux(1c)
uuaids(8c)