Subject: | |
From: | |
Reply To: | |
Date: | Wed, 15 May 2002 12:41:35 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
It works, (run /opt/hparray/bin/arrayscan )
In a command file called RAIDCHK, run a system without RAID
MANAGER.SYS>raidchk
status: No AutoRAID controllers found
MANAGER.SYS>:
The same command file run on a system with RAIDCHK
:raidchk
2 AutoRAID controllers found
:help raidchk
USER DEFINED COMMAND FILE: RAIDCHK.UTIL.SYS
#
# Find AutoRAID controllers
#
run /opt/hparray/bin/arrayscan > tempio
fgrep "-c Success" < tempio > tempio2
input xcnt < tempio2
setvar controller_cnt !xcnt
if !controller_cnt = 0 then
fgrep "status" < tempio
else
echo !controller_cnt AutoRAID controllers found
endif
--
Michael Anderson
Spring Independent School District
16717 Ella Boulevard
Houston, Texas 77090-4299
office: 281.586.1105
fax: 281.586.1187
-
>>> Bill Cadier <[log in to unmask]> 05/15/02 12:34PM >>>
Tim asks:
> Does anyone have any suggestions how I might programmatically detect
if an
> AutoRAID (12H) was installed on a particular HP3000.
>
> We have multiple HP3000s with different hardware configurations. Right
now
> only one has an AutoRAID 12H. For ease of maintenance we try to keep
all our
> start-up jobs and procedures identical between machines. We try to
have the
> start-up jobs detect the actual conditions of the machine before
starting
> machine specific procedures.
>
> The Array Manager daemon (ARMSRVD) and syslog daemon (SYSLOGD) only
need to
> be running on machines with an AutoRAID. I want to detect from inside
a
> program whether an AutoRAID is installed. Only when an AutoRAID is
detected
> would ARMSRVD and SYSLOGD be started.
>
> One possible item to detect are the device link files for the
AutoRAID. But
> I have not yet been able to figure out what these files are named or
where
> they are located. Does anyone know this? Any other ideas how to detect
an
> AutoRAID?
>
> MPE 6.0 PP2.
>
> Timothy Atwood
> Holtenwood Computing
> http://www.holtenwood.bc.ca/computing/
> for Domtar Vancouver Mill
> (Opinions expressed are mine and do not reflect Domtar,
yada-yada-yada. No
> people real or imagined... No animals were harmed in the typing of
this
> email.)
You could programmatically run /opt/hparray/bin/arrayscan directing
output to
a file and then check the contents of the file for something that looks
like
"ControllerSN: [whatever] PairSN: [whatever] BackPlaneSN: [whatever]
I haven't tried this but it should work.
HTH,
Bill
HP/CSY
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|