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
ALEVT-CAP(1)							 Teletext capture						      ALEVT-CAP(1)

NAME
alevt-cap - simple capture of teletext pages SYNOPSIS
alevt-cap [options] ppp[.ss] ... DESCRIPTION
alevt-cap is a simple program to capture teletext pages and write them to disk. You just give it a list of pages to fetch and it will save them. Nothing fancy like time-outs, page ranges, or channel name detection is supported. Though, it supports different file formats - at the moment ascii, ansi (ascii with color escape sequences), html, png, and ppm. OPTIONS
A summary of options is included below. -name filename Gives the filename under which the pages should be saved. It may contain a couple of %-sequences (see below). (default: ttext-%s.%e) -format format-specifier Sets the file format used to save pages (see below). (default: ascii) -format list|help Lists all known file formats and their options. -vbi device Use the given device name. Default: /dev/vbi, /dev/vbi0, /dev/video0, /dev/dvb/adapter0/demux0 tried in this order. -finetune -4..4|auto Specify the fine tuning for the decoder. For the right value play with alevt. Default: 1. -timeout seconds If the pages cannot be captured in seconds, the program terminates with exit status 1 after saving the already captured pages. The default is to wait forever. -charset latin-1|latin-2|koi8-r|iso8859-7 Selects the character set to use. Characters not present in the selected set are replaced by similar looking symbols. (default: latin-1) -progname name Specifies the program name if using the DVB interface. -pid pid Specifies the teletext PID if using the DVB interface. --help Show summary of options. --version Show version of program. Every non-option argument is taken as a page number. Subpages may be given in the form ppp.ss where ppp is the page number and ss is the subpage number. If no subpage is specified, the first transmitted subpage of that page is taken. The page is saved with the prior given format and name. Filenames The filename may contain %-sequences. The following sequences are defined: %% a single % sign. %e the default extension of the selected output format. %p the page number and an optional subpage number. %P the page number. %S the subpage number. %s the page number as given on the command line. Between the % sign and the letter you can give a field width to which the replacement string should be padded. Format specifiers The output format and associated options are given by the format specifier. It is made up of one or more comma separated words. The first word selects the output format and the others are options for that format. There are common options valid for all output formats and for- mat specific (private) ones. Some options have the form of an assignment. The order of the options is free. Only the format name itself must be the first word. An example: ansi,reveal,bg=none The ansi is the format and reveal, and bg=none are options. At the moment there are only two common options: reveal, and hide. They control whether the hidden characters present in a page should be shown in the output or not. The default is hide. The special format string list (or help) will give you a list of all supported output formats and their options. (The ansi format is an alias for ascii,color.) The -progname or -pid option specifies the program or teletext PID if using the DVB interface. If neither of these two options is used, alevt outputs informations about the currently accessible streams and uses the first of these PIDs as default. This output contains the PIDs and names that can be used as an input for the -progname or -pid option in the context of the currently chosen TV channel. DIAGNOSTICS
If the program timed out and some pages are missing the exit status is 1. On fatal errors the exit status is 2. NOTE
Before starting this program, you have to set the TV channel with another program like xawtv of set-tv. FILES
/dev/vbi* /dev/dvb/adapter*/demux* SEE ALSO
alevt(1x), alevt-date(1), BUGS
If you give a page number that is never transmitted the program will not terminate. Bug reports to <froese@gmx.de>. LINUX
1.6.2 ALEVT-CAP(1)
All times are GMT -4. The time now is 10:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy