Classic Vision Services checker

This script, when ran on a Vision Node or a MSM, shows the state of the pertinent services. It determines which type of Vision system it is running on and adjusts its behavior accordingly. I developed this when I was a QA Engineer for Vision.

 

On Vision Node:

[root@kirk251 node_package]# ./gservices.sh

20180320200234 CROND running

20180320200234 NTPD running

20180320200234 VCE-FM-MASTER running

20180320200234 VCE-FM-ADAPTER running

20180320200234 VCE-FM-AGENT running

20180320200234 VCE-FM-NET-SNMPD running

20180320200234 VCE-FM-NAAAGENT running

 

On MSM:

[root@kirk250 ~]# ./gservices.sh

20180320203559 CROND running

20180320203559 NTPD running

20180320203559 HTTPD running

20180320203559 TOMCAT running

20180320203559 RSYSLOG running

20180320203559 ELASTICSEARCH running

20180320203559 MULTIVBMGMT running

20180320203559 VISION-SHELL running

20180320203559 VISION-CREDENTIAL-MANAGER running

20180320203559 VISION-CREDENTIAL-MANAGER-CLI running

20180320203559 VISION-MVB-COMPLIANCE running

20180320203559 VISION-MS-PREPOSITIONING running

20180320203559 VISION-MSM-TECH-SUPPORT running

20180320203559 VISION-SUBSCRIPTION-MANAGER running

20180320203559 RABBITMQ-SERVER running

20180320203559 VISION-WEB-UI running

20180320203559 NODETOOL-STATUS Datacenter: THTC

================

Status=Up/Down

|/ State=Normal/Leaving/Joining/Moving

--  Address         Load       Tokens  Owns (effective)  Host ID                               Rack

UN  10.234.100.250  721.79 MB  256     100.0%            10bd0337-03a3-4180-8b2f-c517048e8e89  RACK1

Datacenter: zwolle

==================

Status=Up/Down

|/ State=Normal/Leaving/Joining/Moving

--  Address         Load       Tokens  Owns (effective)  Host ID                               Rack

UN  10.234.100.57   840.37 MB  256     100.0%            58ae206b-12aa-4561-842a-adb1659a1758  RACK1

Datacenter: rot

===============

Status=Up/Down

|/ State=Normal/Leaving/Joining/Moving

--  Address         Load       Tokens  Owns (effective)  Host ID                               Rack

UN  10.234.100.58   863.73 MB  256     100.0%            6e3187e5-cfbb-409b-aac9-dc8439d2dbc2  RACK1