<div dir="ltr"><div>Sasmita, <br></div><div><br></div><div>are you sure you try hard enough before writing to M-L?</div><div><br></div><div>I never used this command, I tried three times, and found how.</div><div><br></div><div>Maybe you don't try enough?<br></div><div><br></div><div>(opensips-cli): mi get_statistics statistics=all</div><div><br></div><div><br></div><div>-giovanni<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 3, 2019 at 10:10 AM Sasmita Panda <<a href="mailto:spanda@3clogic.com" target="_blank">spanda@3clogic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">If I am running this command it giving me below output . <div><br></div><div>(opensips-cli): mi mem_pkg_dump log_level=4 pid=13019<br>"OK"<br></div><div><br></div><div>(opensips-cli): mi mem_shm_dump<br>"OK"<br></div><div><br></div><div>What should I do with this . I need the output like how much memory getting used at that time . </div><div><br></div><div>This is the output through opensipsctl in opensips-1.11 which I was using earlier . </div><div>[root@sip spanda]# /usr/local/sbin/opensipsctl fifo get_statistics shmem:<br>shmem:total_size = 4294967296<br>shmem:used_size = 5113048<br>shmem:real_used_size = 15605976<br>shmem:max_used_size = 735486296<br>shmem:free_size = 4279361320<br>shmem:fragments = 624271</div><div><br></div><div>I need such output . How I will get this ?</div><div><br clear="all"><div><div dir="ltr" class="gmail-m_-8410264602210703066gmail-m_1956542663642975560gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Senior Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 3, 2019 at 1:29 PM Giovanni Maruzzelli <<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>then for each command, if you press "tab" it will give you what arguments are needed (if any)</div><div><br></div><div>(opensips-cli): mi mem_pkg_dump <br>ERROR: command 'mem_pkg_dump' returned: -32602: Invalid params<br></div><div><br></div><div>(opensips-cli): mi mem_pkg_dump (->TAB)<br>log_level= pid= <br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 3, 2019 at 9:54 AM Giovanni Maruzzelli <<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Sasmita,</div><div><br></div><div>execute opensips-cli witouth arguments, then, from inside opensips-cli shell, type "mi"and enter<br></div><div><br></div><div>You will see available command,</div><div><br></div><div>then for each of them, you can see possible arguments</div><div><br></div><div>(opensips-cli): mi<br>ERROR: module 'mi' expects the following commands: get_statistics, list_statistics, reset_statistics, uptime, version, pwd, arg, which, ps, kill, log_level, xlog_level, shm_check, cache_store, cache_fetch, cache_remove, event_subscribe, events_list, subscribers_list, list_tcp_conns, mem_pkg_dump, mem_shm_dump, mem_rpm_dump, reload_routes, help, list_blacklists, t_uac_dlg, t_uac_cancel, t_hash, t_reply, clusterer_reload, clusterer_set_status, clusterer_list, clusterer_list_topology, cluster_send_mi, cluster_broadcast_mi, clusterer_list_cap, clusterer_list_shtags, clusterer_shtag_set_active, ds_set_state, ds_list, ds_reload, domain_reload, domain_dump, dlg_list, dlg_list_ctx, dlg_end_dlg, dlg_db_sync, dlg_restore_db, dlg_cluster_sync, profile_get_size, profile_list_dlgs, profile_get_values, list_all_profiles, profile_end_dlgs, dlg_push_var, dlg_send_sequential, rtpengine_enable, rtpengine_show, rtpengine_reload, teardown, trace, trace_start, trace_stop</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 3, 2019 at 7:17 AM Sasmita Panda <<a href="mailto:spanda@3clogic.com" target="_blank">spanda@3clogic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi All ,<div><br></div><div>Some commands giving proper output but some are giving error . I am not getting any document where its mention how to run these commands . </div><div><br></div><div>opensips-cli -x mi "get_statistics"<br></div><div><b>SQLAlchemy version: 1.3.3<br>ERROR: command 'get_statistics' returned: -32602: Invalid params</b><br></div><div><br></div><div>opensips-cli -x mi "list_statistics"<br><b>SQLAlchemy version: 1.3.3<br>ERROR: command 'list_statistics' returned: -32000: Server error</b><br></div><div><b><br></b></div><div> opensips-cli -x mi "mem_pkg_dump"<br><b>SQLAlchemy version: 1.3.3<br>ERROR: command 'mem_pkg_dump' returned: -32602: Invalid params</b><br></div><div><br></div><div><br></div><div>How I will run these commands ? I need to check the package memory and shared memory getting used while stress testing . Please do help me . </div><div><br></div><div><br clear="all"><div><div dir="ltr" class="gmail-m_-8410264602210703066gmail-m_1956542663642975560gmail-m_7724358186130757147gmail-m_1639237819590470506gmail-m_-7172633802873144211gmail-m_-3410685493137367180gmail-m_4779381604269661509gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Senior Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_-8410264602210703066gmail-m_1956542663642975560gmail-m_7724358186130757147gmail-m_1639237819590470506gmail-m_-7172633802873144211gmail-m_-3410685493137367180gmail_signature">Sincerely,<br><br>Giovanni Maruzzelli<br>OpenTelecom.IT<br>cell: +39 347 266 56 18<br><br></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_-8410264602210703066gmail-m_1956542663642975560gmail-m_7724358186130757147gmail_signature">Sincerely,<br><br>Giovanni Maruzzelli<br>OpenTelecom.IT<br>cell: +39 347 266 56 18<br><br></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_-8410264602210703066gmail_signature">Sincerely,<br><br>Giovanni Maruzzelli<br>OpenTelecom.IT<br>cell: +39 347 266 56 18<br><br></div>