Hc_node_memory_info

Команда позволяет просмотреть информацию об используемой памяти на ноде.

Аналог команды в CoCon:

/node/<NODE>/info memory

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/node_memory_info

Код HTTP-ответа:

При выполнении команды HTTP-терминал может ответить следующими сообщениями:

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла c ответом:

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">    
      <xs:complexType name="nodeType">
        <xs:attribute  name="name" type="xs:string" use="required"/>
    </xs:complexType>
	
    <xs:complexType name="memoryOutType">
        <xs:attribute name="name" type="xs:string" use="required"/>
        <xs:attribute name="value" type="xs:integer" use="required"/>
    </xs:complexType>
    
	  <xs:element name="in">
    	  <xs:complexType>
            <xs:all>
                <xs:element name="node" type="nodeType" minOccurs="1" maxOccurs="1"/>
            </xs:all>
		    </xs:complexType>
	  </xs:element>

	<xs:element name="out">
	    <xs:complexType>
	        <xs:sequence>
              <xs:element name="memory"  type="memoryOutType" minOccurs="0" maxOccurs="unbounded"/> 
          </xs:sequence>
      </xs:complexType>
	</xs:element>
</xs:schema>

Пример:

Запрос: http://192.168.1.21:9999/commands/node_memory_info

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_memory_info.xsd">
    <node name="ds1@ecss1" />
</in>

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_memory_info.xsd">
	<memory name="total" value="170015496"/>
	<memory name="processes" value="37687288"/>
	<memory name="processes_used" value="37686688"/>
	<memory name="system" value="132328208"/>
	<memory name="atom" value="1927409"/>
	<memory name="atom_used" value="1899989"/>
	<memory name="binary" value="2214944"/>
	<memory name="code" value="44280639"/>
	<memory name="ets" value="34478336"/>
</out>

Hc_node_application_info

Команда позволяет просмотреть информацию о приложениях (и его модулях), входящих в состав ноды.

Аналог команды в CoCon:

node/<NODE>/info applications

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/hc_node_application_info

Код HTTP-ответа:

При выполнении команды HTTP-терминал может ответить следующими сообщениями:

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла c ответом:

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">      
    <xs:complexType name="nodeType">
        <xs:attribute  name="name" type="xs:string" use="required"/>
        <xs:attribute  name="application" type="xs:string" use="required"/>
    </xs:complexType>
	
    <xs:complexType name="moduleOutType">
        <xs:attribute name="name" type="xs:string" use="required"/>
        <xs:attribute name="vsn" type="xs:string" use="required"/>
        <xs:attribute name="date" type="xs:string" use="required"/>
        <xs:attribute name="commit" type="xs:string" use="required"/>
        <xs:attribute name="author" type="xs:string" use="required"/>
        <xs:attribute name="changes" type="xs:string" use="required"/>
    </xs:complexType>

    <xs:complexType name="applicationOutType">
        <xs:sequence>
            <xs:element name="module" type="moduleOutType" minOccurs="0" maxOccurs="unbounded" />
        </xs:sequence>
        <xs:attribute name="state" type="xs:string" use="required"/>
        <xs:attribute name="name" type="xs:string" use="required"/>
        <xs:attribute name="vsn" type="xs:string" use="required"/>
        <xs:attribute name="crc" type="xs:string" use="required"/>
        <xs:attribute name="description" type="xs:string" use="required"/>
        <xs:attribute name="from" type="xs:string" use="required"/>
    </xs:complexType>

	  <xs:element name="in">
    	  <xs:complexType>
            <xs:all>
                <xs:element name="node" type="nodeType" minOccurs="1" maxOccurs="1"/>
            </xs:all>
		    </xs:complexType>
	  </xs:element>

	<xs:element name="out">
	    <xs:complexType>
          <xs:sequence>
              <xs:element name="application" type="applicationOutType" minOccurs="0" maxOccurs="unbounded" />
          </xs:sequence>
      </xs:complexType>
	</xs:element>
</xs:schema>

Пример:

Запрос: http://192.168.1.21:9999/commands/node_application_info

<?xml version="1.0" encoding="UTF-8"?>
<in
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_application_info.xsd">
    <node application="chronica" name="ds1@ecss1" />
</in>

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_application_info.xsd">
	<application state="true" name="chronica" vsn="3.14.0.160.037902" crc="c765720e3c75aba1af8e14f1cb893851186bfbc7" description="Log Library" from="/usr/lib/ecss/ecss-ds/lib/chronica-3.14.0.160.037902">
		<module name="chronica_app" vsn="[301922112467110895713685515611026976318]" date="2019/11/18 16:22:16" commit="f92f1539ab533a5e9cfa809dd7dcd5af3b9dbefa" author="Vitaliy Ivanov" changes="Mon Sep 9 15:51:24 2019 +0700"/>
		<module name="chronica_error_logger_handler" vsn="[208110506384551064294029479167702068891]" date="2019/11/18 16:22:17" commit="f92f1539ab533a5e9cfa809dd7dcd5af3b9dbefa" author="Vitaliy Ivanov" changes="Mon Sep 9 15:51:24 2019 +0700"/>
		<module name="chronica_n2o_log" vsn="[48290415293448581826704558131935557451]" date="2019/11/18 16:22:17" commit="f92f1539ab533a5e9cfa809dd7dcd5af3b9dbefa" author="Vitaliy Ivanov" changes="Mon Sep 9 15:51:24 2019 +0700"/>
		<module name="chronica_testing" vsn="[22335723895763387112073387528158927795]" date="2019/11/18 16:22:17" commit="f92f1539ab533a5e9cfa809dd7dcd5af3b9dbefa" author="Vitaliy Ivanov" changes="Mon Sep 9 15:51:24 2019 +0700"/>
	</application>
</out>

Hc_node_full_applications_info

Команда позволяет просмотреть информацию обо всех приложениях нод системы.

Аналог команды в CoCon:

/node/nodes-info applications

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/node_full_applications_info

Код HTTP-ответа:

При выполнении команды HTTP-терминал может ответить следующими сообщениями:

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла c ответом:

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">      
    <xs:complexType name="nodeType">
        <xs:attribute  name="name" type="xs:string" use="required"/>
    </xs:complexType>
	
    <xs:complexType name="applicationOutType">
        <xs:attribute name="state" type="xs:string" use="required"/>
        <xs:attribute name="name" type="xs:string" use="required"/>
        <xs:attribute name="vsn" type="xs:string" use="required"/>
        <xs:attribute name="crc" type="xs:string" use="required"/>
        <xs:attribute name="description" type="xs:string" use="required"/>
        <xs:attribute name="from" type="xs:string" use="required"/>
    </xs:complexType>

	  <xs:element name="in">
    	  <xs:complexType>
            <xs:all>
                <xs:element name="node" type="nodeType" minOccurs="1" maxOccurs="1"/>
            </xs:all>
		    </xs:complexType>
	  </xs:element>

	<xs:element name="out">
	    <xs:complexType>
          <xs:sequence>
              <xs:element name="application" type="applicationOutType" minOccurs="0" maxOccurs="unbounded" />  
          </xs:sequence>
      </xs:complexType>
	</xs:element>
</xs:schema>

Пример:

Запрос: http://192.168.1.21:9999/commands/node_full_applications_info

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_full_applications_info.xsd">
    <node name="sip1@ecss1" />
</in>

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_full_applications_info.xsd">
	<application state="true" name="rps_log_agent" vsn="3.14.0.69436.156018" crc="aa4ddafe1947b96080ed8c688c7f18be738cbfbf" description="RPS Log agent" from="/usr/lib/ecss/ecss-pa-sip/lib/rps_log_agent-3.14.0.69436.156018"/>
	<application state="true" name="crypto" vsn="4.4.2" crc="f6c9a3875a33f9936708e2e58b103546f766b095" description="CRYPTO" from="/usr/lib/erlang/lib/crypto-4.4.2"/>
	<application state="true" name="mycelium_ccnt_service" vsn="3.14.0.69436.259585" crc="66d916c1052f02f5cc3b15b9a715128726c7961d" description="AMQP10 cocon service and commands" from="/usr/lib/ecss/ecss-pa-sip/lib/mycelium_ccnt_service-3.14.0.69436.259585"/>
	<application state="true" name="rm_lib" vsn="3.14.0.69436.406445" crc="02ed9c4a666b409c90c29f902ff89d7602bcf111" description="Perfomance Routing Library" from="/usr/lib/ecss/ecss-pa-sip/lib/rm_lib-3.14.0.69436.406445"/>
	<application state="true" name="runtime_tools" vsn="1.13.2" crc="9fe7385499bf63f057ec47fe229682d1c8aefc2d" description="RUNTIME_TOOLS" from="/usr/lib/erlang/lib/runtime_tools-1.13.2"/>
	<application state="true" name="public_key" vsn="1.6.6" crc="a5af343b683bf63e05327dbd7df5d5d79913251f" description="Public key infrastructure" from="/usr/lib/erlang/lib/public_key-1.6.6"/>
	<application state="true" name="pt_lib" vsn="3.14.0.33.179948" crc="1d6f52e93f66524bf52be74ebbabe69c53ad73ec" description="Parse transform library" from="/usr/lib/ecss/ecss-pa-sip/lib/pt_lib-3.14.0.33.179948"/>
	<application state="true" name="meck" vsn="0.8.12" crc="58165be1810a8b9ec2cf10cb194a1631582202cc" description="A mocking framework for Erlang" from="/usr/lib/ecss/ecss-pa-sip/lib/meck-0.8.12"/>
	<application state="true" name="eldap" vsn="1.2.7" crc="50930607b192861e4decd405a87e6dfa02b202f1" description="Ldap api" from="/usr/lib/erlang/lib/eldap-1.2.7"/>
	<application state="true" name="eltex_stdlib" vsn="3.14.0.838.811954" crc="96923555ff98730a49884bab66a58344b854f91d" description="Library with common modules from Eltex" from="/usr/lib/ecss/ecss-pa-sip/lib/eltex_stdlib-3.14.0.838.811954"/>
	<application state="true" name="rps_alarm_agent" vsn="3.14.0.69436.752162" crc="31058463f1c81ad07e141f93d677f3d8a5f5f7c1" description="RPS Alarm agent" from="/usr/lib/ecss/ecss-pa-sip/lib/rps_alarm_agent-3.14.0.69436.752162"/>
	<application state="true" name="ecss_ssh" vsn="3.14.0.69436.002953" crc="ed6411ba4e564bd1b24b8ad83724442b505d220b" description="ECSS SSH terminals sup. lib" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_ssh-3.14.0.69436.002953"/>
	<application state="true" name="eep" vsn="1.0" crc="c2c551b069a89e389abe0757f55d9d769c56dc78" description="Erlang Easy Profiling (dbg:trace* to kcachegrind)" from="/usr/lib/ecss/ecss-pa-sip/lib/eep-1.0"/>
	<application state="true" name="kernel" vsn="6.3.1" crc="8ed7249b2a8c8b3037bafe369e7c3def2da7ad4d" description="ERTS CXC 138 10" from="/usr/lib/erlang/lib/kernel-6.3.1"/>
	<application state="true" name="mnesia" vsn="4.15.6" crc="dc6469a235534b432b846af68b2d816ad59a6f98" description="MNESIA CXC 138 12" from="/usr/lib/erlang/lib/mnesia-4.15.6"/>
	<application state="true" name="restfs_client_lib" vsn="3.14.0.69436.853952" crc="54e556271a3b4a8788cd0c5dba235e73e1417931" description="RestFS client" from="/usr/lib/ecss/ecss-pa-sip/lib/restfs_client_lib-3.14.0.69436.853952"/>
	<application state="true" name="rtopman" vsn="3.14.0.69436.134077" crc="c903072cd3006846357e6ba5c40a53adfe54d79b" description="Resourse TOPology MANagement Library" from="/usr/lib/ecss/ecss-pa-sip/lib/rtopman-3.14.0.69436.134077"/>
	<application state="true" name="ecss_configuration_manager" vsn="3.14.0.69436.027138" crc="4609b5491b059c77eae679b7eddb771176e4400c" description="Universal Configuration Manager for ECSS" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_configuration_manager-3.14.0.69436.027138"/>
	<application state="true" name="ecss_mgmt" vsn="3.14.0.69436.225611" crc="a5e381fc50795fbee4bda07a0ece441db55e7770" description="ECSS Management system" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_mgmt-3.14.0.69436.225611"/>
	<application state="true" name="mysql_driver" vsn="3.14.0.201.658907" crc="fd79b58f189958c54f642bc8ceea66fe5e900619" description="Erlang MySQL driver" from="/usr/lib/ecss/ecss-pa-sip/lib/mysql_driver-3.14.0.201.658907"/>
	<application state="true" name="tring" vsn="3.14.0.69436.820830" crc="b52243b7171d83e22dd0c90a1bb04b98b0af2890" description="Distributed supervising system, based on amqp 0.10 protocol" from="/usr/lib/ecss/ecss-pa-sip/lib/tring-3.14.0.69436.820830"/>
	<application state="true" name="ecss_env" vsn="3.14.0.69436.242509" crc="eeb8206531cca0380378344888f7085ed7c9f689" description="ECSS envermoment support lib" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_env-3.14.0.69436.242509"/>
	<application state="true" name="xmerl" vsn="1.3.20" crc="5b954cf2fcd78b3d3165a1a7656297f364233255" description="XML parser" from="/usr/lib/erlang/lib/xmerl-1.3.20"/>
	<application state="true" name="rm_agent" vsn="3.14.0.69436.728168" crc="4a35c607b0bd04e2121459f14f0b586181e943b6" description="RM Agent - agent for remote access to rm_lib" from="/usr/lib/ecss/ecss-pa-sip/lib/rm_agent-3.14.0.69436.728168"/>
	<application state="true" name="ecss_shell" vsn="3.14.0.69436.451347" crc="86547c6152e984a924c9c27e7496b41f22951604" description="ECSS Shell" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_shell-3.14.0.69436.451347"/>
	<application state="true" name="gen_socket" vsn="0.1" crc="3303d4abcef51ed873695d308672d838eb310b8d" description="generic socket toolkit" from="/usr/lib/ecss/ecss-pa-sip/lib/gen_socket-0.1"/>
	<application state="true" name="ecss_lock_manager_lib" vsn="3.14.0.69436.037637" crc="9a564e0e551527e31dac016dd785148af00881c6" description="Overcluster resource lock manager over AMQP" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_lock_manager_lib-3.14.0.69436.037637"/>
	<application state="true" name="os_mon" vsn="2.4.7" crc="d040120c316144715dae024d47c8c226f1992c83" description="CPO CXC 138 46" from="/usr/lib/erlang/lib/os_mon-2.4.7"/>
	<application state="true" name="xml_common_lib" vsn="3.14.0.69436.053231" crc="eb25a58885118009d15e4b906633178cfaf9dd9c" description="Xml common library" from="/usr/lib/ecss/ecss-pa-sip/lib/xml_common_lib-3.14.0.69436.053231"/>
	<application state="true" name="inets" vsn="7.0.7" crc="167dddddddf3c71e2f6ebfcbebb2c69ca213ca7c" description="INETS CXC 138 49" from="/usr/lib/erlang/lib/inets-7.0.7"/>
	<application state="true" name="lpm_server" vsn="3.14.0.69436.957898" crc="b1ff83470b37f9ebf9e1b8fd84df6a1c66ee0a3a" description="Licence Property Manager" from="/usr/lib/ecss/ecss-pa-sip/lib/lpm_server-3.14.0.69436.957898"/>
	<application state="true" name="obj_data" vsn="3.14.0.69436.549986" crc="ea9f6c606f2dd70716e36e90f8cb2d9df2e1ef15" description="OASys Object Data Manipulations" from="/usr/lib/ecss/ecss-pa-sip/lib/obj_data-3.14.0.69436.549986"/>
	<application state="true" name="lager" vsn="3.4.3-9-g5219ae2" crc="846305929eac5dee6864d6ab7d48f25c903131c1" description="Empty Logging Lager2" from="/usr/lib/ecss/ecss-pa-sip/lib/lager-3.4.3-9-g5219ae2"/>
	<application state="true" name="rtop_agent" vsn="3.14.0.69436.867109" crc="03a0de3dc5ec59a9c6b0c44cef2d5d6c936ee38b" description="RTOP AGENT support lib" from="/usr/lib/ecss/ecss-pa-sip/lib/rtop_agent-3.14.0.69436.867109"/>
	<application state="true" name="ecss_pa_sip_common" vsn="3.14.0.69436.068633" crc="007387da70e8d572e61303be11053803bd1e6bd6" description="ECSS PA_SIP common library" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_pa_sip_common-3.14.0.69436.068633"/>
	<application state="true" name="mycelium_client" vsn="3.14.0.907.657726" crc="7a1faa6d5efc312be87b0cf6c6a9cef5b5b319ef" description="Mycelium AMQP 10 erlang client" from="/usr/lib/ecss/ecss-pa-sip/lib/mycelium_client-3.14.0.907.657726"/>
	<application state="true" name="gen_netlink" vsn="0.3" crc="406f08b56cd4a5ecaec7f218640e886cbe1927b8" description="Netlink socket toolkit" from="/usr/lib/ecss/ecss-pa-sip/lib/gen_netlink-0.3"/>
	<application state="true" name="ecss_cron_lib" vsn="3.14.0.69436.970465" crc="a4c0b5f468f0ada7e0ff722e60059ea0272e6431" description="ECSS cron lib " from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_cron_lib-3.14.0.69436.970465"/>
	<application state="true" name="ion" vsn="3.14.0.179.740603" crc="5cd66c4d371c9a96785d87f77473ca9d9e9e84fc" description="ION pretty printer" from="/usr/lib/ecss/ecss-pa-sip/lib/ion-3.14.0.179.740603"/>
	<application state="true" name="pa_acp_io" vsn="3.14.0.69436.841046" crc="14ec43befe2ab00d377ec7c23f61904f106ac491" description="ACP transport application" from="/usr/lib/ecss/ecss-pa-sip/lib/pa_acp_io-3.14.0.69436.841046"/>
	<application state="true" name="exmpp" vsn="3.14.0.1357.450563" crc="94b3443686cdeb0b9586b582da1485be3520e757" description="XMPP/Jabber protocol oriented XML library" from="/usr/lib/ecss/ecss-pa-sip/lib/exmpp-3.14.0.1357.450563"/>
	<application state="true" name="tools" vsn="3.1.0.1" crc="1a0d4f44bb0376e3ccb4b9e1e6ebb3f6b09702d9" description="DEVTOOLS CXC 138 16" from="/usr/lib/erlang/lib/tools-3.1.0.1"/>
	<application state="true" name="ssw_util_lib" vsn="3.14.0.69436.391226" crc="8293a6e398cef0a3f989f7d80d5cf50a88c122fe" description="Routines for internal SSW usage" from="/usr/lib/ecss/ecss-pa-sip/lib/ssw_util_lib-3.14.0.69436.391226"/>
	<application state="true" name="ecss_system_options_lib" vsn="3.14.0.69436.513460" crc="f2f6f1880aaec67f8f908d6a7f3f23827d4c6419" description="ECSS-10 system options" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_system_options_lib-3.14.0.69436.513460"/>
	<application state="true" name="qsig_coder" vsn="3.14.0.69436.639954" crc="4055ce60887557e96ce4113b7f7696bfa50803e4" description="Realisation of QSIG encoder/decoder" from="/usr/lib/ecss/ecss-pa-sip/lib/qsig_coder-3.14.0.69436.639954"/>
	<application state="true" name="rps_control_agent" vsn="3.14.0.69436.516803" crc="ab7cfa30aeb727e74e62b0bfe52bfb467cafa943" description="RPS Control agent" from="/usr/lib/ecss/ecss-pa-sip/lib/rps_control_agent-3.14.0.69436.516803"/>
	<application state="true" name="ssl" vsn="9.2.3.1" crc="d401ea98d54f58bb523b91db10feb68997a218fa" description="Erlang/OTP SSL application" from="/usr/lib/erlang/lib/ssl-9.2.3.1"/>
	<application state="true" name="mycelium" vsn="3.14.0.430.888444" crc="82bab261d9998c92ba7a1590bdbcb5d6ce3c4df1" description="Mycelium common lib" from="/usr/lib/ecss/ecss-pa-sip/lib/mycelium-3.14.0.430.888444"/>
	<application state="true" name="sip_support" vsn="3.14.0.69436.296054" crc="431ed83a3dbf352b8a1b884e6d73cebedf0238ae" description="Support of SIP RFC extensions" from="/usr/lib/ecss/ecss-pa-sip/lib/sip_support-3.14.0.69436.296054"/>
	<application state="true" name="rps" vsn="3.14.0.69436.621393" crc="59e49dca7dd44eb705f91a17c4e08225ae9f9fba" description="Report Processing System" from="/usr/lib/ecss/ecss-pa-sip/lib/rps-3.14.0.69436.621393"/>
	<application state="true" name="chronica" vsn="3.14.0.160.037902" crc="4fb68b34c65ac74361fb7b581d4cec55640ad170" description="Log Library" from="/usr/lib/ecss/ecss-pa-sip/lib/chronica-3.14.0.160.037902"/>
	<application state="true" name="rtopdds" vsn="3.14.0.69436.980727" crc="16b8ede0a550112f27cfdc7b17a57e5f3c37d836" description="RTOP Domain Directory Service" from="/usr/lib/ecss/ecss-pa-sip/lib/rtopdds-3.14.0.69436.980727"/>
	<application state="true" name="ecss_cpt_server" vsn="3.14.0.69436.191629" crc="9f090499b7abbb05ebadfdfeb0ddbca46c71d1f4" description="Call-process tracer server" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_cpt_server-3.14.0.69436.191629"/>
	<application state="true" name="ecss_cpt_client" vsn="3.14.0.69436.954622" crc="12114e8d1caaea06d5b9da26fcc1f856117c081b" description="Call-process tracer client" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_cpt_client-3.14.0.69436.954622"/>
	<application state="true" name="pt_scripts" vsn="3.14.0.101.282450" crc="b6a75972d54b2594be0982b346660c7b8baf1de4" description="Parse transform scripts library" from="/usr/lib/ecss/ecss-pa-sip/lib/pt_scripts-3.14.0.101.282450"/>
	<application state="true" name="rps_event_agent" vsn="3.14.0.69436.715850" crc="210a9424dd23a0ec7bcb5d321209fccc53dfaa5f" description="RPS Event agent" from="/usr/lib/ecss/ecss-pa-sip/lib/rps_event_agent-3.14.0.69436.715850"/>
	<application state="true" name="ecss_conference_lib" vsn="3.14.0.69436.726085" crc="4cdc80aa372bebc367a7a2427e0e0689e9724816" description="ECSS Conference lib" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_conference_lib-3.14.0.69436.726085"/>
	<application state="true" name="statistics_lib" vsn="3.14.0.69436.714734" crc="0e849f0a6bb0c98e149e51b71506b58b35d04dad" description="Q752 Statistics lib" from="/usr/lib/ecss/ecss-pa-sip/lib/statistics_lib-3.14.0.69436.714734"/>
	<application state="true" name="lpm_common" vsn="3.14.0.69436.871866" crc="08b258f3d70da9472a7756b7760c86b0e2be346f" description="LPM common functions" from="/usr/lib/ecss/ecss-pa-sip/lib/lpm_common-3.14.0.69436.871866"/>
	<application state="true" name="log_server_ccn_service" vsn="3.14.0.69436.734967" crc="80b5d416de1155fb279810145548d0a614ddf573" description="Log Server CCN Service" from="/usr/lib/ecss/ecss-pa-sip/lib/log_server_ccn_service-3.14.0.69436.734967"/>
	<application state="true" name="acp_lib" vsn="3.14.0.69436.833451" crc="4bf756bdc44ddc8c416767c7f96d755223ae3244" description="ACP library" from="/usr/lib/ecss/ecss-pa-sip/lib/acp_lib-3.14.0.69436.833451"/>
	<application state="true" name="ecss_starter" vsn="3.14.0.69436.401830" crc="0a75abf5e68586a415aa8f412ecd09c6245f503f" description="ECSS starter" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_starter-3.14.0.69436.401830"/>
	<application state="true" name="syntax_tools" vsn="2.1.7" crc="e04c6deada607b0ff95f5bc369fcb954aa0d8141" description="Syntax tools" from="/usr/lib/erlang/lib/syntax_tools-2.1.7"/>
	<application state="true" name="rps_statistics_agent" vsn="3.14.0.69436.936329" crc="5a0e22e2791cf11610045bda5af08ad9c37a6aa3" description="RPS Statistics agents" from="/usr/lib/ecss/ecss-pa-sip/lib/rps_statistics_agent-3.14.0.69436.936329"/>
	<application state="true" name="sip_ssw_intercom" vsn="3.14.0.69436.911741" crc="73b2102e2db758d843f465a18d4a733ad6942a48" description="SIP(I/T) protocol adapter of ECSS-10" from="/usr/lib/ecss/ecss-pa-sip/lib/sip_ssw_intercom-3.14.0.69436.911741"/>
	<application state="true" name="notification_client" vsn="3.14.0.69436.584269" crc="14fca9d02a2d8ad037d78b33444b86143f895dc4" description="Client notification" from="/usr/lib/ecss/ecss-pa-sip/lib/notification_client-3.14.0.69436.584269"/>
	<application state="true" name="sorm_common_lib" vsn="3.14.0.69436.338138" crc="231738cd52a338b501fd47e3b7fc69e4ad44bc9e" description="SORM common library" from="/usr/lib/ecss/ecss-pa-sip/lib/sorm_common_lib-3.14.0.69436.338138"/>
	<application state="true" name="ecss_adapter_utils" vsn="3.14.0.69436.702013" crc="86e249cd796b6c5f2e4794cd08abe5c3840ffa60" description="Utilites for protocol adapters" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_adapter_utils-3.14.0.69436.702013"/>
	<application state="true" name="oasys_ccn_service" vsn="3.14.0.69436.956065" crc="5d9cc3c6fa3b43c4e4e261a2a4c790dc70fbea2b" description="OASys Cocon Service" from="/usr/lib/ecss/ecss-pa-sip/lib/oasys_ccn_service-3.14.0.69436.956065"/>
	<application state="true" name="timer_container_lib" vsn="3.14.0.153.867866" crc="7967079842eeb7d0bc15f26abc1c4dcde9510b3e" description="Timer Container library" from="/usr/lib/ecss/ecss-pa-sip/lib/timer_container_lib-3.14.0.153.867866"/>
	<application state="true" name="stdlib" vsn="3.8.2" crc="c3ef8ecae59da05055d8122945c4c9b2acef4a46" description="ERTS CXC 138 10" from="/usr/lib/erlang/lib/stdlib-3.8.2"/>
	<application state="true" name="ss_xml_parser" vsn="3.14.0.69436.989483" crc="184b3692f7e4c8dedf05316fc583943e1b784dcf" description="Xml parser for SS definitions." from="/usr/lib/ecss/ecss-pa-sip/lib/ss_xml_parser-3.14.0.69436.989483"/>
	<application state="true" name="recon" vsn="2.3.6" crc="e284571289227922e47d1db12ef9112dcdf1fc58" description="Diagnostic tools for production use" from="/usr/lib/ecss/ecss-pa-sip/lib/recon-2.3.6"/>
	<application state="true" name="sasl" vsn="3.3" crc="d92bd4401c950591932f347cb66f48731df3bcb7" description="SASL CXC 138 11" from="/usr/lib/erlang/lib/sasl-3.3"/>
	<application state="true" name="cmn_tools" vsn="3.14.0.69436.070567" crc="8f1d998def0fe5c0775e06d76711b3be06e835d7" description="Common usefull tools" from="/usr/lib/ecss/ecss-pa-sip/lib/cmn_tools-3.14.0.69436.070567"/>
	<application state="true" name="esqlite" vsn="0.4.0" crc="6c94565e9a926606150cf6522aceb0c34b14ae77" description="sqlite nif interface" from="/usr/lib/ecss/ecss-pa-sip/lib/esqlite-0.4.0"/>
	<application state="true" name="hep" vsn="0.1.0" crc="b1bee5e0ae0f2c1adfcb0f12b02ed3cddbc9adcc" description="hep - Homer Encapsulation Protocol" from="/usr/lib/ecss/ecss-pa-sip/lib/hep-0.1.0"/>
	<application state="true" name="jsx" vsn="1.4.5" crc="6e27d6a517e1f81b72ea7952683d546bf551398e" description="a streaming, evented json parsing toolkit" from="/usr/lib/ecss/ecss-pa-sip/lib/jsx-1.4.5"/>
	<application state="true" name="ecss_domain_options_lib" vsn="3.14.0.69436.666379" crc="d5cb73fe4ffc177fb451f94eda8285cf9a404ac4" description="ECSS-10 domain options." from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_domain_options_lib-3.14.0.69436.666379"/>
	<application state="true" name="ecss_mlpp_options_lib" vsn="3.14.0.69436.397761" crc="6c1577da30f47cd03114ba0b8f328786bfddf688" description="ECSS-10 MLPP options" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_mlpp_options_lib-3.14.0.69436.397761"/>
	<application state="true" name="rps_common_lib" vsn="3.14.0.69436.588032" crc="6c8e16548082cc043029671eb9663cb2f246f726" description="RPS Common library" from="/usr/lib/ecss/ecss-pa-sip/lib/rps_common_lib-3.14.0.69436.588032"/>
	<application state="true" name="ssw_ranges" vsn="3.14.0.69436.905144" crc="4b210d0ec8975ffbb7fb9d302ae3484b401a8c77" description="SSW range routines" from="/usr/lib/ecss/ecss-pa-sip/lib/ssw_ranges-3.14.0.69436.905144"/>
	<application state="true" name="compiler" vsn="7.3.2" crc="2f072ba0f52e4d009cb7c8eb955a222bfc241fa5" description="ERTS CXC 138 10" from="/usr/lib/erlang/lib/compiler-7.3.2"/>
	<application state="true" name="eradius" vsn="3.14.0.50.736583" crc="c6ec45d849b042580a94181009a682772eb1c65b" description="RADIUS authentication/accounting library" from="/usr/lib/ecss/ecss-pa-sip/lib/eradius-3.14.0.50.736583"/>
	<application state="true" name="ssh" vsn="4.7.6" crc="1eefb3f7ce7ffffb428e6caaa7cd9b47802997a8" description="SSH-2 for Erlang/OTP" from="/usr/lib/erlang/lib/ssh-4.7.6"/>
	<application state="true" name="ecss_tring" vsn="3.14.0.69436.889696" crc="19f5fd4eaee736ad9aaa4b762639daf6f116023a" description="ECSS wrap for distributed supervising system "Tring"" from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_tring-3.14.0.69436.889696"/>
	<application state="true" name="cocon" vsn="3.14.0.69436.732187" crc="fb5342892e40b7c16eab70fdec6fa729eae6d203" description="COmmands and CONsoles" from="/usr/lib/ecss/ecss-pa-sip/lib/cocon-3.14.0.69436.732187"/>
	<application state="true" name="qsig_asn_lib" vsn="3.14.0.69436.318655" crc="882f3405ea1903498f00e8868b01caa168825e77" description="QSIG asn1 Lib" from="/usr/lib/ecss/ecss-pa-sip/lib/qsig_asn_lib-3.14.0.69436.318655"/>
	<application state="true" name="isup_encoder" vsn="3.14.0.69436.487797" crc="a7bfaa9c639917bc9cb1215bae84398049ba367e" description="Realisation of ISUP encoder" from="/usr/lib/ecss/ecss-pa-sip/lib/isup_encoder-3.14.0.69436.487797"/>
	<application state="true" name="asn1" vsn="5.0.8" crc="0beb75f03ca05225fe727725c02f2525103f50e9" description="The Erlang ASN1 compiler version 5.0.8" from="/usr/lib/erlang/lib/asn1-5.0.8"/>
	<application state="true" name="ecss_cpt_lib" vsn="3.14.0.69436.141004" crc="b7921c81d9c90312fecce0c45eb87702cad7be20" description="Call-process tracer library." from="/usr/lib/ecss/ecss-pa-sip/lib/ecss_cpt_lib-3.14.0.69436.141004"/>
	<application state="true" name="rtopdds_ccn_service" vsn="3.14.0.69436.315690" crc="e1343510acd497731b07c47d5d764f71b2760996" description="RTOP DDS COCON Service" from="/usr/lib/ecss/ecss-pa-sip/lib/rtopdds_ccn_service-3.14.0.69436.315690"/>
	<application state="true" name="rps_agent" vsn="3.14.0.69436.995766" crc="fe2d46bc222d1a6b9ba8a0baad45f24ec057c3ad" description="COCON Service Report processing system" from="/usr/lib/ecss/ecss-pa-sip/lib/rps_agent-3.14.0.69436.995766"/>
	<application state="true" name="acpadapter" vsn="3.14.0.69436.175297" crc="d63ec7329d86ac0dcd139b9904677babc5311e45" description="SIP(T) protocol adapter" from="/usr/lib/ecss/ecss-pa-sip/lib/acpadapter-3.14.0.69436.175297"/>
	<application state="true" name="ssw_helper_lib" vsn="3.14.0.69436.243112" crc="89f1d51e48c350d05dfba895b767041742dc206e" description="Routines for internal SSW usage" from="/usr/lib/ecss/ecss-pa-sip/lib/ssw_helper_lib-3.14.0.69436.243112"/>
	<application state="true" name="oasys" vsn="3.14.0.69436.003342" crc="9dbd723e4bc6cbc5f58461da72047595eb3cef45" description="OASys Core App" from="/usr/lib/ecss/ecss-pa-sip/lib/oasys-3.14.0.69436.003342"/>
	<application state="true" name="necron" vsn="3.14.0.205.647555" crc="2464d1f04d7ab9887a9c282c3331b4a4c75c6e51" description="Scheduler of tasks (cron like)" from="/usr/lib/ecss/ecss-pa-sip/lib/necron-3.14.0.205.647555"/>
	<application state="true" name="sdp_lib" vsn="3.14.0.69436.920519" crc="70a2f9f777ab994c27d7b2e308b0d75cbd61f882" description="erlang library for sdp processing" from="/usr/lib/ecss/ecss-pa-sip/lib/sdp_lib-3.14.0.69436.920519"/>
</out>

Hc_node_releases_info

Команда возвращает информацию о релизах ноды.

Аналог команды в CoCon:

node/<NODE>/info releases

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/node_releases_info

Код HTTP-ответа:

При выполнении команды HTTP-терминал может ответить следующими сообщениями:

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла запроса/ответа:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="nodeType">
        <xs:attribute name="name" type="xs:string" use="required"/>
    </xs:complexType>

    <xs:complexType name="releaseType">
        <xs:attribute name="name" type="xs:string" use="required"/>
        <xs:attribute name="version" type="xs:string" use="required"/>
        <xs:attribute name="build_crc" type="xs:string" use="required"/>
        <xs:attribute name="release_crc" type="xs:string" use="required"/>
    </xs:complexType>
    
    <xs:element name="in">
        <xs:complexType>
            <xs:all>
                <xs:element name="node" type="nodeType" minOccurs="0" maxOccurs="1"/>
            </xs:all>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="out">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="release" type="releaseType" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>

Пример 1:

Запрос: http://192.168.1.21:9999/commands/node_releases_info

<?xml version="1.0" encoding="UTF-8" ?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_releases_info.xsd">
    <node name="core1@ecss1" />
</in>

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_releases_info.xsd">
	<release name="ecss-core" node="core1@ecss1" version="3.14.3.46" build_crc="8bedecd5fd182889c4eac61ac1056521e91bd95c" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
</out>

Пример 2:

Запрос: http://192.168.1.21:9999/commands/node_releases_info

<?xml version="1.0" encoding="UTF-8" ?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_releases_info.xsd">
</in>

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_releases_info.xsd">
	<release name="ecss-pa-sip" node="sip1@ecss2" version="3.14.3.46" build_crc="e09ee5323977d01ed938b4ca9c4d82956649bbc1" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
	<release name="ecss-pa-sip" node="sip1@ecss1" version="3.14.3.46" build_crc="d55af0e11cf86def6feb40430322be936b6b9f0d" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
	<release name="ecss-mycelium" node="mycelium1@ecss2" version="3.14.3.46" build_crc="49b86548d4980be79746cd68c0bafe56ddb93983" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
	<release name="ecss-mycelium" node="mycelium1@ecss1" version="3.14.3.46" build_crc="0ef8575416c84588e1374f1d159566a2b178d003" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
	<release name="ecss-pa-megaco" node="megaco1@ecss2" version="3.14.3.46" build_crc="0b8d950feae0bf7f2e672fbf604c767d7752e259" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
	<release name="ecss-pa-megaco" node="megaco1@ecss1" version="3.14.3.46" build_crc="d215a5dca22f98b366ffe0d4900af23c20f9e36c" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
	<release name="ecss-mediator" node="md1@ecss2" version="3.14.3.46" build_crc="99828fc7aaa2dd6d0787f26551bbae44ddc3c0d2" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
	<release name="ecss-mediator" node="md1@ecss1" version="3.14.3.46" build_crc="048e0770a56179f77eca793d0aeedcc697f9f299" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
	<release name="ecss-ds" node="ds1@ecss2" version="3.14.3.46" build_crc="68de8e2b07129080575cb4ebfaa0fdacb20487be" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
	<release name="ecss-ds" node="ds1@ecss1" version="3.14.3.46" build_crc="834aeca5527231d1846193cee33556f92d002736" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
	<release name="ecss-core" node="core1@ecss2" version="3.14.3.46" build_crc="bac51879afd34104dafa5f3e35bc1b1553ddf4eb" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
	<release name="ecss-core" node="core1@ecss1" version="3.14.3.46" build_crc="8bedecd5fd182889c4eac61ac1056521e91bd95c" release_crc="da39a3ee5e6b4b0d3255bfef95601890afd80709"/>
</out>

Hc_node_statistics_info

Команда позволяет вывести статистику работы ноды.

Аналог команды в CoCon:

/node/<NODE>/info statistics

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/hc_node_statistics_info

Код HTTP-ответа:

При выполнении команды HTTP-терминал может ответить следующими сообщениями:

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла c ответом:

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="nodeType">
        <xs:attribute  name="name" type="xs:string" use="required"/>
    </xs:complexType>
	
    <xs:complexType name="ioType">
        <xs:attribute  name="input" type="xs:integer" use="required"/>
        <xs:attribute  name="output" type="xs:integer" use="required"/>
    </xs:complexType>
    
    <xs:complexType name="garbageType">
        <xs:attribute  name="times" type="xs:integer" use="required"/>
        <xs:attribute  name="words" type="xs:integer" use="required"/>
    </xs:complexType>
    
    <xs:complexType name="valueType">
        <xs:attribute  name="value" type="xs:integer" use="required"/>
    </xs:complexType>
	
    <xs:complexType name="statisticOutType">
            <xs:all>
                <xs:element name="context_switches" type="valueType" />
                <xs:element name="reductions" type="valueType" />
                <xs:element name="garbage_collection" type="garbageType" />
                <xs:element name="io" type="ioType"/>
                <xs:element name="run_queue" type="valueType" />
                <xs:element name="runtime" type="valueType" />
                <xs:element name="wall_clock" type="valueType" />
            </xs:all>
    </xs:complexType>
    
	  <xs:element name="in">
    	  <xs:complexType>
            <xs:all>
                <xs:element name="node" type="nodeType" minOccurs="1" maxOccurs="1"/>
            </xs:all>
		    </xs:complexType>
	  </xs:element>

	<xs:element name="out">
	    <xs:complexType>
	        <xs:sequence>
              <xs:element name="statistics"  type="statisticOutType" minOccurs="0" maxOccurs="unbounded"/> 
          </xs:sequence>
      </xs:complexType>
	</xs:element>
</xs:schema>

Пример:

Запрос: http://192.168.1.21:9999/commands/node_statistics_info

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_statistics_info.xsd">
    <node name="core1@ecss1" />
</in>

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_statistics_info.xsd">
	<statistics>
		<context_switches value="5542872"/>
		<reductions value="2484117445"/>
		<garbage_collection times="878418" words="3687623665"/>
		<io input="41106930" output="128980044"/>
		<run_queue value="1"/>
		<runtime value="284645"/>
		<wall_clock value="13292730"/>
	</statistics>
</out>

Hc_node_system_info

Команда позволяет вывести системную статистику работы ноды.

Аналог команды в CoCon:

node/<NODE>/info system

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/hc_node_system_info

Код HTTP-ответа:

При выполнении команды HTTP-терминал может ответить следующими сообщениями:

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла c ответом:

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:include schemaLocation="error.xsd" />

    <xs:complexType name="nodeType">
        <xs:attribute name="name" type="xs:string" use="required"/>
    </xs:complexType>

    <xs:complexType name="integerType">
        <xs:attribute name="value" type="xs:integer" use="required"/>
    </xs:complexType>

    <xs:complexType name="booleanType">
        <xs:attribute name="value" type="xs:boolean" use="required"/>
    </xs:complexType>

    <xs:complexType name="stringType">
        <xs:attribute name="value" type="xs:string" use="required"/>
    </xs:complexType>

    <xs:complexType name="total_usedType">
        <xs:attribute name="total" type="xs:integer" use="required"/>
        <xs:attribute name="used" type="xs:integer" use="optional"/>
    </xs:complexType>

    <xs:complexType name="allocated_areasType" >
        <xs:sequence>
          <xs:element name="sys_misc" type="total_usedType" />
          <xs:element name="static" type="total_usedType" />
          <xs:element name="atom_space" type="total_usedType" />
          <xs:element name="atom_table" type="total_usedType" />
          <xs:element name="module_table" type="total_usedType" />
          <xs:element name="export_table" type="total_usedType" />
          <xs:element name="export_list" type="total_usedType" />
          <xs:element name="register_table" type="total_usedType" />
          <xs:element name="fun_table" type="total_usedType" />
          <xs:element name="module_refs" type="total_usedType" />
          <xs:element name="loaded_code" type="total_usedType" />
          <xs:element name="dist_table" type="total_usedType" />
          <xs:element name="node_table" type="total_usedType" />
          <xs:element name="bits_bufs_size" type="total_usedType" />
          <xs:element name="bif_timer" type="total_usedType" />
          <xs:element name="link_lh" type="total_usedType" />
          <xs:element name="process_table" type="total_usedType" />
          <xs:element name="port_table" type="total_usedType" />
          <xs:element name="ets_misc" type="total_usedType" />
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="check_ioListType">
        <xs:sequence>
            <xs:element name="check_io" type="check_ioType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="check_ioType">
        <xs:sequence>
            <xs:element name="name" type="stringType" />
            <xs:element name="primary" type="stringType" />
            <xs:element name="fallback" type="stringType" />
            <xs:element name="kernel_poll" type="stringType" />
            <xs:element name="memory_size" type="integerType" />
            <xs:element name="total_poll_set_size" type="integerType" />
            <xs:element name="fallback_poll_set_size" type="integerType" />
            <xs:element name="lazy_updates" type="booleanType" />
            <xs:element name="pending_updates" type="integerType" />
            <xs:element name="batch_updates" type="booleanType" />
            <xs:element name="concurrent_updates" type="booleanType" />
            <xs:element name="max_fds" type="integerType" />
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="garbage_collectionType">
        <xs:attribute name="max_heap_size" type="xs:integer" use="optional"/>
        <xs:attribute name="min_bin_vheap_size" type="xs:integer" use="optional"/>
        <xs:attribute name="min_heap_size" type="xs:integer" use="optional"/>
        <xs:attribute name="fullsweep_after" type="xs:integer" use="optional"/>
    </xs:complexType>

    <xs:complexType name="systemOutType">
            <xs:all>
                <xs:element name="allocated_areas" type="allocated_areasType" />
                <xs:element name="c_compiler_used" type="stringType" />
                <xs:element name="check_ios" type="check_ioListType" />
                <xs:element name="compat_rel" type="integerType"/>
                <xs:element name="cpu_topology" type="stringType" />
                <xs:element name="creation" type="integerType" />
                <xs:element name="debug_compiled" type="booleanType" />
                <xs:element name="driver_version" type="stringType" />
                <xs:element name="elib_malloc" type="booleanType" />
                <xs:element name="fullsweep_after" type="integerType" />
                <xs:element name="garbage_collection" type="garbage_collectionType" />
                <xs:element name="heap_type" type="stringType" />
                <xs:element name="kernel_poll" type="booleanType" />
                <xs:element name="logical_processors" type="integerType" />
                <xs:element name="machine" type="stringType" />
                <xs:element name="min_heap_size" type="integerType" />
                <xs:element name="min_bin_vheap_size" type="integerType" />
                <xs:element name="modified_timing_level" type="stringType" />
                <xs:element name="multi_scheduling" type="stringType" />
                <xs:element name="multi_scheduling_blockers" type="stringType" />
                <xs:element name="otp_release" type="stringType" />
                <xs:element name="process_count" type="integerType" />
                <xs:element name="process_limit" type="integerType" />
                <xs:element name="scheduler_bind_type" type="stringType" />
                <xs:element name="scheduler_bindings" type="stringType" />
                <xs:element name="scheduler_id" type="integerType" />
                <xs:element name="schedulers" type="integerType" />
                <xs:element name="schedulers_online" type="integerType" />
                <xs:element name="smp_support" type="booleanType" />
                <xs:element name="system_version" type="stringType" />
                <xs:element name="system_architecture" type="stringType" />
                <xs:element name="threads" type="booleanType" />
                <xs:element name="thread_pool_size" type="integerType" />
                <xs:element name="trace_control_word" type="integerType" />
                <xs:element name="version" type="stringType" />
                <xs:element name="wordsize" type="integerType" />
                <xs:element name="ets_limit" type="integerType" minOccurs="0" />
            </xs:all>
    </xs:complexType>

    <xs:element name="in">
        <xs:complexType>
            <xs:all>
                <xs:element name="node" type="nodeType" minOccurs="1" maxOccurs="1"/>
            </xs:all>
        </xs:complexType>
    </xs:element>

	<xs:element name="out">
	    <xs:complexType>
	        <xs:sequence>
                <xs:element name="system" type="systemOutType" minOccurs="0" maxOccurs="unbounded"/>
                <xs:element name="error" type="errorType" minOccurs="0" maxOccurs="1" />
            </xs:sequence>
      </xs:complexType>
	</xs:element>
</xs:schema>

Пример:

Запрос: http://192.168.1.21:9999/commands/node_system_info

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_system_info.xsd">
    <node name="ds1@ecss1" />
</in>

Ответ:  200

<?xml version="1.0"?>
<out
    xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_system_info.xsd">
    <system>
        <allocated_areas>
            <sys_misc total="64144"/>
            <static total="527312"/>
            <atom_space total="983280" used="958528"/>
            <atom_table total="854001"/>
            <module_table total="975648"/>
            <export_table total="1395868"/>
            <export_list total="5598560"/>
            <register_table total="1692"/>
            <fun_table total="77258"/>
            <module_refs total="116688"/>
            <loaded_code total="34408406"/>
            <dist_table total="2459"/>
            <node_table total="491"/>
            <bits_bufs_size total="0"/>
            <bif_timer total="0"/>
            <process_table total="3145728"/>
            <port_table total="786432"/>
            <ets_misc total="2097152"/>
        </allocated_areas>
        <allocator value="{glibc,[2,27], [sys_alloc,temp_alloc,sl_alloc,std_alloc,ll_alloc,eheap_alloc, ets_alloc,fix_alloc,literal_alloc,exec_alloc,binary_alloc, driver_alloc,mseg_alloc,sys_aligned_alloc,literal_mmap], [{sys_alloc,[{e,true},{m,libc},{tt,131072},{tp,0}]}, {temp_alloc,[{e,true}, {t,true}, {atags,false}, {ramv,false}, {sbct,524288}, {asbcst,4145152}, {rsbcst,90}, {rsbcmt,80}, {rmbcmt,100}, {mmbcs,131072}, {mmmbc,18446744073709551615}, {mmsbc,256}, {lmbcs,10485760}, {smbcs,1048576}, {mbcgs,10}, {acul,0}, {acnl,0}, {acfml,0}, {mbsd,3}, {as,gf}]}, {sl_alloc,[{e,true}, {t,true}, {atags,false}, {ramv,false}, {sbct,524288}, {asbcst,4145152}, {rsbcst,80}, {rsbcmt,80}, {rmbcmt,50}, {mmbcs,65536}, {mmmbc,18446744073709551615}, {mmsbc,256}, {lmbcs,5242880}, {smbcs,524288}, {mbcgs,10}, {acul,0}, {acnl,0}, {acfml,0}, {as,aoffcbf}]}, {std_alloc,[{e,true}, {t,true}, {atags,false}, {ramv,false}, {sbct,524288}, {asbcst,4145152}, {rsbcst,20}, {rsbcmt,80}, {rmbcmt,50}, {mmbcs,65536}, {mmmbc,18446744073709551615}, {mmsbc,256}, {lmbcs,5242880}, {smbcs,524288}, {mbcgs,10}, {acul,0}, {acnl,0}, {acfml,0}, {as,aoffcbf}]}, {ll_alloc,[{e,true}, {t,true}, {atags,false}, {ramv,false}, {sbct,18446744073709551615}, {asbcst,0}, {rsbcst,0}, {rsbcmt,0}, {rmbcmt,0}, {mmbcs,1048576}, {mmmbc,18446744073709551615}, {mmsbc,0}, {lmbcs,5242880}, {smbcs,524288}, {mbcgs,10}, {acul,0}, {acnl,0}, {acfml,0}, {as,aoffcbf}]}, {eheap_alloc,[{e,true}, {t,true}, {atags,false}, {ramv,false}, {sbct,524288}, {asbcst,4145152}, {rsbcst,50}, {rsbcmt,80}, {rmbcmt,50}, {mmbcs,262144}, {mmmbc,18446744073709551615}, {mmsbc,256}, {lmbcs,5242880}, {smbcs,524288}, {mbcgs,10}, {acul,0}, {acnl,0}, {acfml,0}, {as,aoffcbf}]}, {ets_alloc,[{e,true}, {t,true}, {atags,false}, {ramv,false}, {sbct,524288}, {asbcst,4145152}, {rsbcst,20}, {rsbcmt,80}, {rmbcmt,50}, {mmbcs,65536}, {mmmbc,18446744073709551615}, {mmsbc,256}, {lmbcs,5242880}, {smbcs,524288}, {mbcgs,10}, {acul,0}, {acnl,0}, {acfml,0}, {as,aoffcbf}]}, {fix_alloc,[{e,true}, {t,true}, {atags,false}, {ramv,false}, {sbct,524288}, {asbcst,4145152}, {rsbcst,20}, {rsbcmt,80}, {rmbcmt,50}, {mmbcs,65536}, {mmmbc,18446744073709551615}, {mmsbc,256}, {lmbcs,5242880}, {smbcs,524288}, {mbcgs,10}, {acul,0}, {acnl,0}, {acfml,0}, {as,aoffcbf}]}, {literal_alloc,[{e,true}, {t,false}, {atags,false}, {ramv,false}, {sbct,18446744073709551615}, {asbcst,0}, {rsbcst,0}, {rsbcmt,0}, {rmbcmt,0}, {mmbcs,1048576}, {mmmbc,18446744073709551615}, {mmsbc,0}, {lmbcs,10485760}, {smbcs,1048576}, {mbcgs,10}, {acul,0}, {acnl,0}, {acfml,0}, {as,aobf}]}, {exec_alloc,[{e,true}, {t,false}, {atags,false}, {ramv,false}, {sbct,18446744073709551615}, {asbcst,0}, {rsbcst,0}, {rsbcmt,0}, {rmbcmt,0}, {mmbcs,0}, {mmmbc,18446744073709551615}, {mmsbc,0}, {lmbcs,10485760}, {smbcs,1048576}, {mbcgs,10}, {acul,0}, {acnl,0}, {acfml,0}, {as,aobf}]}, {binary_alloc,[{e,true}, {t,true}, {atags,true}, {ramv,false}, {sbct,524288}, {asbcst,4145152}, {rsbcst,20}, {rsbcmt,80}, {rmbcmt,50}, {mmbcs,65536}, {mmmbc,18446744073709551615}, {mmsbc,256}, {lmbcs,5242880}, {smbcs,524288}, {mbcgs,10}, {acul,0}, {acnl,0}, {acfml,0}, {as,aoffcbf}]}, {driver_alloc,[{e,true}, {t,true}, {atags,true}, {ramv,false}, {sbct,524288}, {asbcst,4145152}, {rsbcst,20}, {rsbcmt,80}, {rmbcmt,50}, {mmbcs,65536}, {mmmbc,18446744073709551615}, {mmsbc,256}, {lmbcs,5242880}, {smbcs,524288}, {mbcgs,10}, {acul,0}, {acnl,0}, {acfml,0}, {as,aoffcbf}]}, {test_alloc,[{e,false}]}, {mseg_alloc,[{amcbf,4194304},{rmcbf,20},{mcs,10}]}, {alloc_util,[{mmc,18446744073709551615},{ycs,1048576},{sac,true}]}, {erts_mmap,[{scs,0}]}, {instr,[{t,false}]}, {lock_physical_memory,no}]}"/>
        <build_type value="opt"/>
        <c_compiler_used value="{gnuc,{7,4,0}}"/>
        <check_ios>
            <check_io>
                <name value="erts_poll"/>
                <primary value="poll"/>
                <kernel_poll value="false"/>
                <memory_size value="25240"/>
                <total_poll_set_size value="1"/>
                <lazy_updates value="true"/>
                <pending_updates value="0"/>
                <batch_updates value="false"/>
                <concurrent_updates value="false"/>
                <fallback value="true"/>
                <max_fds value="1024"/>
                <active_fds value="0"/>
                <poll_threads value="0"/>
            </check_io>
            <check_io>
                <name value="erts_poll"/>
                <primary value="epoll"/>
                <kernel_poll value="epoll"/>
                <memory_size value="56"/>
                <total_poll_set_size value="17"/>
                <lazy_updates value="false"/>
                <pending_updates value="0"/>
                <batch_updates value="false"/>
                <concurrent_updates value="true"/>
                <fallback value="false"/>
                <max_fds value="1024"/>
                <active_fds value="0"/>
                <poll_threads value="0"/>
            </check_io>
            <check_io>
                <name value="erts_poll"/>
                <primary value="epoll"/>
                <kernel_poll value="epoll"/>
                <memory_size value="57400"/>
                <total_poll_set_size value="22"/>
                <lazy_updates value="false"/>
                <pending_updates value="0"/>
                <batch_updates value="false"/>
                <concurrent_updates value="true"/>
                <fallback value="false"/>
                <max_fds value="1024"/>
                <active_fds value="1"/>
                <poll_threads value="1"/>
            </check_io>
        </check_ios>
        <compat_rel value="21"/>
        <cpu_topology value="[{processor,[{core,{logical,0}},{core,{logical,1}}]}]"/>
        <creation value="1"/>
        <debug_compiled value="false"/>
        <driver_version value="3.3"/>
        <elib_malloc value="false"/>
        <ets_limit value="100000"/>
        <fullsweep_after value="65535"/>
        <garbage_collection max_heap_size="0" min_bin_vheap_size="46422" min_heap_size="233" fullsweep_after="65535"/>
        <heap_type value="private"/>
        <kernel_poll value="true"/>
        <logical_processors value="2"/>
        <machine value="BEAM"/>
        <min_heap_size value="233"/>
        <min_bin_vheap_size value="46422"/>
        <modified_timing_level value="undefined"/>
        <multi_scheduling value="enabled"/>
        <multi_scheduling_blockers value="[]"/>
        <otp_release value="21"/>
        <port_parallelism value="false"/>
        <port_count value="28"/>
        <port_limit value="65536"/>
        <process_count value="619"/>
        <process_limit value="262144"/>
        <scheduler_bind_type value="unbound"/>
        <scheduler_bindings value="{unbound,unbound}"/>
        <scheduler_id value="1"/>
        <schedulers value="2"/>
        <schedulers_online value="2"/>
        <smp_support value="true"/>
        <system_version value="Erlang/OTP 21 [erts-10.3.5.1] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:8] [hipe] "/>
        <system_architecture value="x86_64-pc-linux-gnu"/>
        <threads value="true"/>
        <thread_pool_size value="8"/>
        <trace_control_word value="0"/>
        <version value="10.3.5.1"/>
        <wordsize value="8"/>
    </system>
</out>

Hc_node_service_info

Команда позволяет просмотреть информацию о сервисах ноды.

Аналог команды в CoCon:
/node/<NODE>/service

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/hc_node_service_info

Код HTTP-ответа:

При выполнении команды HTTP-терминал может ответить следующими сообщениями:

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла c ответом:

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="nodeType">
        <xs:attribute  name="name" type="xs:string" use="required"/>
        <xs:attribute  name="service" type="xs:string" use="optional"/>
    </xs:complexType>
	
    <xs:simpleType name = "stateType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="started"/>
            <xs:enumeration value="stopped"/>
            <xs:enumeration value="crashed"/>
            <xs:enumeration value="unkown"/>
        </xs:restriction>
    </xs:simpleType>	
	
    <xs:complexType name="serviceType">
        <xs:attribute name="name" type="xs:string" use="required"/>
        <xs:attribute name="description" type="xs:string" use="required"/>
        <xs:attribute name="state" type="stateType" use="required"/>
    </xs:complexType>
    
    <xs:complexType name="statusType">
        <xs:attribute name="service" type="xs:string" use="required"/>
        <xs:attribute name="current" type="stateType" use="required"/>
        <xs:attribute name="info" type="xs:string" use="required"/>
        <xs:attribute name="old" type="stateType" use="optional"/>
        <xs:attribute name="changed" type="xs:string" use="optional"/>
    </xs:complexType>

	  <xs:element name="in">
    	  <xs:complexType>
            <xs:all>
                <xs:element name="node" type="nodeType" minOccurs="1" maxOccurs="1"/>
            </xs:all>
		    </xs:complexType>
	  </xs:element>

	<xs:element name="out">
	    <xs:complexType>
          <xs:choice>
              <xs:element name="service" type="serviceType" minOccurs="1" maxOccurs="unbounded" />
              <xs:element name="status" type="statusType" />
          </xs:choice>
      </xs:complexType>
	</xs:element>
</xs:schema>

Пример:

Запрос: http://192.168.1.21:9999/commands/node_service_info

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_service_info.xsd">
    <node name="core1@ecss1" />
</in>

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_service_info.xsd">
	<service name="ecss-cm" description="ECSS Configuration Manager" state="started"/>
	<service name="dds" description="DDS management service" state="started"/>
	<service name="rps" description="RPS management service" state="started"/>
	<service name="ecss-core" description="ECSS Core subsystem" state="started"/>
	<service name="ecss-node-manager" description="ECSS MGMT Node Manager Service" state="started"/>
	<service name="log" description="Log Server Management Service" state="started"/>
	<service name="notifier" description="Notifier service" state="started"/>
	<service name="tring" description="ECSS Tring Service" state="started"/>
	<service name="modificator-manager" description="Modification/Adaptation Manager Service" state="started"/>
	<service name="amqp" description="AMQP10 Management Service" state="started"/>
</out>

Запрос: http://192.168.1.21:9999/commands/node_service_info

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_service_info.xsd">
    <node name="core1@ecss1" service="amqp" />
</in>

Ответ:

<?xml version="1.0"?>
<out
	xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_service_info.xsd">
	<status service="amqp" current="started" old="stopped" changed="2019/11/18 11:10:12" info=""/>
</out>

Hc_node_service

Команда позволяет управлять сервисами ноды.

Аналог команды в CoCon:

/node/<NODE>/service

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/node_service

Код HTTP-ответа:

При выполнении команды HTTP-терминал может ответить следующими сообщениями:

  • 201 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла c ответом:

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:simpleType name = "commandType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="run"/>
            <xs:enumeration value="stop"/>
        </xs:restriction>
    </xs:simpleType>
    
    <xs:complexType name="nodeType">
        <xs:attribute  name="name" type="xs:string" use="required"/>
        <xs:attribute  name="service" type="xs:string" use="required"/>
        <xs:attribute  name="command" type="commandType" use="required"/>
    </xs:complexType>

	  <xs:element name="in">
    	  <xs:complexType>
            <xs:all>
                <xs:element name="node" type="nodeType" minOccurs="1" maxOccurs="1"/>
            </xs:all>
		    </xs:complexType>
	  </xs:element>
</xs:schema>

Пример:

Запрос: http://192.168.1.21:9999/commands/node_service

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_service.xsd">
    <node command="stop" name="ds1@ecss1" service="log" />
</in>

Ответ: 201

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="node_service.xsd">
    <node command="run" name="ds1@ecss2" service="log" />
</in>

Ответ: 201

  • Нет меток