Re: [Freeipmi-devel] ipmi-discovery

2006-09-13 Thread Al Chu
Hi Vijay,

You're working off quite an old version of ipmi-ping.  What version is
this so I can do a test build?

Also, you might also want to send a Makefile patch, since pthreads are
not compiled in by default.

On Wed, 2006-09-13 at 14:34 -0700, vijay v wrote:
> Confusion :
> do we need a single tool that does ping as well as discovery ?

My opinion is no.  They should be different tools.

> 1) timeout should be implemented for discovery and the select wait
> time should be split accordingly ?
> 2) interval should be between the time between each ping of
> destination
> 3) count as in ipmi-ping.

I would try and model the options, output, behavior, etc. off of fping:

http://www.fping.com/

Of course a number of options, features, etc. won't carry over.  You may
be able to borrow code from fping too??

Al
 
> Thanks,
> Vijay
>  
>  
> 
> Al Chu <[EMAIL PROTECTED]> wrote: 
> Hi Vijay,
> 
> I'll have to defer to A.B. for the final choice of what we do.
> Once
> it's cleaned up and final, perhaps it could just be a separate
> tool in
> FreeIPMI?
> 
> For now, how about posting the beginning src somewhere or just
> send it
> out on the mailing list. That way we can get idea of where the
> tool
> is at.
> 
> Al
> 
> On Wed, 2006-09-13 at 13:27 -0700, vijay v wrote:
> > Hi Al & others,
> > I just finished developing a tool : "ipmidiscover startIP
> endIP"
> > utilizing the existing ipmi-ping.c code in the freeipmi code
> base.
> > 
> > algo:
> > 1. construct ip range .
> > 2. start 2 threads 
> > i) sendthread will do : rv = ipmi_lan_sendto(_sockfd,
> > buffer, len, 0, (struct sockaddr *)& _destaddr, sizeof
> (_destaddr));
> > ii) receivethread will : en = ipmi_lan_recvfrom(_sockfd,
> buffer,
> > IPMI_PING_MAX_PKT_LEN, 0,
> > (struct sockaddr *)&from,
> > &fromlen);
> > both in loop of step-1 ip range.
> > 
> > 3) display the result thats it!!
> > 
> > I needed it quickly so i just wrote it in a day but it works
> fine 
> > It is not yet integrated into the package since its got some
> > TBD should i put the .c file alone somewhere in
> sourceforge or in
> > gnu website please advice ? it can go in parallel with
> existing ipmi-
> > ping.c dir but i dont want to publish it in the main package
> yet since
> > it only does the basic function ... some one can take it and
> code to
> > it so it will qualify for republishing . I could do it
> later
> > following how this thread
> > 
> > Thanks,
> > Vijay
> > 
> > 
> > 
> > Al Chu wrote:
> > Hi Vijay,
> > 
> > I'd be glad to help. I don't quite understand the question
> > though.
> > Could you rephrase?
> > 
> > Al
> > 
> > On Mon, 2006-09-11 at 11:41 -0700, vijay v wrote:
> > > There was a broken thread about discovey option ...
> couldnt
> > figure out
> > > much from discovery.scm too...
> > > 
> > > I want a simple C/C++ application "ipmi-discover startIP
> > endIP" .
> > > currently iam half way through utilizing ipmi-ping code.
> > > 
> > > 
> > > Please advice.
> > > 
> > > Thanks,
> > > Vijay
> > > 
> > > 
> > > ==
> > > Hardwork and Science will solve your problems,
> > > With a little belief in God you can do miracles. 
> > > ==
> > > 
> > > 
> > >
> >
> __
> > > Stay in the know. Pulse on the new Yahoo.com. Check it
> out. 
> > > ___
> > > Freeipmi-devel mailing list
> > > Freeipmi-devel@gnu.org
> > > http://lists.gnu.org/mailman/listinfo/freeipmi-devel
> > -- 
> > Albert Chu
> > [EMAIL PROTECTED]
> > 925-422-5311
> > Computer Scientist
> > High Performance Systems Division
> > Lawrence Livermore National Laboratory
> > 
> > 
> > 
> > 
> > ==
> > Hardwork and Science will solve your problems,
> > With a little belief in God you can do miracles. 
> > ==
> > 
> > 
> >
> ___

Re: [Freeipmi-devel] ipmi-discovery

2006-09-13 Thread vijay v
Hi Al,     This tool will discover all the IPMI devices in the range of IP Addresses specified using startIP and endIP.     I 've attached it.  the file name remains the same that is in the libfreeipmi/src/ipmi-ping.c and it goes exactly there      Confusion :  do we need a single tool that does ping as well as discovery ?     TBD / Fixed better:  ---  1) timeout should be implemented for discovery and the select wait time should be split accordingly ?  2) interval should be between the time between each ping of destination  3) count as in ipmi-ping.     Thanks,  Vijay        Al Chu <[EMAIL PROTECTED]> wrote:   Hi Vijay,I'll have to defer to A.B. for the final choice of what we do. Onceit's cleaned up and final, perhaps it could just be a separate tool inFreeIPMI?For now, how about posting the beginning src somewhere or just send itout on the mailing list. That way we can get idea of where the toolis at.AlOn Wed, 2006-09-13 at 13:27 -0700, vijay v wrote:> Hi Al & others,> I just finished developing a tool : "ipmidiscover startIP endIP"> utilizing the existing ipmi-ping.c code in the freeipmi code base.> > algo:> 1. construct ip range .> 2. start 2 threads > i) sendthread will do : rv = ipmi_lan_sendto(_sockfd,> buffer, len, 0, (struct sockaddr *)& _destaddr, sizeof(_destaddr));> ii) receivethread will : en = ipmi_lan_recvfrom(_sockfd, buffer,> IPMI_PING_MAX_PKT_LEN, 0,> (struct sockaddr
 *)&from,> &fromlen);> both in loop of step-1 ip range.> > 3) display the result thats it!!> > I needed it quickly so i just wrote it in a day but it works fine > It is not yet integrated into the package since its got some> TBD should i put the .c file alone somewhere in sourceforge or in> gnu website please advice ? it can go in parallel with existing ipmi-> ping.c dir but i dont want to publish it in the main package yet since> it only does the basic function ... some one can take it and code to> it so it will qualify for republishing . I could do it later> following how this thread> > Thanks,> Vijay> > > > Al Chu <[EMAIL PROTECTED]>wrote:> Hi Vijay,> > I'd be glad to help. I don't quite understand the question> though.> Could you rephrase?> > Al> >
 On Mon, 2006-09-11 at 11:41 -0700, vijay v wrote:> > There was a broken thread about discovey option ... couldnt> figure out> > much from discovery.scm too...> > > > I want a simple C/C++ application "ipmi-discover startIP> endIP" .> > currently iam half way through utilizing ipmi-ping code.> > > > > > Please advice.> > > > Thanks,> > Vijay> > > > > > ==> > Hardwork and Science will solve your problems,> > With a little belief in God you can do miracles. > > ==> > > > > >> __> > Stay in the know. Pulse on the new Yahoo.com. Check it out. > >
 ___> > Freeipmi-devel mailing list> > Freeipmi-devel@gnu.org> > http://lists.gnu.org/mailman/listinfo/freeipmi-devel> -- > Albert Chu> [EMAIL PROTECTED]> 925-422-5311> Computer Scientist> High Performance Systems Division> Lawrence Livermore National Laboratory> > > > > ==> Hardwork and Science will solve your problems,> With a little belief in God you can do miracles. > ==> > > __> All-new Yahoo! Mail - Fire up a more powerful email and get things> done faster.-- Albert Chu[EMAIL PROTECTED]925-422-5311Computer ScientistHigh Performance Systems DivisionLawrence
 Livermore National Laboratory==Hardwork and Science will solve your problems,With a little belief in God you can do miracles. == 
		Stay in the know. Pulse on the new Yahoo.com.  Check it out. 


ipmi-ping.c
Description: 1109197843-ipmi-ping.c
___
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel


Re: [Freeipmi-devel] ipmi-discovery

2006-09-13 Thread Al Chu
Hi Vijay,

I'll have to defer to A.B. for the final choice of what we do.  Once
it's cleaned up and final, perhaps it could just be a separate tool in
FreeIPMI?

For now, how about posting the beginning src somewhere or just send it
out on the mailing list.That way we can get idea of where the tool
is at.

Al

On Wed, 2006-09-13 at 13:27 -0700, vijay v wrote:
> Hi Al & others,
> I just finished developing a tool : "ipmidiscover startIP endIP"
> utilizing the existing ipmi-ping.c code in the freeipmi code base.
>  
> algo:
> 1. construct ip range .
> 2. start 2 threads 
> i) sendthread will do :   rv = ipmi_lan_sendto(_sockfd,
> buffer, len, 0, (struct sockaddr *)& _destaddr, sizeof(_destaddr));
> ii) receivethread will : en = ipmi_lan_recvfrom(_sockfd, buffer,
> IPMI_PING_MAX_PKT_LEN, 0,
>   (struct sockaddr *)&from,
> &fromlen);
> both in loop of step-1 ip range.
>  
> 3) display the result thats it!!
>  
> I needed it quickly so i just wrote it in a day but it works fine 
> It is not yet integrated into the package since its got some
> TBD should i put the .c file alone somewhere in sourceforge or in
> gnu website please advice ? it can go in parallel with existing ipmi-
> ping.c dir but i dont want to publish it in the main package yet since
> it only does the basic function ... some one can take it and code to
> it so it will qualify for republishing .  I could do it later
> following how this thread
>  
> Thanks,
> Vijay
>  
> 
> 
> Al Chu <[EMAIL PROTECTED]> wrote:
> Hi Vijay,
> 
> I'd be glad to help. I don't quite understand the question
> though.
> Could you rephrase?
> 
> Al
> 
> On Mon, 2006-09-11 at 11:41 -0700, vijay v wrote:
> > There was a broken thread about discovey option ... couldnt
> figure out
> > much from discovery.scm too...
> > 
> > I want a simple C/C++ application "ipmi-discover startIP
> endIP" .
> > currently iam half way through utilizing ipmi-ping code.
> > 
> > 
> > Please advice.
> > 
> > Thanks,
> > Vijay
> > 
> > 
> > ==
> > Hardwork and Science will solve your problems,
> > With a little belief in God you can do miracles. 
> > ==
> > 
> > 
> >
> __
> > Stay in the know. Pulse on the new Yahoo.com. Check it out. 
> > ___
> > Freeipmi-devel mailing list
> > Freeipmi-devel@gnu.org
> > http://lists.gnu.org/mailman/listinfo/freeipmi-devel
> -- 
> Albert Chu
> [EMAIL PROTECTED]
> 925-422-5311
> Computer Scientist
> High Performance Systems Division
> Lawrence Livermore National Laboratory
> 
> 
> 
> 
> ==
> Hardwork and Science will solve your problems,
> With a little belief in God you can do miracles. 
> ==
> 
> 
> __
> All-new Yahoo! Mail - Fire up a more powerful email and get things
> done faster.
-- 
Albert Chu
[EMAIL PROTECTED]
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory



___
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel


Re: [Freeipmi-devel] ipmi-discovery

2006-09-13 Thread vijay v
Hi Al & others,  I just finished developing a tool : "ipmidiscover startIP endIP" utilizing the existing ipmi-ping.c code in the freeipmi code base.     algo:  1. construct ip range .  2. start 2 threads       i) sendthread will do :   rv = ipmi_lan_sendto(_sockfd, buffer, len, 0, (struct sockaddr *)& _destaddr, sizeof(_destaddr));      ii) receivethread will : en = ipmi_lan_recvfrom(_sockfd, buffer, IPMI_PING_MAX_PKT_LEN, 0,  (struct sockaddr *)&from, &fromlen);  both in loop of step-1 ip range.     3) display the result thats it!! 
    I needed it quickly so i just wrote it in a day but it works fine  It is not yet integrated into the package since its got some TBD should i put the .c file alone somewhere in sourceforge or in gnu website please advice ? it can go in parallel with existing ipmi-ping.c dir but i dont want to publish it in the main package yet since it only does the basic function ... some one can take it and code to it so it will qualify for republishing .  I could do it later following how this thread     Thanks,  Vijay     Al Chu <[EMAIL PROTECTED]> wrote:  Hi Vijay,I'd be glad to help. I don't quite understand the question though.Could you rephrase?AlOn Mon, 2006-09-11 at 11:41 -0700, vijay v wrote:>
 There was a broken thread about discovey option ... couldnt figure out> much from discovery.scm too...> > I want a simple C/C++ application "ipmi-discover startIP endIP" .> currently iam half way through utilizing ipmi-ping code.> > > Please advice.> > Thanks,> Vijay> > > ==> Hardwork and Science will solve your problems,> With a little belief in God you can do miracles. > ==> > > __> Stay in the know. Pulse on the new Yahoo.com. Check it out. > ___> Freeipmi-devel mailing list> Freeipmi-devel@gnu.org> http://lists.gnu.org/mailman/listinfo/freeipmi-devel-- Albert
 Chu[EMAIL PROTECTED]925-422-5311Computer ScientistHigh Performance Systems DivisionLawrence Livermore National Laboratory==Hardwork and Science will solve your problems,With a little belief in God you can do miracles. == 
		 All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.___
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel


Re: [Freeipmi-devel] ipmi-discovery

2006-09-13 Thread Al Chu
Hi Vijay,

I'd be glad to help.  I don't quite understand the question though.
Could you rephrase?

Al

On Mon, 2006-09-11 at 11:41 -0700, vijay v wrote:
> There was a broken thread about discovey option ... couldnt figure out
> much from discovery.scm too...
> 
> I want a simple C/C++  application "ipmi-discover startIP endIP" .
> currently iam half way through utilizing ipmi-ping code.
> 
> 
> Please advice.
> 
> Thanks,
> Vijay
> 
> 
> ==
> Hardwork and Science will solve your problems,
> With a little belief in God you can do miracles. 
> ==
> 
> 
> __
> Stay in the know. Pulse on the new Yahoo.com. Check it out. 
> ___
> Freeipmi-devel mailing list
> Freeipmi-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/freeipmi-devel
-- 
Albert Chu
[EMAIL PROTECTED]
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory



___
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel


[Freeipmi-devel] ipmi-discovery

2006-09-11 Thread vijay v
There was a broken thread about discovey option ... couldnt figure out much from discovery.scm too...I want a simple C/C++  application "ipmi-discover startIP endIP" . currently iam half way through utilizing ipmi-ping code.Please advice.Thanks,Vijay==Hardwork and Science will solve your problems,With a little belief in God you can do miracles. == 
		Stay in the know. Pulse on the new Yahoo.com.  Check it out. 
___
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel