[SunHELP] Listing Disk Sizes...
Bruce Pullig
bpullig at houston.oilfield.slb.com
Wed Feb 5 15:33:57 CST 2003
prtvtoc `grep dsk /etc/vfstab | grep -v # | awk '{print $2}'`
Will give you partition information about disks in /etc/vfstab.
At 04:11 AM 2/4/2003, Wyatt Draggoo wrote:
>Afternoon all,
>
>I need to get a list of the disks attached to an Ultra 5, along with the
>total size of the disk, in a script under Solaris 7. Most of the commands
>that deal with sizes (df, du) are per-partition, and format, which lists
>the disks, is interactive, which doesn't help a lot in a script.
>
>I'm sure there is a command to get this list, but a search through this
>list archive and both google and groups.google hasn't turned up anything
>for me.
--
* * * * * * * * * * * * * * * * * * * * *
Bruce Pullig
Senior Systems Administrator
Schlumberger Information Solutions
Data Management Center
5444 Westheimer, Suite 800, Houston, TX 77056
Phone: 713.350.4217 Fax: 713.350.4102
bpullig at slb.com
* * * * * * * * * * * * * * * * * * * * *
More information about the SunHELP
mailing list