Operating System - HP-UX
1828208 Members
2030 Online
109975 Solutions
New Discussion

Re: Disk Array Discovery Script

 
SOLVED
Go to solution
Michael Steele_2
Honored Contributor

Disk Array Discovery Script

Hello gang. Here's the problem. I have 105 legacy HP servers with 10.20 - 11.23. All are pa-risc but two. I need to detect the model and product number of the disk arrays attached to these servers. These servers are in lights out data centers and remotely administered. Also, the former admin.s have failed to pass along the information.

Qustion: From root, using ioscan or cstm, etc., anybody got an product discovery tool / script for this kind of problem?

I've collected a list of product numbers
Support Fatherhood - Stop Family Law
9 REPLIES 9
dictum9
Super Advisor

Re: Disk Array Discovery Script

Well, you can run

fcmsutil /dev/td[01]

ioscan -funC fc

to get an idea if the system has a Fibre channel card and it's being used.

dictum9
Super Advisor

Re: Disk Array Discovery Script

Just occured to me that the more definitive way is to run

powermt display dev=all

and that will give an idea what disk arrays are connected to it, for example:



CLARiiON ID=xxxxxxxxxxxxxx [host1]
^^^^^^^^^
Logical device ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [LUN 58]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP B, current=SP B
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
10 0/5/1/0.4.1.0.0.6.6 c10t6d6 SP B1 active alive 0 0
11 0/5/1/0.4.16.0.0.6.6 c11t6d6 SP A1 active alive 0 0

Michael Steele_2
Honored Contributor

Re: Disk Array Discovery Script

powermt is an EMC Power Path command. Most of out servers are older, legacy, sometimes scsi. And definitely sans SAN.

This project is service agreement genertated. Other than cstm or ioscan which are inconsistent, I don't know of any other discovery tools.

Thanks though

Anybody got a good cstm script for disk array discovery?
Support Fatherhood - Stop Family Law
Patrick Wallek
Honored Contributor

Re: Disk Array Discovery Script

I would see if any of the machines have any of the arm* commands, like armdsp. If you have a version of Commandview installed, armdsp should work.

You might also see about array* commands, which should be in /opt/hparray/bin. These may be of some help to you.

Good luck.
Michael Steele_2
Honored Contributor

Re: Disk Array Discovery Script

Dear Pat:

I had forgotton about that command set. And on one rp7400 they do list out. But they are non-functional for some reason.

But you also underscore the problem that I'm running into. Consistentcy across a variety of HP disk arrays. HP wasn't big on standardization.

By contrast, on sun servers 'luxadm probe' works across the board for all Sun disk arrays.
Support Fatherhood - Stop Family Law
A. Clay Stephenson
Acclaimed Contributor

Re: Disk Array Discovery Script

A useful command for a number of the legacy arrays is "arraydsp -i". This will return a list of array ID's which can be further displayed via "arraydsp -v array_id".
If it ain't broke, I can fix that.
VK2COT
Honored Contributor
Solution

Re: Disk Array Discovery Script

Hello,

As our colleagues said, there is no single command to do it for you.

As part of my Perl script I check all of the following:

pmgr display -r -v
spmgr display -a -v
autopath display
xpinfo
esscli list diskgroup
irdisplay
showhba
saslist get_info ctrl sasd
evadiscovery -i
armdsp -i
lputil listhbas
rsList2105.sh (for IBM ESS)
esscli list volumeaccess

and more...

Lot of fun :)

VK2COT

Even if you do not want to use my script,
check the commands and the tests I run as
part of any project I deliver for HP-UX
servers at any customer or site:

http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt

I wrote the script because I got sick and tired of going to sites and
not having good documentation before
running new projects. So, I run my script, gather all sorts of things that interest me
and help me not to make mistakes :)
VK2COT - Dusan Baljevic
Michael Steele_2
Honored Contributor

Re: Disk Array Discovery Script

Hey . . . that's excellent!
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: Disk Array Discovery Script

Hey...this is very excellent.
Support Fatherhood - Stop Family Law