В данном разделе описаны общие команды для управления определенными нодами.
Оглавление |
---|
cocon-info
Команда показывает настройки Cocon и параметры БД.
...
Без форматирования |
---|
admin@[mycelium1@ecss1]:/$ node/core1@ecss1/cocon-info AMQP Realm: cocon_realm AMQP Exchange: ccn.direct Prefix: / Heartbeat: 3000ms User database: mysql User db connect status: + Audit database: mysql Audit db connect status: + Audit cleanup time: 2:0:0 UTC Audit history size: 90 days MySQL parameters: audit@cocon.mysql.ecss:3306 db - ecss_audit users table - ecss_users roles table - ecss_roles groups table - ecss_groups groups/users table - ecss_groups_users groups/roles table - ecss_role_group roles' settings table - ecss_roles_settings settings table - ecss_user_settings2 audit commands table - ecss_audit_commands audit session table - ecss_audit_sessions audit restrictions table - ecss_audit_restrictions Tring prefix: ecss10 [exec at: 28.09.2018 21:51:08, exec time: 18ms, nodes: core1@ecss1] |
date
Команда показывает текущее время для определенной ноды
...
Без форматирования |
---|
admin@[mycelium1@ecss1]:/$ node/core1@ecss1/date 22:07:55 28.09.2018 [exec at: 28.09.2018 22:07:55, exec time: 12ms, nodes: core1@ecss1] |
etop
Команда позволяет просмотреть следующую информацию о запущенной ноде:
...
Без форматирования |
---|
admin@[mycelium1@ecss1]:/$ node/core1@ecss1/etop ================================================================================================== core1@ecss1 15:17:28 Load: cpu 0 Memory: total 258.9M binary 2.44M procs 1338 processes 103.49M code 72.04M runq 0 atom 3.17M ets 12.68M Pid Name or Initial Func Reds Memory MsgQ Current Function -------------------------------------------------------------------------------------------------- <0.8545.1> ccn_gen_command:init/3 27384 449.44K 0 ecss_mgmt_cmd_etop:get <0.4866.0> gen_tserver:init/1 3716 26.23K 0 gen_server:loop/7 <0.4018.0> tring_l1 2402 26.24K 0 gen_server:loop/7 <0.5483.0> gen_tserver:init/1 1206 26.23K 0 gen_server:loop/7 <0.5454.0> gen_tserver:init/1 1187 26.23K 0 gen_server:loop/7 <0.5300.0> gen_tserver:init/1 1145 26.23K 0 gen_server:loop/7 <0.4012.0> ds_l3 651 34.38K 0 gen_server:loop/7 <0.4865.0> tring.ecss10 547 416.78K 0 gen_server:loop/7 <0.4011.0> ds_l2 445 21.89K 0 gen_server:loop/7 <0.4010.0> ds_l1 424 26.66K 0 gen_server:loop/7 <0.4036.0> core_l4 248 34.52K 0 gen_server:loop/7 <0.4041.0> cocon_l1 245 18.66K 0 gen_server:loop/7 <0.4025.0> rps_l2 241 29.04K 0 gen_server:loop/7 <0.4529.0> ezmq_link:init/1 241 16.45K 0 gen_fsm:loop/8 <0.4527.0> zmq_connection_22abcd 224 46.17K 0 gen_server:loop/7 <0.5453.0> mycelium_gen_user_session:init/1 169 46.34K 0 gen_server:loop/7 <0.5479.0> mycelium_gen_user_session:init/1 169 66.55K 0 gen_server:loop/7 <0.5298.0> mycelium_gen_user_session:init/1 168 33.85K 0 gen_server:loop/7 <0.4528.0> ezmq:init/1 157 25.96K 0 gen_server:loop/7 <0.4035.0> core_l3 100 19.22K 0 gen_server:loop/7 ================================================================================================== [exec at: 28.09.2018 22:17:28, exec time: 1s 45ms, nodes: core1@ecss1] |
etop-snapshot
Команда сохраняет информацию о процессах ноды в csv файл
...
Без форматирования |
---|
admin@[mycelium1@ecss1]:/$ node/core1@ecss1/etop-snapshot --interval 2000 --sys_info_file ds1@ecss1_proc_info.csv System info file: /var/log/ecss/etop_snapshot/ds1@ecss1_proc_info.csv Process info file: /var/log/ecss/etop_snapshot/core1@ecss1_proc_info.csv [exec at: 30.09.2018 21:56:24, exec time: 2s 238ms, nodes: core1@ecss1] |
info
Команда для просмотра информации о ноде с именем <some_node>: версия ПО, информация о приложениях, объем динамически выделяемой памяти, системная статистика, текущее состояние системы.
...
Без форматирования |
---|
admin@[mycelium1@ecss1]:/$ node/core1@ecss1/info memory total MEMORY: total: 266.84M [exec at: 30.09.2018 21:17:03, exec time: 10ms, nodes: core1@ecss1] |
restart
Команда для перезапуска ноды.
...
Без форматирования |
---|
admin@[mycelium1@ecss1]:/$ /node/core1@ecss1/restart |
service
Команда для управления сервисами нод: просмотр информации, запуск сервиса, остановка сервиса.
...
Без форматирования |
---|
admin@[mycelium1@ecss1]:/$ node/md1@ecss1/service notifier Service notifier is started at 3:42:9 28.9.2018 UTC Previous known service status: stopped Service status report: ECSS Notifier successfully started. [exec at: 30.09.2018 21:24:13, exec time: 10ms, nodes: md1@ecss1] |
shutdown
Команда для отключения ноды.
...
Без форматирования |
---|
admin@[mycelium1@ecss1]:/$ node/sip1@ecss1/shutdown [shutdown] You are going to shutdown the ECSS node sip1@ecss1. This can cause data loss. Shutdown the ECSS node sip1@ecss1?: [no]/yes ?> yes Node sip1@ecss1 will be shut down after 5 seconds. [exec at: 30.09.2018 21:38:06, exec time: 4s 537ms, nodes: sip1@ecss1] Alarm list changed at 30.09.2018 21:38:14: critical: 10 major : 1 Alarm list changed at 30.09.2018 21:38:23: |
uptime
Показывает время непрерывной работы ноды c именем <some_node>.
...
Без форматирования |
---|
admin@[mycelium1@ecss1]:/$ node/core1@ecss1/uptime ecss-core 3.11.0.978 core1@ecss1 uptime is 2d 13h 44m [exec at: 30.09.2018 21:21:05, exec time: 18ms, nodes: core1@ecss1] |
group-service
Команда для просмотра информации о статусе подсистем для выбранной ноды.
...
Без форматирования |
---|
admin@[mycelium1@ecss1]:/$ node/core1@ecss1/group-service There are services at node: core1@ecss1 ┌─┬───────────────────┬─────────┐ │S│ Service │ Group │ ├─┼───────────────────┼─────────┤ │+│ecss-cm │core │ │+│dds │core │ │+│rps │core │ │+│ecss-core │core │ │+│ecss-node-manager │mgmt │ │+│log │core │ │+│tring │core │ │+│modificator-manager│undefined│ │+│amqp │core │ └─┴───────────────────┴─────────┘ Existing groups: [core,mgmt] Legend: S: Current service Status: +: Service is started ^: Service is starting -: Service is stopped v: Service is stopping x: Service is crashed ?: Unknown service status [exec at: 30.09.2018 21:45:55, exec time: 24ms, nodes: core1@ecss1] |
host-info
Команда для просмотра информации о хостовой машине для выбранной ноды.
...