|
Documentation |
Documentation.Interface-CoreMI-2-1 HistoryHide minor edits - Show changes to markup September 27, 2018, at 07:22 PM
by -
Added lines 305-316:
@] shm_checkOnly available with QM_MALLOC + DBG_MALLOC. Fully scans the shared memory pool in order to locate any inconsistencies. If any sign of memory corruption is detected, OpenSIPS will immediately abort. # opensipsctl fifo shm_check March 13, 2015, at 08:50 PM
by -
Added line 144:
list_statistics Deleted line 161:
nh_enable_rtpp Added lines 181-200:
.... @] list_statisticsPrints a list of all available statistics in the current configuration of OpenSIPS Examples of usage: [@ # opensipsctl fifo list_statistics shmem:total_size:: incremental shmem:used_size:: incremental shmem:real_used_size:: incremental shmem:max_used_size:: incremental shmem:free_size:: incremental shmem:fragments:: incremental core:rcv_requests:: incremental core:rcv_replies:: incremental core:fwd_requests:: incremental core:fwd_replies:: incremental core:drop_requests:: incremental August 12, 2014, at 01:23 PM
by -
Changed lines 32-37 from:
debug [level]Gets or sets the value of the debug core variable. You may use it to dynamically (at runtime) change or inspect the debug level of your OpenSIPS. If no argument is passed, the function will fetch the value of the debug level. to:
debug [level] [pid]Get or set the logging level of one or all OpenSIPS processes. If no argument is passed to the debug command, it will print a table with the current logging levels of all processes. If a logging level is given, it will be set for each process. If pid is given, the logging level will be changed only for that process. Arguments:
Changed lines 41-43 from:
DEBUG:: 4 to:
Process:: PID=10670 Debug=2 Type=attendant
Process:: PID=10672 Debug=3 Type=MI FIFO
Process:: PID=10673 Debug=1 Type=SIP receiver udp:192.168.2.133:5060
Added lines 45-47:
New global debug:: 1
# opensipsctl fifo debug 4 10670
New debug:: 4
March 20, 2014, at 08:55 PM
by -
Added lines 1-284:
Documentation -> Manuals -> Manual devel -> Core MI Functions(:title Core MI Functions - 2.1:) (:allVersions Interface-CoreMI 2.1:)
(:toc-float Table of Content:) MI (management interface) functions which are exported by OpenSIPS core. argReturns the full list of arguments used when OpenSIPS was started. As in UNIX, the first argument is the name of executable binary. Example of usage:
# opensipsctl fifo arg
./opensips
-f
/etc/openser/test.cfg
debug [level]Gets or sets the value of the debug core variable. You may use it to dynamically (at runtime) change or inspect the debug level of your OpenSIPS. If no argument is passed, the function will fetch the value of the debug level. Examples of usage:
# opensipsctl fifo debug
DEBUG:: 4
# opensipsctl fifo debug 1
killThe command will terminate OpenSIPS (and internal shutdown). Examples of usage:
# opensipsctl fifo kill
list_blacklistsThe command lists all the defined (static or learned) blacklists from OpenSIPS. Examples of usage:
# opensipsctl fifo list_blacklists
list_tcp_connsThe command lists all ongoing TCP/TLS connection from OpenSIPS. Examples of usage:
# opensipsctl fifo list_tcp_conns
psThe command will list all all OpenSIPS processes, along with type and description. Examples of usage:
# opensipsctl fifo ps
Process:: ID=0 PID=16224 Type=attendant
Process:: ID=1 PID=16225 Type=SIP receiver udp:192.168.1.2:5060
Process:: ID=2 PID=16226 Type=timer
Process:: ID=3 PID=16227 Type=MI FIFO
Process:: ID=4 PID=16228 Type=TCP receiver
Process:: ID=5 PID=16230 Type=TCP main
pwdPrints the working directory of OpenSIPS instance. Examples of usage:
# opensipsctl fifo pwd
WD:: /
uptimePrints various time information about OpenSIPS - when it started to run, for how long it runs. Examples of usage:
# opensipsctl fifo uptime
Now:: Mon Jul 21 17:41:03 2008
Up since:: Mon Jul 21 17:36:33 2008
Up time:: 270 [sec]
versionPrints the version string of a runningOpenSIPS. Examples of usage:
# opensipsctl fifo version
Server:: OpenSIPS (1.4.0dev14-notls (i386/linux))
whichPrints all available MI commands from the queried OpenSIPSinstance. Examples of usage:
# opensipsctl fifo which
get_statistics
reset_statistics
uptime
version
pwd
arg
which
ps
kill
debug
list_blacklists
ul_rm
ul_rm_contact
ul_dump
ul_flush
ul_add
ul_show_contact
nh_enable_ping
nh_enable_rtpp
get_statisticsPrints the statistics (all, group or one) realtime values. Examples of usage:
# opensipsctl fifo get_statistics rcv_requests
core:rcv_requests = 35243
# opensipsctl fifo get_statistics shmem:
shmem:total_size = 33554432
shmem:used_size = 1686952
shmem:real_used_size = 1704592
shmem:max_used_size = 1704592
shmem:free_size = 31849840
shmem:fragments = 1
# opensipsctl fifo get_statistics all
....
reset_statisticsReset (to zero) the value of a statistic variable. Note that not all variables allow reset (depending of the nature of the information they carry - example "shmem:used_size"). Examples of usage:
# opensipsctl fifo get_statistics received_replies
core:received_replies = 14543
# opensipsctl fifo reset_statistics received_replies
# opensipsctl fifo get_statistics received_replies
core:received_replies = 0
cache_storeThis command stores in a cache system a string value.
# opensipsctl fifo cache_store local password_user1 password
cache_fetchThis command queries for a stored value.
# opensipsctl fifo cache_fetch local password_user1
cache_removeThis command removes a record from the cache system.
# opensipsctl fifo cache_remove local password_user1
event_subscribeSubscribes an external application to a certain event.
# opensipsctl fifo event_subscribe E_PIKE_BLOCKED udp:127.0.0.1:8888 1200
events_listLists all the events published through the Event Interface.
# opensipsctl fifo events_list
Event:: E_CORE_THRESHOLD id=0
Event:: E_RTPPROXY_STATUS id=1
Event:: E_PIKE_BLOCKED id=2
subscribers_listLists information about the subscribers
# opensipsctl fifo subscribers_list
Event:: E_CORE_THRESHOLD id=0
Event:: E_RTPPROXY_STATUS id=1
Subscriber:: socket=unix:/tmp/event.sock expire=never
Subscriber:: socket=udp:127.0.0.1:8888 expire=1100
Event:: E_PIKE_BLOCKED id=2
Subscriber:: socket=rabbitmq:guest@127.0.0.1/hello expire=never
# opensipsctl fifo subscribers_list E_RTPPROXY_STATUS
Event:: E_RTPPROXY_STATUS id=1
Subscriber:: socket=unix:/tmp/event.sock expire=never
Subscriber:: socket=udp:127.0.0.1:8888 expire=1100
# opensipsctl fifo subscribers_list E_RTPPROXY_STATUS unix:/tmp/event.sock
Event:: E_RTPPROXY_STATUS id=1
Subscriber:: socket=unix:/tmp/event.sock expire=never
(:commentboxchrono:) |
