[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freeipmi-devel] ipmi-discovery
From: |
Al Chu |
Subject: |
Re: [Freeipmi-devel] ipmi-discovery |
Date: |
Wed, 13 Sep 2006 16:10:15 -0700 |
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 <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.
--
Albert Chu
address@hidden
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory