A few minor corrections.
1) Lose the $ from $output on the "while read" line. We only have the $ when referring to the value of a variable.
2) Put double quotes round your string variable $output. It contains two values separated with a space character.
3) The percentage field is like 90% . Therefore the number bit is -f1 not -f2 in the cut statement.
Last edited by methyl; 03-29-2012 at 07:09 AM..
Reason: assorted typos
Is there any danger to keeping one of my disks at 100% capacity? (it's a disk just used for read-only files, not system files or anything like that).
It's HP-UX if that matters.
Thanks! (1 Reply)
Hi, Im getting a downtime of 4 hrs to do porting of bootdisks.
Currently, the system is running on Sf4800. 2 internal disk 36G connected to a SE3510 storage.
We're getting 72G disks and we want to restore the OS from the current 36G to the 72G disk. System is under veritas volume manager ctrl.... (4 Replies)
friends , need a shell script to create a disk load. can any one pls guide me with how this can be implemented. Pls provide the concept. from there i will try to design my script. (3 Replies)
Hi,
I would like to know how to find out disk capacity if it is assigned from the storage as a lun.
as per below command , I am unable to find out disk capacity.
$ bash
bash-3.00$ lspv
hdisk1 0001579a7fa3c086 None
$ lscfg -vl hdisk1
hdisk1 ... (8 Replies)
Hi all,
I am new to Unix and I want to write a shell script in a jumpbox for finding the filesystem capacity on 50 unix servers ( by ssh ) and then email the result in HTML format with server name and capacity % to a specific outlook distribution list.
any suggestion would be of great help. (17 Replies)
Hi Guys,
I'm a newb at shell scripting and successfully attempted a small disk space script (victory!!) but i'm wondering whether it actually takes into consideration KB,MB,GB. Please take a look at the script and advise.
##script to check if file sys has reached threshold.
... (3 Replies)
Hello.. I wrote the following shell script to run disk quotas for assigning limits to users. I need to know the partition which the user has created and mount it. So i copied the partitions (which will be displayed after running fdisk -l) and separted the last line from it and cut the required... (0 Replies)
i have a query on checking Tru64 disk drives physical capacity.
i used hwmgr view devices and saw this disk.
160: /dev/disk/dsk7c COMPAQ BF03688284 bus-3-targ-0-lun-0
checking the model on the internet shows it is a 36.4GB drive.
i checked the disk details and saw the... (2 Replies)
Hi, i am new in shell script. i have given a task to make a C-shell script. I have list of ip address and device name respectively. For example;
cal 1 : 100.21.25.10
cal 2 : 100.21.25.11
cal 3 : 100.21.25.12
cal 4 : 100.21.25.14
and so on...
Right now, i have this.
#! /bin/csh -f
... (0 Replies)