freeipmi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Freeipmi-devel] ipmi-discovery


From: vijay v
Subject: Re: [Freeipmi-devel] ipmi-discovery
Date: Wed, 13 Sep 2006 14:34:36 -0700 (PDT)

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 <address@hidden> 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
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/freeipmi-devel
> --
> Albert Chu
> address@hidden
> 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
address@hidden
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.
==========================================================


Stay in the know. Pulse on the new Yahoo.com. Check it out.

Attachment: ipmi-ping.c
Description: 1109197843-ipmi-ping.c


reply via email to

[Prev in Thread] Current Thread [Next in Thread]