Sponsored Content
Top Forums Shell Programming and Scripting Disk space details from Unix to Outlook Post 302237263 by avronius on Wednesday 17th of September 2008 10:12:40 AM
Old 09-17-2008
1. You will need to create a simple script that sends df-k into a comma separated file.
Code:
df -k | awk '{print $1","$2","$3","$4","$5","$6}' > filename

2. You will need to add this script to cron - to run 6 times each day

3. To test if your host is able to send e-mail:
Code:
mailx -s test you@your.address.com

4. To mail with an attachment:
Code:
uuencode filename filename| mailx -s "subject" you@your.address.com

 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

SCO Unix - Disk Space

Hi, I am using SCO Unix 3.12 and Informix database. When we tried to use "du -a" command to check disk space, it showed: 342122 ./usr 30092 ./etc 6244 ./dev 4778 ./bin 2674 ./tcb 1234 ./lost+found 698 ./lib 532 ./shlib 46 ./tmp 6 ./messages 4 ./opt 4 ./var 2 ./mnt 2 ./install... (1 Reply)
Discussion started by: trinhnguyen
1 Replies

2. UNIX for Dummies Questions & Answers

Details on available disk

Hi everybody.. I am looking for an alternative command to 'format' since this is allowed only to the root user. How do I do to get the same information as command format does here below ? AVAILABLE DISK SELECTIONS: 0. c0t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> ... (4 Replies)
Discussion started by: Riddick61
4 Replies

3. Filesystems, Disks and Memory

Disk space and RAM status in UNIX

I have an application which is running under AIX, HP UNIX, SCO, and LINUX(redhat and SuSE). and its dealing with some bulk amount of file handling, and some of my boxes are not very good in terms of resources like memory and disk space. so i wanted to know the statistics of each of my boxes. Like... (2 Replies)
Discussion started by: renjithram
2 Replies

4. Solaris

Need Hard Disk Details

Hi freinds, What is the command to find out the hard disk details (logical name, FS type etc,). Because i connected one ntfs partition and i don't know the hard disk logical and physical name to mount it.Kindly do the needful. Thanks | P.Bharathiraja. :mad: (2 Replies)
Discussion started by: bharathiraja
2 Replies

5. AIX

Command to get Disk Adapter details in AIX

Hi, What is the command to get the disk adapter performance details in AIX?. Guide me. (2 Replies)
Discussion started by: maruthu
2 Replies

6. Red Hat

storage disk details

Hi, We have a OEL5.7 installed and which has a storage attached on it. While running application it shows poor performance for Disk IO "dm-0" Now the question is how do I find what exactly is "dm-0" # iostat Linux 2.6.32-100.23.1.el5 03/10/2012 avg-cpu: %user %nice %system... (9 Replies)
Discussion started by: shrshah64
9 Replies

7. Shell Programming and Scripting

Script to monitor the disk space details in HP-UX

Hi, I need to monitor the disk space details in HP-UX . I need a command on how to display the information on below format File System Total_Space_KB Used_Space_KB Available_Space_KB %Used /u05 524288000 376235344 138799427 73% /u02 ... (0 Replies)
Discussion started by: ali560045
0 Replies

8. Shell Programming and Scripting

DISK SPACE in UNIX

Hi, I have to regularly monitor manually if my diskspace is close to 90% or not. I use to see this by firing df -k. I want to write a script which can run 24*7 hours and would me mail me whenever the disk space is 90% or more..It would be really great if someone can helo me on this. (1 Reply)
Discussion started by: sachin4shell
1 Replies
vxreattach(1M)															    vxreattach(1M)

NAME
vxreattach - reattach disk drives that have once again become accessible SYNOPSIS
/etc/vx/bin/vxreattach [-br ] [accessname...] /etc/vx/bin/vxreattach -c accessname DESCRIPTION
The vxreattach utility reattaches disks to the disk group they were in and retains the same media name. This operation may be necessary if a disk has a transient failure, or if Veritas Volume Manager (VxVM) starts with some disk drivers unloaded and unloadable. Disks then enter the failed state. If the problem is fixed, vxreattach may be able to reattach the disks without plexes being flagged as stale, as long as the reattach happens before any volumes on the disk are started. vxreattach tries to find a disk in the same disk group with the same disk ID for the disk(s) to be reattached. The reattach operation may fail even after finding the disk with the matching disk ID if the original cause (or some other cause) for the disk failure still exists. vxreattach is usually invoked by vxdiskadm when performing disk recovery. It is not intended to be run directly by an administrator. OPTIONS
-b Performs the reattach operation in the background. -c Checks if a reattach is possible. No operation is performed, but the name of the disk group and disk media name at which the disk can be reattached is displayed. -r Tries to recover stale plexes of any volumes on the failed disk. It does this by calling vxrecover. EXIT CODES
A zero exit status is returned if the reattach is performed; non-zero is returned otherwise. See vxintro(1M) for a list of standard exit codes. EXAMPLES
Check if reattachment of disk c1t2d0 is possible: /etc/vx/bin/vxreattach -c c1t2d0 If reattachment is possible, vxreattach returns with an exit status of 0 and displays the disk group name and disk media name. If reat- tachment is not possible, vxreattach returns an exit status of 2 and displays an error. Attempt to reattach the disk in the foreground and try to recover stale plexes of any volumes on the disk: /etc/vx/bin/vxreattach -r c1t2d0 If the reattachment is successful, vxreattach returns an exit status of 0. Otherwise, if an error occurs, vxreattach returns a non-zero exit code as defined on vxintro(1M). FILES
/etc/default/vxplex Standard defaults file that can be used to determine whether FastResync is used when attaching plexes. See vxplex(1M) for details. SEE ALSO
vxdiskadm(1M), vxintro(1M), vxplex(1M), vxrecover(1M) VxVM 5.0.31.1 24 Mar 2008 vxreattach(1M)
All times are GMT -4. The time now is 10:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy