RE: [Openipmi-developer] Regarding usage of "ipmicmd" to test the LAN connection established with RM
Brought to you by:
cminyard
From: <mon...@wi...> - 2004-10-04 13:48:54
|
>=20 > >Corey , > >Thanks for the info . > > > >I have one more question regarding RMCP server . > > > >The Lan Server code in OpenIPMI can also use the socket=20 > interface for=20 > >IPMI. I find that lanserv.c : ipmi_open() call fails on call=20 > to socket=20 > >(PF_IPMI, SOCK_DGRAM, 0)).Has anyone used the the socket=20 > interface for=20 > >IPMI ? > > =20 > > > That shouldn't matter. You don't have the IPMI socket interface=20 > installed, but the lanserver should just then switch over and use the=20 > IOCTL interface. No big deal. [Monali] I want to use the socket interface to IPMI. The ioctl interface has worked for me . >=20 > >On my server set up I am using Montavista Linux Carrier=20 > Grade Edition=20 > >3.1 , KCS Driver Version 25. How do I make the socket=20 > interface to work=20 > >. Do I need to patch the driver or kernel ?I tried using the AF_INET=20 > >instead of the PF_IPMI but then it did not work ( i.e I=20 > could not get=20 > >the LAN connection established between "ipmicmd" and RMCP server). > > =20 > > > You shouldn't need to do anything. [Monali] Since the ioctl interface has worked with the configuration I am using for ipmicmd at startup, I suspect missing something when using the socket interface in the underlying driver or kernel code. Can u guide me on this as what it could be ?=20 Also #defines for protocol families in "/usr/include/bits/socket.h" at my setup is - #define PF_MAX 32 As mentioned I have tried changing PF_IPMI to AF_INET also . >=20 > It's probably that something in your configuration does not match=20 > someting in the ipmicmd startup. The configuration is unfortunately=20 > complicated (mostly due to complexity in IPMI). >=20 > Also note that the lanserver code is not truely IPMI=20 > compliant; it does=20 > not implement everything required by the IPMI spec. It's primarily a=20 > testing and convenience tool. >=20 {Monali] Configuration here means the /etc/ipmi_lan.conf file ?=20 > -Corey >=20 |