I have a shell script to generate disk space usage email alert if threshold is more than 80 %, now the requirement changed to keep sending alert emails for every 5% incremental usage ........ Any help would be greatly appreciated.
ex - 80% , 85% ,90%,95%,100% we should get an email
I tried couple of options using while loop but could not get right one
Any help is highly Appreciated
Last edited by Don Cragun; 03-05-2017 at 02:02 PM..
Reason: Add CODE tags, again.
Hi Guys
I am looking for a python / PERL script which will send me email when ever my disk becomes more than 90% full.
By the way my OS is Win XP.
If anybody have already has written same type of script or something very similar kind of script, that will also be very helpful.
Thanks... (1 Reply)
Some times my disk space is used upto 100% due to the application logs .
So this script is to monitor the disk space usage and wall message to the users about the disk space usage if it exceeds the limit set in the script. Here for example the limit is set to 80%. This job is added in cron to... (2 Replies)
Hi all,
FreeBSD7.1 @ sh.
In a backup script I am trying to get the blocks used by the backup once completed.
I am using the function:
#!/bin/sh
spaceused()
{
du -d 0 "${1}" | awk -F"+" '{ print $1 }
}
to return the blocks used of said directory and contents.
Via. command line... (7 Replies)
Issue with disk space usage
I have the following line in my "df -h" output:
Filesystem Size Used Avail Capacity Mounted on
/dev/ad4s1a 496M 495M -39M 109% /
What is the issue with having 9% excess utilisation? How can I find out what this partition is... (2 Replies)
Hi all
can any one help me to script monitoring
CPU load avg when reaches threshold value
and disk usage if it exceeds some %
tried using awk but when df -h out put is in two different lines awk doesnt work for the particular output in two different line ( output for df -h is in two... (7 Replies)
Given this directory /web
I need to get the current usage (in %) on Linux and Unix both using the same command on bash shell ?
The command i tried was working on Unix (solaris) but does not filter the desired same value when run of Linux.
My command df -h /web | awk '{print $5}' | sed -n... (5 Replies)
Discussion started by: mohtashims
5 Replies
LEARN ABOUT BSD
arp
ARP(8C)ARP(8C)NAME
arp - address resolution display and control
SYNOPSIS
arp hostname
arp -a [ vmunix ] [ kmem ]
arp -d hostname
arp -s hostname ether_addr [ temp ] [ pub ] [ trail ]
arp -f filename
DESCRIPTION
The arp program displays and modifies the Internet-to-Ethernet address translation tables used by the address resolution protocol
(arp(4p)).
With no flags, the program displays the current ARP entry for hostname. The host may be specified by name or by number, using Internet dot
notation. With the -a flag, the program displays all of the current ARP entries by reading the table from the file kmem (default
/dev/kmem) based on the kernel file vmunix (default /vmunix).
With the -d flag, a super-user may delete an entry for the host called hostname.
The -s flag is given to create an ARP entry for the host called hostname with the Ethernet address ether_addr. The Ethernet address is
given as six hex bytes separated by colons. The entry will be permanent unless the word temp is given in the command. If the word pub is
given, the entry will be "published"; i.e., this system will act as an ARP server, responding to requests for hostname even though the host
address is not its own. The word trail indicates that trailer encapsulations may be sent to this host.
The -f flag causes the file filename to be read and multiple entries to be set in the ARP tables. Entries in the file should be of the
form
hostname ether_addr [ temp ] [ pub ] [ trail ]
with argument meanings as given above.
SEE ALSO inet(3N), arp(4P), ifconfig(8C)4.3 Berkeley Distribution May 20, 1986 ARP(8C)