From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,6739fd0c7df191d5 X-Google-Attributes: gidfa528,public From: Gary Schmidt Subject: Counting Disks... Date: 2000/08/01 Message-ID: <39865C56.A8351A8B@oz.quest.com>#1/1 X-Deja-AN: 653082684 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 965107087 144.132.59.144 (Tue, 01 Aug 2000 15:18:07 EST) Organization: Quest Software MIME-Version: 1.0 NNTP-Posting-Date: Tue, 01 Aug 2000 15:18:07 EST Newsgroups: comp.unix.tru64 How, programmatically _and_ portably to determine how many (physical) disks are attached to a Tru64 box?? In 4.x, we could loop using table(TBL_DKINFO,...), and stop on .di_name == "dk". With 5.x, it seems that loop table(TBL_DKINFO,...) until failed, then decrement count by one gives the number. I'd like to do it _one_way_ on both versions, so I don't have to be checking what version I'm running on (I hate parsing uname(2)). Opinions, pointers, better ideas all welcome. Cheers, Gary B-)