Hi All,
 
I am forming a IPMB message and sending it through the ioctl system call. The message is sent properly.
the /proc/ stat count is getting incrementing properly. after that i am sending app_response and get message command
to read the response from the receive message queue. but i am not able to read the response.
any one has idea on this, how to read the response.
sample code
 
        ipmb_addr.addr_type = IPMI_IPMB_ADDR_TYPE;
        ipmb_addr.channel = 0;
        ipmb_addr.slave_addr = 0x20; //bmc
        ipmb_addr.lun = 0x02;
        req1.addr = (unsigned char*)&ipmb_addr;
        req1.addr_len = sizeof(ipmb_addr);
        req1.msg.netfn = IPMI_NETFN_APP_RESPONSE;
        req1.msg.cmd = GET_MESSAGE;
        req1.msg.data = "" char*) &(ipmi_res.data);
        req1.msg.data_len = 32;
 
        if ( ioctl(fd, IPMICTL_SEND_COMMAND, &req1) < 0 )
        {
            printf("\n IOCTL GET MSG send ERROR %s ", strerror(errno));
        }
        ioctl(fd, IPMICTL_RECEIVE_MSG, &recv)  
now i am getting time out error. Timely help will be appreciated.
 
Thanks and Regards,
Thirumalai kumar S
 
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

Reply via email to