Hi,

On Tue, Feb 23, 2010 at 09:13:19PM +0100, Helmut Weymann wrote:
> Hi Dejan,
> 
> many thanks for your comments.
> 
> I have no idea about the programming standards the linux-ha project uses. I 
> am 
> just a simple user who wants to build a cluster.
> 
> So, if you want me to apply necessary changes, Please help me. Which name 
> shall I define where?

Not sure what do you mean here. What I meant is that the
attached file name does not correspond to the plugin name.

> On Tue, 23 Feb 2010 09:51:09 +0100, Dejan wrote
> > Hi,
> >
> > On Mon, Feb 22, 2010 at 11:48:17PM +0100, Helmut Weymann wrote:
> > > Team,
> > >
> > > attached is a tested stontih plugin for IP Power 9258 and compatible
> > > devices. You may want to add it to the product.
> >
> > The attached file is misnamed, which doesn't really vouch for
> > attention to detail. Anyway, here some comments:
> >
> > - the way host names are passed is simply dreadful; if there is
> >   no other way then I'd find that a serious obstacle
> 
> There is a standard html-interface which includes the port names. But, it 
> requires login via post-method. In response to that login the web-interface 
> places a session-cookie and always refers to that cookie whenever a new 
> command is sent. 
> 
> If someone helps me to build the necessary script, I'll do anything necessary 
> to test and finalize that plugin. 
> 
> As a starting point this is the login page:
> 
> eva:~ # wget -q http://powerswitch/ -O -
> <html>                                              
> <head>                                              
> <title>IP9258</title>                               
> <meta HTTP-EQUIV="Pragma" CONTENT="No-cach">        
> <script LANGUAGE="javascript" SRC="/md5.js" TYPE="text/javascript">
> </script>                                                          
> <script LANGUAGE="javascript" TYPE="text/javascript">              
> function calcResponse()                                            
> {                                                                  
>   str = document.login.Username.value +                            
>   document.login.Password.value +                                  
>   document.login.Challenge.value;                                  
>   document.login.Response.value = hex_md5(str);                    
>   document.login.Password.value = "";                              
>   document.login.Challenge.value = "";                             
>   document.login.submit();                                         
> }                                                                  
> </script>                                                          
> </head>                                                            
> <body BGCOLOR="#FFFFFF">                                           
> 
>  
> <form NAME="login" ACTION="/tgi/login.tgi" METHOD="post">
> <table WIDTH="392">                                      
> <tr>                                                     
> <td ALIGN="center"><img SRC="/logo.jpg" WIDTH="153" HEIGHT="93"><br></td></tr>
> <tr>                                                                          
> <td ALIGN="center"><font FACE="Verdana, Arial, Helvetica, sans-serif" 
> COLOR="#0000FF" SIZE="+1"><b>IP9258 Login</b></font></td></tr></table>        
>                                                                               
>                                                 
> <table WIDTH="392" HEIGHT="180" BGCOLOR="#DFDFDF">                            
>                                                            
> <tr>
> <td HEIGHT="50" COLSPAN="2">&#160;Please enter user name and 
> password.</td></tr>
> <tr>
> <td>&#160;User Name:</td>
> <td><input TYPE="text" NAME="Username" VALUE="" SIZE="32" 
> MAXLENGTH="32"></td></tr>
> <tr>
> <td>&#160;Password:</td>
> <td><input TYPE="password" NAME="Password" SIZE="32" MAXLENGTH="32"></td></tr>
> <tr>
> <td></td>
> <td><input ONCLICK="calcResponse(); return false;" TYPE="Submit" 
> NAME="Submitbtn" VALUE="   OK   ">&#160;&#160; <input TYPE="button" 
> NAME="Cancel" VALUE=" Cancel " 
> ONCLICK="document.login.Username.value='';document.login.Password.value=''"></td></tr></table>
> <input TYPE="hidden" NAME="Challenge" VALUE="W4nW/..."> <input TYPE="hidden" 
> NAME="Response" VALUE="">
> <input TYPE="hidden" name="ScreenWidth" value="screen.width">
> 
> </form>
> <script LANGUAGE="javascript" TYPE="text/javascript">
> document.login.Username.focus();
> </script>
> <script language="javascript1.2">
> login.ScreenWidth.value = screen.width;
> </script>
> </body>
> </html>

Perhaps to save the cookie in /var/run/heartbeat/rsctmp/. wget
has some cookies options which should help.

> > - set_port() should log appropriate messages in case it can't
> >   find host/port
> 
> I hope    [ha_log.sh err "error-message"]  is the right command to generate 
> error messages. I have added a few. See attachement.

Yes.

> > BTW, there was an ippower9258 contribution by Johan Verrept quite
> > some time ago, but we never got a final version. That one was
> > based on the IPMI interface. IIRC, that version was almost ready.
> > Johann, can you hear us?
> >
> 
> The contribution from Johan Verrept was for "IP Power 9258 HP". That "HP" 
> makes a big difference for the available commands. In fact I took his 
> proposal 
> and it failed. 

Good to know. The device names seemed similar enough to me to
assume that they can be supported by one plugin.

Cheers,

Dejan
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to