Sponsored Content
Operating Systems Solaris How to get a mail when the partition reaches 75% in solaris Post 302162592 by pressy on Tuesday 29th of January 2008 10:06:08 AM
Old 01-29-2008
could be something like this:

Code:
#!/usr/bin/ksh
ALARM=75
df -k | awk '!/capacity/ {print $5 $6}' | while read CAP
do
         [[ ${CAP%\%*} -ge $ALARM ]] && print "Warning: ${CAP%\%*} % of ${CAP#*%} on `uname -n` in use!" | mailx -s "warning" pressy@unix.com
done

see "man crontab" for scheduling the job....

regards PRESSY
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

re-partition disks on solaris

hi all, i was wondering if i have some volume manager and i want to format all partitions/disks and re-create new slices can i use regular format command or what? i think veritas volume manager is already installed. (2 Replies)
Discussion started by: Bashar
2 Replies

2. Solaris

mail problems - how to send mail on solaris

Hello I am new user on solaris... I need to configure my solaris to be able to send mails... I know mailx command mailx -s hello address@address.com but I get an error... you have mail in /var/mail/root # hello... User unknown /dead.letter... Saved message in /dead.letter what... (10 Replies)
Discussion started by: amon
10 Replies

3. Solaris

Solaris 8 partition - compression

Hi, Anyone know if I have a mount point /data , can it turn on compression like what the MS Windows does ???? Thanks (2 Replies)
Discussion started by: civic2005
2 Replies

4. Solaris

How to access a solaris partition

Hi, I have the present scenario on a x86 machine. fdisk c0d0p0 Cylinders Partition Status Type Start End Length % 1 Active Solaris2 1 2500 2500 61 2 ... (14 Replies)
Discussion started by: vibhor_agarwali
14 Replies

5. UNIX for Advanced & Expert Users

How to merge solaris partition

I m using solaris 8. I have some free space on my hard disk. I want to merge that space into /export/home. Please tell me complete procedure for doing it. (7 Replies)
Discussion started by: mansoorulhaq
7 Replies

6. Solaris

How to use FORMAT and PARTITION command on Solaris 9

I am seeking advice from experts in this forum. Please help me. I have tow disks on Sun Sparc box. Disk one has been installed Solaris 9 system. The disk two has been partitioned as one disk with 140 GB on the partition /dev/dsk/c1t1d0s6. Right now, I want to modify it as two partitions. I have... (8 Replies)
Discussion started by: duke0001
8 Replies

7. Solaris

Problem with Solaris Partition, I cant see it

Hi All, First post, I work as database developer (Oracle) My task is to setup a solaris system on a VMware installation which sits on a x86 server. I have installed the Os, applied patches (I think) and on VMWARE I added new hardware (Disk) which is where my database will be. The... (5 Replies)
Discussion started by: platforminc
5 Replies

8. Solaris

Disabling Solaris 10 active partition

I have a dual boot system with windows xp and solaris 10 running. Solaris 10 is currently in the primary active partision. If it's possible, how do I make the windows partision the primary active one rather than solaris 10? (1 Reply)
Discussion started by: shakarho
1 Replies

9. Solaris

Partition overlaps another partition while creating new parition in solaris

hi all while formatting hard disk i am getting following error. Partition 1 ends at 266338338 It must be between 34 and 143374704. label error: EFI Labels do not support overlapping partitions Partition 8 overlaps partition 1. Warning: error writing EFI. Label failed. I have formatted the... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

10. Solaris

Find device ID for partition in Solaris 11?

I have a laptop I'm setting up to multi-boot between Win 7, Solaris 11, Ubuntu 14.04, and CentOS 7. I have a common FAT32 partition for all of them to save data to. I'm less familiar with Solaris and haven't used it in years, and am really struggling :-) 'format' says: AVAILABLE DISK... (5 Replies)
Discussion started by: jnojr
5 Replies
captoinfo(1)						      General Commands Manual						      captoinfo(1)

NAME
captoinfo - convert a termcap description into a terminfo description SYNOPSIS
captoinfo [-vn width] [-V] [-1] [-w width] file . . . DESCRIPTION
captoinfo looks in file for termcap descriptions. For each one found, an equivalent terminfo description is written to standard output. Termcap tc capabilities are translated directly to terminfo use capabilities. If no file is given, then the environment variable TERMCAP is used for the filename or entry. If TERMCAP is a full pathname to a file, only the terminal whose name is specified in the environment variable TERM is extracted from that file. If the environment variable TERM- CAP is not set, then the file /usr/share/terminfo is read. -v print out tracing information on standard error as the program runs. -V print out the version of the program in use on standard error and exit. -1 cause the fields to print out one to a line. Otherwise, the fields will be printed several to a line to a maximum width of 60 charac- ters. -w change the output to width characters. FILES
/usr/share/terminfo Compiled terminal description database. TRANSLATIONS FROM NONSTANDARD CAPABILITIES
Some obsolete nonstandard capabilities will automatically be translated into standard (SVr4/XSI Curses) terminfo capabilities by captoinfo. Whenever one of these automatic translations is done, the program will issue an notification to stderr, inviting the user to check that it has not mistakenly translated a completely unknown and random capability and/or syntax error. XENIX termcap also used to have a set of extension capabilities for forms drawing, designed to take advantage of the IBM PC high-half graphics. They were as follows: If the single-line capabilities occur in an entry, they will automatically be composed into an acsc string. The double-line capabilities and GG are discarded with a warning message. IBM's AIX has a terminfo facility descended from SVr1 terminfo but incompatible with the SVr4 format. The following AIX extensions are automatically translated: Additionally, the AIX box1 capability will be automatically translated to an acsc string. Hewlett-Packard's terminfo library supports two nonstandard terminfo capabilities meml (memory lock) and memu (memory unlock). These will be discarded with a warning message. NOTES
This utility is actually a link to tic(1), running in -I mode. You can use other tic options such as -f and -x. The trace option is not identical to SVr4's. Under SVr4, instead of following the -v with a trace level n, you repeat it n times. SEE ALSO
infocmp(1), ncurses(3NCURSES), terminfo(5) This describes ncurses version 5.7 (patch 20100109). AUTHOR
Eric S. Raymond <esr@snark.thyrsus.com> captoinfo(1)
All times are GMT -4. The time now is 01:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy