Thirumalai kumar wrote:
> Again Thanks Corey,
>
> Now I am able to receive the responses properly. But sometimes I didn't get
> the responses. Same timeout error is in output. Do I need to follow any
> collision detection mechanism.
>
> Also If I replaced the slave address as 0x20 (BMC ipmb address) with the net
> function 0x0a and command 0x10 to fetch the FRU info from the BMC, I am
> getting the same timeout error. Do u have any idea whts the problem with
> this.
>
>       ipmb_addr.addr_type = IPMI_IPMB_ADDR_TYPE;
>       ipmb_addr.channel = 0;
>       ipmb_addr.slave_addr = 0x20; // BMC IPMB address
>       ipmb_addr.lun = 0x00;
>
>       req.addr = (unsigned char*)&ipmb_addr;
>       req.addr_len = sizeof(ipmb_addr);
>       req.msgid = 1;
>       req.msg.netfn = 0x0a;   // storage net function
>       req.msg.cmd = 0x10; //fru info command
>   
There are a bunch of statistics in /proc/ipmi/0; perhaps those will be
informative.

-Corey
> -Thiru
>
> -----Original Message-----
> From: Corey Minyard [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 19, 2006 9:22 PM
> Cc: [email protected]
> Subject: Re: [Openipmi-developer] read IPMB Response
>
> Thirumalai kumar wrote:
>   
>> Thanks Corey.
>> I modified the code as per ur idea. 
>>
>> Send through,
>> ioctl(fd, IPMICTL_SEND_COMMAND, &req);
>>
>> And receving through
>> struct ipmi_recv  recv;
>> struct ipmi_addr  addr1;
>>
>> recv.addr = (BYTE*) &addr1;
>> recv.addr_len = sizeof( addr1 );
>> recv.msg.data = (unsigned char*) &(ipmi_res1.data); recv.msg.data_len 
>> = 4;
>>
>> ioctl(fd, IPMICTL_RECEIVE_MSG, &recv); But now, the ioctl system call 
>> is failing sometimes and in sometime getting the same timeout error.
>> Also here I am using 0x2c command. I guess IANA number is not 
>> required. It is for 2e-2f netfns.
>>   
>>     
> Oops, the identifier is required for 0x2c netfns, it is one byte and is zero
> for PICMG.
>
> Can you get the errno on a failure?  Perhaps you are not initializing a data
> item.
>
> -Corey
>
>
>
>
>  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 proprietary, confidential or privileged information. If you are not 
> the intended recipient, you should not disseminate, distribute or copy this 
> e-mail. Please notify the sender immediately and destroy all copies of this 
> message and any attachments.   WARNING: Computer viruses can be transmitted 
> via email. The recipient should check this email and any attachments for the 
> presence of viruses. The company accepts no liability for any damage caused 
> by any virus transmitted by this email.   www.wipro.com 
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Openipmi-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openipmi-developer
>   


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to