Re: Log repair from a script
From: ljm (me_at_here.there)
Date: 12/14/04
- Next message: Dale Talcott: "Re: Error Message 1540-0274 for defining semaphors"
- Previous message: HOM'R: "SSA Adapter & RAID"
- In reply to: Andreas Schulze: "Re: Log repair from a script"
- Next in thread: Andreas Schulze: "Re: Log repair from a script"
- Reply: Andreas Schulze: "Re: Log repair from a script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 14 Dec 2004 18:40:35 +0100
Andreas Schulze wrote:
> "ljm" <me@here.there> schrieb im Newsbeitrag
> news:3ljcpc.olj.ln@cercamon.home...
>> Hi,
>>
>> We have several older dual power-supply systems running. Usually, when
> power
>> on one of the two fails, we need to do a "log repair" when power comes
> back
>> on. When a single system fails, it's easy to do this via diag.
>>
>> Next weekend, there are some power tests. This means, that a log repair
> must
>> be done twice on +/- 50 systems. Doing this interactively via diag will
>> take a lot of time. However, I could not find a way to do this from the
>> comandline (or via a script). Anybody know how to do this?
>>
>> Also, it would be nice to know the status of the power supply. Once
>> again,
> I
>> could not find a way to get this from the commandline or script. Any
> hints?
>>
>> Thanks in advance,
>>
>> ljm
>>
>
> Hallo ljm,
>
> For running diag by script you could use expect and autoexpect. E.g. I
> usually create the script with autoexpect, work it over by hand if
> necessary and run it with expect. Expect rpm is available from the IBM
> Linux Toolbox site. Works for me like a charm. Be aware that you may need
> to adapt the expect script to different servers / oslevels.
> To check the status of the power supply have a look into /etc/rc.powerfail
> and read the manpage of /usr/sbin/machstat.
>
> HTH,
> Andreas
We tried machstat, but that does not always work. The exitcode should
reflect the state of the powersupply. However, some machines continue to
produce exitcode 0 when one of the powercords is pulled.
I'm currently investigating expect.
Lucky for me, tests are postponed. Thanks for the reaction.
ljm
-- (c) ljm ( xs4all) No part of this copyright message may be reproduced, read or seen, dead or alive or by any means, including but not limited to telepathy without the benevolence of the author.
- Next message: Dale Talcott: "Re: Error Message 1540-0274 for defining semaphors"
- Previous message: HOM'R: "SSA Adapter & RAID"
- In reply to: Andreas Schulze: "Re: Log repair from a script"
- Next in thread: Andreas Schulze: "Re: Log repair from a script"
- Reply: Andreas Schulze: "Re: Log repair from a script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|