Thread: RE: [Openipmi-developer] Regarding usage of "ipmicmd" to test the LAN connection established with RM
Brought to you by:
cminyard
From: <mon...@wi...> - 2004-09-30 05:33:00
|
Hello, Can I use "ipmicmd" as an RMCP client ? Can it be used to route message to the RMCP server ? As mentioned in my earlier mail I have established a "LAN" connection between "ipmicmd" and "ipmilan"(RMCP Server).=20 I have used ./ipmicmd lan 10.90.90.91 623 md5 admin "" ""=20 Can the ipmicmd's following command help - <channel> lan <handle> <remote swid> <local swid> <lun> <netfn> <cmd> [data1 [data2 ...]] If yes, What values need to be specified for <channel> <handle> <remote swid> <local swid> ? Can you tell me the values for these fields if a Get Device ID needs to be sent to the BMC over a LAN connection. ( This LAN connection is between RMCP client say ipmicmd and the RMCP server) Thanks, Monali. -----Original Message----- From: Corey Minyard [mailto:mi...@ac...]=20 Sent: Wednesday, September 29, 2004 9:24 PM To: Monali Vishnu Katkar (WT01 - EMBEDDED & PRODUCT ENGINEERING SOLUTIONS) Cc: ope...@li... Subject: Re: [Openipmi-developer] Regarding usage of "ipmicmd" to test the LAN connection established with RMCP server. I'm not sure I understand 100%, but I'll try to answer. The connection to the LAN address works just like the connection to a=20 local BMC. So, to send a get device id to the BMC, you do "f 0 6 1". =20 To send a message to IPMB 0xc0, do "0 c0 0 6 1". All the other things=20 you mention are not really relevant. The "lan" address is a little confusing; that is for routing messages=20 *to* a LAN address (just like the IPMB address is for routing messages=20 to the IPMB). This allows messages to be sent from a LAN connection to=20 system software. -Corey mon...@wi... wrote: > Hi, > This is regarding the RMCP server and "ipmicmd" available with > OpenIPMI. > =20 > Setup at my end has - > =20 > The RMCP server ( ipmilan) running on the server with the BMC and=20 > OpenIPMI driver. My intention is to send any IPMI command to the BMC=20 > over LAN and get the response back. > =20 > The RMCP server uses the following configuration (/etc/ipmi_lan.conf)=20 > in my setup. addr 10.90.90.91 > per_msg_auth on > priv_limit admin > allowed_auths_admin none md5 > user 1 true "" "" admin 1 md5 none > =20 > I have set up a LAN connection using ipmicmd with "lan" option . I=20 > have used the "ipmicmd" to work with the SMI interface . However I=20 > know little about its usage to send data over LAN connection. > =20 > Can the following command option help in testing the "session"=20 > established between ipmicmd and RMCP server ? <channel> lan <handle>=20 > <remote swid> <local swid> <lun> <netfn> > <cmd> [data1 [data2 ...]] > What values need to be specified for <handle> , <remote swid> and =20 > <local swid> ? > =20 > Is there any other simple ways testing the overall functionality of=20 > the RMCP server ? Please comment. > =20 > Regards, > Monali. > =20 > =20 > =20 > =20 |
From: <mon...@wi...> - 2004-10-04 11:58:48
|
Corey , Thanks for the info . I have one more question regarding RMCP server . The Lan Server code in OpenIPMI can also use the socket interface for IPMI. I find that lanserv.c : ipmi_open() call fails on call to socket (PF_IPMI, SOCK_DGRAM, 0)).Has anyone used the the socket interface for IPMI ?=20 On my server set up I am using Montavista Linux Carrier Grade Edition 3.1 , KCS Driver Version 25. How do I make the socket interface to work . Do I need to patch the driver or kernel ?I tried using the AF_INET instead of the PF_IPMI but then it did not work ( i.e I could not get the LAN connection established between "ipmicmd" and RMCP server). Regards, Monali. -----Original Message----- From: Corey Minyard [mailto:mi...@ac...]=20 Sent: Thursday, September 30, 2004 6:24 PM To: Monali Vishnu Katkar (WT01 - EMBEDDED & PRODUCT ENGINEERING SOLUTIONS) Cc: ope...@li... Subject: Re: [Openipmi-developer] Regarding usage of "ipmicmd" to test the LAN connection established with RMCP server. mon...@wi... wrote: >Hello, > >Can I use "ipmicmd" as an RMCP client ? Can it be used to route message >to the RMCP server ? > =20 > >As mentioned in my earlier mail I have established a "LAN" connection=20 >between "ipmicmd" and "ipmilan"(RMCP Server). I have used ./ipmicmd=20 >lan 10.90.90.91 623 md5 admin "" "" > =20 > Yes, this is correct. >Can the ipmicmd's following command help - > <channel> lan <handle> <remote swid> <local swid> <lun> ><netfn> <cmd> [data1 [data2 ...]] >If yes, What values need to be specified for <channel> <handle> <remote >swid> <local swid> ? > =20 > This has nothing to do with an RMCP client. Ignore it, this only has=20 very specialized usage. You want to use the BMC or channel-based messages. >Can you tell me the values for these fields if a Get Device ID needs to >be sent to the BMC over a LAN connection. ( This LAN connection is=20 >between RMCP client say ipmicmd and the RMCP server) > =20 > To the BMC, it is "f 0 6 1". To an IPMB address, it is "0 <IPMB> 0 6 1". -Corey >Thanks, >Monali. > > >-----Original Message----- >From: Corey Minyard [mailto:mi...@ac...] >Sent: Wednesday, September 29, 2004 9:24 PM >To: Monali Vishnu Katkar (WT01 - EMBEDDED & PRODUCT ENGINEERING >SOLUTIONS) >Cc: ope...@li... >Subject: Re: [Openipmi-developer] Regarding usage of "ipmicmd" to test=20 >the LAN connection established with RMCP server. > > >I'm not sure I understand 100%, but I'll try to answer. > >The connection to the LAN address works just like the connection to a=20 >local BMC. So, to send a get device id to the BMC, you do "f 0 6 1".=20 >To send a message to IPMB 0xc0, do "0 c0 0 6 1". All the other things=20 >you mention are not really relevant. > >The "lan" address is a little confusing; that is for routing messages >*to* a LAN address (just like the IPMB address is for routing messages=20 >to the IPMB). This allows messages to be sent from a LAN connection to >system software. > >-Corey > >mon...@wi... wrote: > > =20 > >>Hi, >>This is regarding the RMCP server and "ipmicmd" available with=20 >>OpenIPMI. >> >>Setup at my end has - >> >>The RMCP server ( ipmilan) running on the server with the BMC and=20 >>OpenIPMI driver. My intention is to send any IPMI command to the BMC=20 >>over LAN and get the response back. >> >>The RMCP server uses the following configuration (/etc/ipmi_lan.conf)=20 >>in my setup. addr 10.90.90.91 per_msg_auth on >>priv_limit admin >>allowed_auths_admin none md5 >>user 1 true "" "" admin 1 md5 none >> >>I have set up a LAN connection using ipmicmd with "lan" option . I=20 >>have used the "ipmicmd" to work with the SMI interface . However I=20 >>know little about its usage to send data over LAN connection. >> >>Can the following command option help in testing the "session"=20 >>established between ipmicmd and RMCP server ? <channel> lan <handle>=20 >><remote swid> <local swid> <lun> <netfn> >><cmd> [data1 [data2 ...]] >>What values need to be specified for <handle> , <remote swid> and >><local swid> ? >> >>Is there any other simple ways testing the overall functionality of=20 >>the RMCP server ? Please comment. >> >>Regards, >>Monali. >> >> >> >> >> =20 >> > > > > >Confidentiality Notice > >The information contained in this electronic message and any=20 >attachments to this message are intended for the exclusive use of the=20 >addressee(s) and may contain confidential or privileged information. If >you are not the intended recipient, please notify the sender at Wipro=20 >or Mai...@wi... immediately and destroy all copies of this message and any attachments. > =20 > |
From: Corey M. <mi...@ac...> - 2004-10-04 12:48:42
|
mon...@wi... wrote: >Corey , >Thanks for the info . > >I have one more question regarding RMCP server . > >The Lan Server code in OpenIPMI can also use the socket interface for >IPMI. I find that lanserv.c : ipmi_open() call fails on call to socket >(PF_IPMI, SOCK_DGRAM, 0)).Has anyone used the the socket interface for >IPMI ? > > That shouldn't matter. You don't have the IPMI socket interface installed, but the lanserver should just then switch over and use the IOCTL interface. No big deal. >On my server set up I am using Montavista Linux Carrier Grade Edition >3.1 , KCS Driver Version 25. How do I make the socket interface to work >. Do I need to patch the driver or kernel ?I tried using the AF_INET >instead of the PF_IPMI but then it did not work ( i.e I could not get >the LAN connection established between "ipmicmd" and RMCP server). > > You shouldn't need to do anything. It's probably that something in your configuration does not match someting in the ipmicmd startup. The configuration is unfortunately complicated (mostly due to complexity in IPMI). Also note that the lanserver code is not truely IPMI compliant; it does not implement everything required by the IPMI spec. It's primarily a testing and convenience tool. -Corey |
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 |
From: Corey M. <mi...@ac...> - 2004-09-30 12:53:55
|
mon...@wi... wrote: >Hello, > >Can I use "ipmicmd" as an RMCP client ? Can it be used to route message >to the RMCP server ? > > >As mentioned in my earlier mail I have established a "LAN" connection >between "ipmicmd" and "ipmilan"(RMCP Server). >I have used ./ipmicmd lan 10.90.90.91 623 md5 admin "" "" > > Yes, this is correct. >Can the ipmicmd's following command help - > <channel> lan <handle> <remote swid> <local swid> <lun> ><netfn> <cmd> [data1 [data2 ...]] >If yes, What values need to be specified for <channel> <handle> <remote >swid> <local swid> ? > > This has nothing to do with an RMCP client. Ignore it, this only has very specialized usage. You want to use the BMC or channel-based messages. >Can you tell me the values for these fields if a Get Device ID needs to >be sent to the BMC over a LAN connection. ( This LAN connection is >between RMCP client say ipmicmd and the RMCP server) > > To the BMC, it is "f 0 6 1". To an IPMB address, it is "0 <IPMB> 0 6 1". -Corey >Thanks, >Monali. > > >-----Original Message----- >From: Corey Minyard [mailto:mi...@ac...] >Sent: Wednesday, September 29, 2004 9:24 PM >To: Monali Vishnu Katkar (WT01 - EMBEDDED & PRODUCT ENGINEERING >SOLUTIONS) >Cc: ope...@li... >Subject: Re: [Openipmi-developer] Regarding usage of "ipmicmd" to test >the LAN connection established with RMCP server. > > >I'm not sure I understand 100%, but I'll try to answer. > >The connection to the LAN address works just like the connection to a >local BMC. So, to send a get device id to the BMC, you do "f 0 6 1". >To send a message to IPMB 0xc0, do "0 c0 0 6 1". All the other things >you mention are not really relevant. > >The "lan" address is a little confusing; that is for routing messages >*to* a LAN address (just like the IPMB address is for routing messages >to the IPMB). This allows messages to be sent from a LAN connection to >system software. > >-Corey > >mon...@wi... wrote: > > > >>Hi, >>This is regarding the RMCP server and "ipmicmd" available with >>OpenIPMI. >> >>Setup at my end has - >> >>The RMCP server ( ipmilan) running on the server with the BMC and >>OpenIPMI driver. My intention is to send any IPMI command to the BMC >>over LAN and get the response back. >> >>The RMCP server uses the following configuration (/etc/ipmi_lan.conf) >>in my setup. addr 10.90.90.91 >>per_msg_auth on >>priv_limit admin >>allowed_auths_admin none md5 >>user 1 true "" "" admin 1 md5 none >> >>I have set up a LAN connection using ipmicmd with "lan" option . I >>have used the "ipmicmd" to work with the SMI interface . However I >>know little about its usage to send data over LAN connection. >> >>Can the following command option help in testing the "session" >>established between ipmicmd and RMCP server ? <channel> lan <handle> >><remote swid> <local swid> <lun> <netfn> >><cmd> [data1 [data2 ...]] >>What values need to be specified for <handle> , <remote swid> and >><local swid> ? >> >>Is there any other simple ways testing the overall functionality of >>the RMCP server ? Please comment. >> >>Regards, >>Monali. >> >> >> >> >> >> > > > > >Confidentiality Notice > >The information contained in this electronic message and any attachments to this message are intended >for the exclusive use of the addressee(s) and may contain confidential or privileged information. If >you are not the intended recipient, please notify the sender at Wipro or Mai...@wi... immediately >and destroy all copies of this message and any attachments. > > |