Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NOTE: MUST be done without dumping data in a temporary file!! EDIT: I'm not sure what additional information is required...this is every single word from

NOTE: MUST be done without dumping data in a temporary file!!

EDIT: I'm not sure what additional information is required...this is every single word from the assignment.

Create a script sends an email message to the user specified on the command line if any of the file systems at more than 60% of capacity. The script should not process special file systems as /proc on the ce.uml.edu. It should only process file systems which are either locally mounted or are mounted via NFS.

An individual email should be sent for each filey system which is at the warning level (60%) There should be a subject on the email with a message "Warning: File system here is at % of capacity" If the files system is at greater than 90% of capacity, the "Warning" should be changed to "Critical Warning".

You may use any scripting language including /bin/sh, ksh, bash, awk or perl. Work done in the C-Shell (csh) will not be accepted. The same program for this assignment must be able to be run on both CE.UML.EDU and CYBERSERVER.UML.EDU

Example output of the df -k command on CE.UML.EDU.

image text in transcribed image text in transcribed

kbytes used avail capacity Mounted on File system dev/dsk/c0t0d0s0 11089228 6593301 4385035 618 /proc 08 /proc mnttab 08 Vetc/mnttab /dev/fd fd 08 /dev/dsk/c0t0d0s5 6053358 1984237 4008588 34 3701808 800 3701728 13 /run. Swap 1056 3701728 3702784 13 /tmp Swap /dev/dsk/cotl d0s7 39608035 13478135 25733820 358 /backups /dev/dsk/cotl 1d0s0 30983686 4861760 258 12090 168 /users dev/dsk/c0t0d0s7 51379263 14579685 36285786 298 /space /space/local 51379263 14579685 36285786 298 /usr/local space/opt/SUNWspro 51379263 14579685 36285786 298 /opt/SUNWspro This c ommand. T shows the file system types so you would only process ufs on this system /usr/local/bin /df -T Filesystem 1K-blocks Used Available Use Mounted on Type dev/dsk/c0t0d0s0 11089228 6593301 4385035 ufs dev/dsk/c0t0d0s5 ufs 3701720 tmpfs swap tmpfs Swap /dev/dsk/cotl d0s7 39608035 13478135 25733820 358 /backups ufs /dev/dsk/cotl d0s0 30983686 48 61760 258 12090 168 /users ufs dev/dsk/c0t0d0s7 51379263 14579685 36285786 298 /space ufs /space/local ofs 51379263 14579685 36285786 298 /usr/local. /space/opt/SUNWspro 51379263 14579685 36285786 298 /opt/SUNWspro ofs With that in mind on ce. uml .edu which will produce the correct ile systems you can /usr/local/bin /df t nfs t ufs 1K-blocks Used Available Use Mounted on File system dev/dsk/c0t0d0s0 11089228 6593301 4385035 613 /dev/dsk/c0t0d0s5 6053358 1984246 4008579 348 /dev/dsk/cotl d0s7 39608035 13478135 25733820 358 /backups /dev /dsk/cott 1d0s0 30983686 48 61760 258 12090 168 /users /dev /dsk /cot0d0s7 51379263 14579685 36285786 298 /space Example output of the dk -k command on CYBERSERVER.UML.EDU Filesystem. Used Avai lable Uses Mounted on 1K-blocks /d ev/mapper/cyberserver root 141716900 4354124 30266868 48 udev 504896 12 504884 18 /d 102492 340 102 152 13 /run. tmpfs 5120 5120 08 /run/lock none 512452 512452 08 /run/sharma none /dev/sdal 233191 26961 193789 138 /boot uml. edu /users 30984 192 4861952 25812992 168 /users Ce ce.uml edu /space 51380224 14579712 36286464 298 /space This c ommand shows the file system types would process ext4 ext2 and nfs on this Ou system df Filesystem. 1K-blocks Used Available Use Mounted Type /dev/mapper/cyberserver root ext4 141716900 4354120 1302 66872 48

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+j Enabling a productive global workforce.

Answered: 1 week ago

Question

=+ Are you interested in creating or

Answered: 1 week ago