[OpenSIPS-Users] Parsing lb_list

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Nov 9 20:37:32 CET 2012


Hi Nilanjan,

The LB load info is available only via the MI interface, as it is 
runtime info and not saved or present in DB.

Now, you can get it bulk via lb_list (for all destinations, all 
resources) or you can go under the hood and take them one at the time 
(if interested) using the profile_get_size MI dialog function:
profile_get_size lbXRESOUCE_NAME DESTINATION_URI

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 11/09/2012 05:09 PM, Nilanjan Banerjee wrote:
> Hello,
>
>   Is there a way (some data structure may be) to access the dynamic 
> load balancer status table printed by the lb_list MI FIFO command so 
> that it's easier to parse the individual fields in the records of that 
> table? Or, is it that the only way is to print the table and then 
> parse it as a text file using some text processing script?
>
> Thanks,
> Nil.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121109/693a6f63/attachment.htm>


More information about the Users mailing list