Re: How many HD ?
From: Hans-Joachim Ehlers (service_at_metamodul.com)
Date: 08/19/03
- Next message: Dan Foster: "Re: How many HD ?"
- Previous message: Dan Foster: "Re: How many HD ?"
- In reply to: Dan Foster: "Re: How many HD ?"
- Next in thread: Dan Foster: "Re: How many HD ?"
- Reply: Dan Foster: "Re: How many HD ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 19 Aug 2003 13:46:45 +0200
"Dan Foster" <dsf@globalcrossing.net> schrieb im Newsbeitrag
news:slrnbk41b3.1a7.dsf@gaia.roc2.gblx.net...
> In article <bhssgh$g9t6@news-1.bank.dresdner.net>, Hans-Joachim Ehlers
<service@metamodul.com> wrote:
> >
> > # Total hdisk space
> > lscfg -l hdisk\* | awk '{ print $1 }' | xargs -I{} lsattr -El {} -a
> > size_in_mb | awk '{ SIZE=SIZE+$2 } END { print SIZE/1024" GB" } '
>
> Only one problem... lscfg -l hdisk\* | awk '{print $1}' returned:
>
> # lscfg -l hdisk\*|awk '{print $1}'
> DEVICE
>
> hdisk0
> MB)
> hdisk1
> MB)
> hdisk2
> MB)
> hdisk3
> MB)
> hdisk4
>
> Why? Because the lscfg -l output was:
>
> # lscfg -l hdisk\*
> DEVICE LOCATION DESCRIPTION
>
> hdisk0 10-88-00-8,0 16 Bit LVD SCSI Disk Drive (36400
> MB)
Hm, my cmd line was only tested on AIX 5.2
Looks like IBM fixed the strange lscfg output from the previous versions.
cy
Hajo
- Next message: Dan Foster: "Re: How many HD ?"
- Previous message: Dan Foster: "Re: How many HD ?"
- In reply to: Dan Foster: "Re: How many HD ?"
- Next in thread: Dan Foster: "Re: How many HD ?"
- Reply: Dan Foster: "Re: How many HD ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|