That will work, but it's not a very flexible method.  When you get a
non-error call to handle_domain, the connection will be up.  When
domain_fully_up is called, it will have finished scanning everything and
reported all the entities, sensors, controls, etc.

I'd recommend using ipmi_parse_args2 and ipmi_args_setup_con, like
sample.c does.  This takes string arguments for setting things up, and
you will have to supply them in an argv type of way, but it's a lot more
flexible, especially if you are pulling arguments from a configuration
file.  That way, if someone adds new capabilities and connection types,
you will get them automatically.

-corey

[EMAIL PROTECTED] wrote:
> Hii all,
>  
>    The following way i am establishing the lan  connection to the remote 
> machice, please  tell me 
> my way correct or not.
>
>
>             
>
>    rv = ipmi_ip_setup_con(tip, tport, 1, authcode,  priv_code, (void*) 
> this->m_user, user_length,(void *) this->m_pass, pass_length, os_hnd, NULL, 
> &con);
>                                                                               
>                                                                               
>                                                                               
>                                                                               
>                                                            
>   if (rv)
>   {
>     printf(\"Error:Unable to setting up LAN connection\\n\");
>     return 0;
>   }
>                                                                               
>                                                
>   rv = ipmi_open_domain(\"\", &con, 1, handle_domain, this, domain_fully_up, 
> this, NULL, 0, NULL);
>   if (rv)
>   {
>     printf(\"Error:Unable to open domain\\n\");
>     return 0;
>   }
>
>
> Thanks
> barani
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Openipmi-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openipmi-developer
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to