<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>http://opensips.com.br/wiki/index.php?action=history&amp;feed=atom&amp;title=Comandos_do_Core_para_MI</id>
	<title>Comandos do Core para MI - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="http://opensips.com.br/wiki/index.php?action=history&amp;feed=atom&amp;title=Comandos_do_Core_para_MI"/>
	<link rel="alternate" type="text/html" href="http://opensips.com.br/wiki/index.php?title=Comandos_do_Core_para_MI&amp;action=history"/>
	<updated>2026-04-14T21:59:18Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://opensips.com.br/wiki/index.php?title=Comandos_do_Core_para_MI&amp;diff=1496&amp;oldid=prev</id>
		<title>Mike: Criou página com 'Funções para MI (management interface) suportados pelo core do '''OpenSIPS'''.   ==arq==  Retorna a lista completa de argumentos usados quando o '''OpenSIPS''' é iniciado. ...'</title>
		<link rel="alternate" type="text/html" href="http://opensips.com.br/wiki/index.php?title=Comandos_do_Core_para_MI&amp;diff=1496&amp;oldid=prev"/>
		<updated>2014-04-24T21:17:25Z</updated>

		<summary type="html">&lt;p&gt;Criou página com &amp;#039;Funções para MI (management interface) suportados pelo core do &amp;#039;&amp;#039;&amp;#039;OpenSIPS&amp;#039;&amp;#039;&amp;#039;.   ==arq==  Retorna a lista completa de argumentos usados quando o &amp;#039;&amp;#039;&amp;#039;OpenSIPS&amp;#039;&amp;#039;&amp;#039; é iniciado. ...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Funções para MI (management interface) suportados pelo core do '''OpenSIPS'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==arq==&lt;br /&gt;
&lt;br /&gt;
Retorna a lista completa de argumentos usados quando o '''OpenSIPS''' é iniciado. Como no UNIX, o primeiro argumento é o nome do executavel.&lt;br /&gt;
&lt;br /&gt;
'''Argumentos''': não\\&lt;br /&gt;
'''Saída''': Várias saidas (nodes), cada node contem um argumento, a saída não possui nome, apenas valores.&lt;br /&gt;
&lt;br /&gt;
Exemplo de uso:&lt;br /&gt;
&lt;br /&gt;
    # opensipsctl fifo arg&lt;br /&gt;
    ./opensips&lt;br /&gt;
    -f&lt;br /&gt;
    /etc/openser/test.cfg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==debug [level]==&lt;br /&gt;
&lt;br /&gt;
Verifica ou define o valor para a variável de debug do core, você pode utilizar para dinamicamente (durante a execução) alterar ou inspecionar o level de debug de seu '''OpenSIPS''' . Se nenhum argumento for passado a função irá exibir o nivel de debug atual.&lt;br /&gt;
&lt;br /&gt;
'''Argumentos''': nivel de debug (-3...4)&lt;br /&gt;
'''Saída''': Nivel de debug (apenas se não for informado um argumento), o valor será retornado como um unico node (unica linha) com o nome &amp;quot;DEBUG&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Exemplo de uso:&lt;br /&gt;
&lt;br /&gt;
    # opensipsctl fifo debug&lt;br /&gt;
    DEBUG:: 4&lt;br /&gt;
    # opensipsctl fifo debug 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==kill==&lt;br /&gt;
&lt;br /&gt;
O comando ao ser executado irá encerrar o processo do &lt;br /&gt;
The command will terminate '''OpenSIPS''' (and internal shutdown).\\&lt;br /&gt;
'''Arguments''': none\\&lt;br /&gt;
'''Output''': none&lt;br /&gt;
&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo kill&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
!!!!list_blacklists&lt;br /&gt;
The command lists all the defined (static or learned) blacklists from '''OpenSIPS'''.\\&lt;br /&gt;
'''Arguments''': none\\&lt;br /&gt;
'''Output''': an MI tree - first level (nodes named &amp;quot;List&amp;quot;) will describe the list (name, owner, flags); Second level (nodes named &amp;quot;Rules) will describe the rules (blacklists) for each list (IP/mask, protocol, port, matching regexp, flags)&lt;br /&gt;
&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo list_blacklists&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
!!!!list_tcp_conns&lt;br /&gt;
The command lists all ongoing TCP/TLS connection from '''OpenSIPS'''.\\&lt;br /&gt;
'''Arguments''': none\\&lt;br /&gt;
'''Output''': an MI tree - one record per connection with the following attributes : ID, state, proto, source, destination, timeout, lifetime&lt;br /&gt;
&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo list_tcp_conns&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
!!!!ps&lt;br /&gt;
The command will list all all '''OpenSIPS''' processes, along with type and description.\\&lt;br /&gt;
'''Arguments''': none\\&lt;br /&gt;
'''Output''': multiple MI nodes (named &amp;quot;Process&amp;quot;) - each node contains process ID (internal), PID (OS), Type and description &lt;br /&gt;
&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo ps&lt;br /&gt;
    Process::  ID=0 PID=16224 Type=attendant&lt;br /&gt;
    Process::  ID=1 PID=16225 Type=SIP receiver udp:192.168.1.2:5060 &lt;br /&gt;
    Process::  ID=2 PID=16226 Type=timer&lt;br /&gt;
    Process::  ID=3 PID=16227 Type=MI FIFO&lt;br /&gt;
    Process::  ID=4 PID=16228 Type=TCP receiver&lt;br /&gt;
    Process::  ID=5 PID=16230 Type=TCP main&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
!!!!pwd&lt;br /&gt;
Prints the working directory of '''OpenSIPS''' instance.\\&lt;br /&gt;
'''Arguments''': none\\&lt;br /&gt;
'''Output''': a single MI node with name &amp;quot;WD&amp;quot; containing the working directory full path.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo pwd&lt;br /&gt;
    WD:: /&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
!!!!uptime&lt;br /&gt;
Prints various time information about '''OpenSIPS''' - when it started to run, for how long it runs.\\&lt;br /&gt;
'''Arguments''': none\\&lt;br /&gt;
'''Output''': three MI nodes: &amp;quot;Now&amp;quot; - current time; &amp;quot;Up since&amp;quot; - start time ; &amp;quot;Up time&amp;quot; - number of seconds since started.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo uptime&lt;br /&gt;
    Now:: Mon Jul 21 17:41:03 2008&lt;br /&gt;
    Up since:: Mon Jul 21 17:36:33 2008&lt;br /&gt;
    Up time:: 270 [sec]&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
!!!!version&lt;br /&gt;
Prints the version string of a running'''OpenSIPS'''.\\&lt;br /&gt;
'''Arguments''': none\\&lt;br /&gt;
'''Output''': one MI node (named &amp;quot;Server&amp;quot;) containing the version string.&lt;br /&gt;
&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo version&lt;br /&gt;
    Server:: OpenSIPS (1.4.0dev14-notls (i386/linux))&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
!!!!which&lt;br /&gt;
Prints all available MI commands from the queried '''OpenSIPS'''instance.\\&lt;br /&gt;
'''Arguments''': none\\&lt;br /&gt;
'''Output''': multiple MI nodes (no name), each node containing (as value) the name of an available MI command. NOTE that the list of available MI commands may differ depending of what modules your '''OpenSIPS''' is using.&lt;br /&gt;
&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo which&lt;br /&gt;
    get_statistics&lt;br /&gt;
    reset_statistics&lt;br /&gt;
    uptime&lt;br /&gt;
    version&lt;br /&gt;
    pwd&lt;br /&gt;
    arg&lt;br /&gt;
    which&lt;br /&gt;
    ps&lt;br /&gt;
    kill&lt;br /&gt;
    debug&lt;br /&gt;
    list_blacklists&lt;br /&gt;
    ul_rm&lt;br /&gt;
    ul_rm_contact&lt;br /&gt;
    ul_dump&lt;br /&gt;
    ul_flush&lt;br /&gt;
    ul_add&lt;br /&gt;
    ul_show_contact&lt;br /&gt;
    nh_enable_ping&lt;br /&gt;
    nh_enable_rtpp&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
!!!!get_statistics&lt;br /&gt;
Prints the statistics (all, group or one) realtime values.\\&lt;br /&gt;
'''Arguments''': input may be &amp;quot;all&amp;quot; - print all available statistics; &amp;quot;group:&amp;quot; - print only statistics from a certain group; &amp;quot;name&amp;quot; - print only this statistic. The '''OpenSIPS''' core defines the following groups: ''core'', ''shmem''; Modules export groups typically named like the module itself.\\&lt;br /&gt;
'''Output''': list of MI nodes (no name) - each MI mode contains the name and value of a single statistic variable.&lt;br /&gt;
&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo get_statistics rcv_requests&lt;br /&gt;
    core:rcv_requests = 35243&lt;br /&gt;
    # opensipsctl fifo get_statistics shmem:      &lt;br /&gt;
    shmem:total_size = 33554432&lt;br /&gt;
    shmem:used_size = 1686952&lt;br /&gt;
    shmem:real_used_size = 1704592&lt;br /&gt;
    shmem:max_used_size = 1704592&lt;br /&gt;
    shmem:free_size = 31849840&lt;br /&gt;
    shmem:fragments = 1&lt;br /&gt;
    # opensipsctl fifo get_statistics all&lt;br /&gt;
    ....&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
!!!!reset_statistics&lt;br /&gt;
Reset (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 &amp;quot;shmem:used_size&amp;quot;).\\&lt;br /&gt;
'''Arguments''': name of the variable to be reset.\\&lt;br /&gt;
'''Output''': none.&lt;br /&gt;
&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo get_statistics received_replies&lt;br /&gt;
    core:received_replies = 14543&lt;br /&gt;
    # opensipsctl fifo reset_statistics received_replies&lt;br /&gt;
    # opensipsctl fifo get_statistics received_replies&lt;br /&gt;
    core:received_replies = 0&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
!!!!cache_store&lt;br /&gt;
This command stores in a cache system a string value.\\&lt;br /&gt;
'''Arguments''': \\&lt;br /&gt;
   - cache system to use - for the cache system implemented by '''OpenSIPS''' module 'localcache' the value of this parameter should be 'local' \\&lt;br /&gt;
   - the label to be associated with this value \\&lt;br /&gt;
   - the string to be stored \\&lt;br /&gt;
'''Output''': none. \\&lt;br /&gt;
&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo cache_store local password_user1 password&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
!!!!cache_fetch&lt;br /&gt;
This command queries for a stored value.\\&lt;br /&gt;
'''Arguments''': \\&lt;br /&gt;
   - cache system to use - for the cache system implemented by '''OpenSIPS''' module 'localcache' the value of this parameter should be 'local' \\&lt;br /&gt;
   - the label associated with the value \\&lt;br /&gt;
'''Output''': MI tree containing the value if a record is found or 'Value not found' string otherwise.\\&lt;br /&gt;
&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo cache_fetch local password_user1&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
!!!!cache_remove&lt;br /&gt;
This command removes a record from the cache system.\\&lt;br /&gt;
'''Arguments''': \\&lt;br /&gt;
   - cache system to use\\&lt;br /&gt;
  - the label associated with the stored value \\&lt;br /&gt;
'''Output''': None.\\&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo cache_remove local password_user1&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
[[#event_subscribe]]&lt;br /&gt;
!!!!event_subscribe&lt;br /&gt;
Subscribes an external application to a certain event.\\&lt;br /&gt;
'''Arguments''': \\&lt;br /&gt;
   - event name\\&lt;br /&gt;
   - external application socket \\&lt;br /&gt;
   - expire time, in seconds - if absent, the subscription is valid only one hour (3600 s)\\&lt;br /&gt;
'''Output''': None.\\&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo event_subscribe E_PIKE_BLOCKED udp:127.0.0.1:8888 1200&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
!!!!events_list&lt;br /&gt;
Lists all the events published through the Event Interface.\\&lt;br /&gt;
'''Arguments''': None. \\&lt;br /&gt;
'''Output''': None.\\&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo events_list&lt;br /&gt;
    Event:: E_CORE_THRESHOLD id=0&lt;br /&gt;
    Event:: E_RTPPROXY_STATUS id=1&lt;br /&gt;
    Event:: E_PIKE_BLOCKED id=2&lt;br /&gt;
&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
!!!!subscribers_list&lt;br /&gt;
Lists information about the subscribers\\&lt;br /&gt;
'''Arguments''': \\&lt;br /&gt;
   - event name\\&lt;br /&gt;
   - external application socket \\&lt;br /&gt;
'''Output''': If no parameter is specified, then the command returns information about all events and their subscribers. If the event is specified, only the external applications subscribed for that event are returned. If the socket is also specified, only one subscriber information is returned.\\&lt;br /&gt;
Examples of usage:&lt;br /&gt;
[@&lt;br /&gt;
    # opensipsctl fifo subscribers_list&lt;br /&gt;
    Event:: E_CORE_THRESHOLD id=0&lt;br /&gt;
    Event:: E_RTPPROXY_STATUS id=1&lt;br /&gt;
	Subscriber::  socket=unix:/tmp/event.sock expire=never&lt;br /&gt;
	Subscriber::  socket=udp:127.0.0.1:8888 expire=1100&lt;br /&gt;
    Event:: E_PIKE_BLOCKED id=2&lt;br /&gt;
	Subscriber::  socket=rabbitmq:guest@127.0.0.1/hello expire=never&lt;br /&gt;
&lt;br /&gt;
    # opensipsctl fifo subscribers_list E_RTPPROXY_STATUS&lt;br /&gt;
    Event:: E_RTPPROXY_STATUS id=1&lt;br /&gt;
	Subscriber::  socket=unix:/tmp/event.sock expire=never&lt;br /&gt;
	Subscriber::  socket=udp:127.0.0.1:8888 expire=1100&lt;br /&gt;
&lt;br /&gt;
    # opensipsctl fifo subscribers_list E_RTPPROXY_STATUS unix:/tmp/event.sock&lt;br /&gt;
    Event:: E_RTPPROXY_STATUS id=1&lt;br /&gt;
	Subscriber::  socket=unix:/tmp/event.sock expire=never&lt;br /&gt;
@]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
(:commentboxchrono:)&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
		
	</entry>
</feed>