Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[Contrail_Healthbot] How to retrieve service to port mapping

0

0

Article ID: KB36171 KB Last Updated: 17 Sep 2020Version: 1.0
Summary:
While troubleshooting or working with healthbot, it is important to have an understanding of what port a service is running.

This article provides a sample output for 2 commands that are handy.

Solution:
root@user116:~# more /var/local/healthbot/healthbot.sys
[DEFAULT-SERVICES]
TSDB = influxdb
CONFIG_DB = postgres
API_SERVER = api-server
JFIT_MGD = mgd
GRAFANA = grafana
ALERTA = alerta
GATEWAY = gateway
REDIS = redis
HBMON = hbmon
REPORTS = reports
LICENSE_CLIENT = license-client
SHIM = tsdb-shim
HB_PROXY_SYSLOG = hb-proxy-syslog
DEBUGGER = debugger
KEYCLOAK = keycloak

[K8S_SERVICES]
METALLB = metallb
CONFIG_MANAGER = configmanager

[configmanager]
CONFIG_MANAGER_PORT = "7005"

[INGEST]
IAGENT = iagent
JTIMON = jtimon
INGEST_JTI_NATIVE = ingest-jti-native
TELEGRAF = telegraf
ITSDB = itsdb
HB_SYSLOG = hb-syslog
INGEST_FLOW = ingest-flow

[metallb]
IP_CIDR = placeholder
METALLB_CONTROLLER_IMAGE_NAME = healthbot_metallb_controller
METALLB_SPEAKER_IMAGE_NAME = healthbot_metallb_speaker

[influxdb]
INFLUXDB_HOST = influxdb
INFLUXDB_HTTP_PORT = 8086
INFLUXDB_RPC_PORT = 8088
DATABASES = health
DURATION = 604800
REPLICATION = 1
SHARD_DURATION = 86400

[postgres]
POSTGRES_HOST_PORT = 5432
POSTGRES_PASSWORD = ONUIXSB9KA
POSTGRES_DB = jfit_config
PRIMARY_POSTGRES_PASSWORD = BQDDVKZTER
POSTGRES_OPERATOR_IMAGE = healthbot_postgres_operator
SPILO_IMAGE = healthbot_spilo
MAX_POSTGRES_INSTANCES = 3

[mgd]
JFIT_CLI_PORT = 6500
JFIT_API_SERVER = api-server
JFIT_API_INTERNAL_PORT = ${api-server:API_SERVER_PORT}
JFIT_MGD_USER = root
JFIT_MGD_USER_PASSWORD = HealthBot
JFIT_MGD_NETCONF_PORT = 22

[api-server]
API_SERVER_PORT = 9000
POSTGRES_PORT = ${postgres:POSTGRES_HOST_PORT}
INFLUXDB_HOST = ${influxdb:INFLUXDB_HOST}
INFLUXDB_PORT = ${influxdb:INFLUXDB_HTTP_PORT}
TAND_HOST = ${tand:TAND_HOST}
TAND_PORT = ${tand:TAND_PORT}
PUBLISHD_PORT = ${publishd:PUBLISHD_PORT}
GATEWAY_PORT = ${gateway:JFIT_HOST_PORT}
HEALTH_DATABASE = health
TRIGGER_HEALTH_MEASUREMENT = health
GRAFANA_URL = ${gateway:GRAFANA_URL}
POSTGRES_PASSWORD = ${postgres:POSTGRES_PASSWORD}
PRIMARY_POSTGRES_PASSWORD = ${postgres:PRIMARY_POSTGRES_PASSWORD}
POSTGRES_DB = ${postgres:POSTGRES_DB}
JFIT_MGD_USER = ${mgd:JFIT_MGD_USER}
JFIT_MGD_USER_PASSWORD = ${mgd:JFIT_MGD_USER_PASSWORD}
JFIT_MGD_NETCONF_PORT = ${mgd:JFIT_MGD_NETCONF_PORT}
PRIVATE_SSH_KEY_FILE = /var/local/healthbot/healthbot_ssh_key
PUBLIC_SSH_KEY_FILE = /var/local/healthbot/healthbot_ssh_key.pub
HOST_USER = root
HOST_IP = 10.219.82.116
HOST_HOSTNAME = user116.juniper.net
LICENSE_SERVICE_HOST = ${license-client:LICENSE_CLIENT_HOST}
LICENSE_SERVICE_PORT = ${license-client:LICENSE_CLIENT_PORT}
HEALTHBOT_INPUT_DIR = /var/local/healthbot/input
HEALTHBOT_REALM = healthbot
HEALTHBOT_CLIENT = healthbot
HEALTHBOT_ADMIN_GROUP = hbadmin
HEALTHBOT_DEFAULT_GROUP = hboperator
HEALTHBOT_CONFIG_GROUP = hbconfig
HEALTHBOT_MONITOR_GROUP = hbmonitor
KEYCLOAK_SERVER = ${keycloak:KEYCLOAK_SERVER}
KEYCLOAK_SERVER_PORT = ${keycloak:KEYCLOAK_SERVER_PORT}
KEYCLOAK_SERVER_PROTOCOL = ${keycloak:KEYCLOAK_SERVER_PROTOCOL}
SHIM_TSDB_HEALTH_TABLE = ${tsdb-shim:SHIM_TSDB_HEALTH_TABLE}

[debugger]
JFIT_API_SERVER = ${DEFAULT-SERVICES:API_SERVER}
JFIT_API_INTERNAL_PORT = ${api-server:API_SERVER_PORT}
JFIT_MGD_USER = ${mgd:JFIT_MGD_USER}
JFIT_MGD_USER_PASSWORD = ${mgd:JFIT_MGD_USER_PASSWORD}
API_SERVER_URL = http://api-server:${api-server:API_SERVER_PORT}
INFLUXDB_HOST = ${influxdb:INFLUXDB_HOST}
INFLUXDB_PORT = ${influxdb:INFLUXDB_HTTP_PORT}
ALERTA_URL = ${alerta:ALERTA_URL}
HB_SELF_TEST_NETCONF_PORT = 22
HB_SELF_TEST_OPENCONFIG_PORT = 50001

[alerta]
ALERTA_HTTP_PORT = 9090
POSTGRES_PASSWORD = ${postgres:POSTGRES_PASSWORD}
POSTGRES_PORT = ${api-server:POSTGRES_PORT}
ALERTA_URL = http://alerta:${alerta:ALERTA_HTTP_PORT}
REDIS_PORT = ${redis:REDIS_PORT}
PORT_RANGE_START = 8101
PORT_RANGE_END = 8132
NUM_REDIS_WORKERS = 4
HOST_HOSTNAME = ${api-server:HOST_HOSTNAME}
HOST_USER = ${api-server:HOST_USER}

[gateway]
ALERTA_HOST = ${DEFAULT-SERVICES:ALERTA}
ALERTA_PORT = ${alerta:ALERTA_HTTP_PORT}
REPORTS_HOST = ${DEFAULT-SERVICES:REPORTS}
REPORTS_PORT = ${reports:REPORTS_HTTP_PORT}
API_SERVER_HOST = ${DEFAULT-SERVICES:API_SERVER}
API_SERVER_PORT = ${api-server:API_SERVER_PORT}
GRAFANA_HOST = ${DEFAULT-SERVICES:GRAFANA}
GRAFANA_PORT = 3000
GRAFANA_URL = http://grafana:3000
JFIT_CLI_HOST = ${DEFAULT-SERVICES:JFIT_MGD}
JFIT_CLI_PORT = ${mgd:JFIT_CLI_PORT}
JFIT_HOST_PORT = 8080
CERT_FILE = /var/local/healthbot/certs/cert.pem
KEY_FILE = /var/local/healthbot/certs/key.pem
KEYCLOAK_SERVER = ${keycloak:KEYCLOAK_SERVER}
KEYCLOAK_SERVER_PORT = ${keycloak:KEYCLOAK_STATUS_PORT}

[redis]
REDIS_PORT = 6379

[hbmon]
ALERTA_URL = ${alerta:ALERTA_URL}/alertaapi/alert

[common]
INSTALL_TYPE = single
ORCHESTRATOR = placeholder
NAMESPACE = healthbot
REGISTRY = placeholder
INIT_CONTAINER_IMAGE_NAME = healthbot_service_depcheck
REDIS_OPERATOR_IMAGE_NAME = healthbot_redis_operator
CONFIGMANAGER_IMAGE_NAME = healthbot_config_manager
DEPENDENCIES = {"alerta": ["postgres", "redis"], "api-server": ["postgres", "mgd", "tsdb-shim", "grafana", "metallb", "keycloak"], "gateway": ["alerta"
, "api-server", "grafana", "mgd", "metallb", "keycloak"], "grafana": ["tsdb-shim"], "hbmon": ["alerta"], "reports": ["alerta", "api-server"], "configma
nager": ["redis"], "debugger": ["mgd", "alerta", "api-server"]}
IMAGE_PULL_POLICY = IfNotPresent
CERT_FILE = /var/local/healthbot/certs/cert.pem
KEY_FILE = /var/local/healthbot/certs/key.pem
HTPASSWD_FILE = placeholder

[tand]
TAND_HOST = localhost
TAND_PORT = 3000

[publishd]
PUBLISHD_HOST = localhost
PUBLISHD_PORT = 50000

[jtimon]
TAND_HOST = ${tand:TAND_HOST}
TAND_PORT = ${tand:TAND_PORT}
PUBLISHD_HOST = ${publishd:PUBLISHD_HOST}
PUBLISHD_PORT = ${publishd:PUBLISHD_PORT}

[fluentd]
TAND_HOST = ${tand:TAND_HOST}
TAND_PORT = ${tand:TAND_PORT}
PUBLISHD_HOST = ${publishd:PUBLISHD_HOST}
PUBLISHD_PORT = ${publishd:PUBLISHD_PORT}

[ingest-jti-native]
TAND_HOST = ${tand:TAND_HOST}
TAND_PORT = ${tand:TAND_PORT}
PUBLISHD_HOST = ${publishd:PUBLISHD_HOST}
PUBLISHD_PORT = ${publishd:PUBLISHD_PORT}

[iagent]
TAND_HOST = ${tand:TAND_HOST}
TAND_PORT = ${tand:TAND_PORT}
PUBLISHD_HOST = ${publishd:PUBLISHD_HOST}
PUBLISHD_PORT = ${publishd:PUBLISHD_PORT}

[telegraf]
TAND_HOST = ${tand:TAND_HOST}
TAND_PORT = ${tand:TAND_PORT}
PUBLISHD_HOST = ${publishd:PUBLISHD_HOST}
PUBLISHD_PORT = ${publishd:PUBLISHD_PORT}

[itsdb]
TAND_HOST = ${tand:TAND_HOST}
TAND_PORT = ${tand:TAND_PORT}
PUBLISHD_HOST = ${publishd:PUBLISHD_HOST}
PUBLISHD_PORT = ${publishd:PUBLISHD_PORT}

[reports]
API_SERVER_NAME = ${DEFAULT-SERVICES:API_SERVER}
API_SERVER_PORT = ${api-server:API_SERVER_PORT}
REPORTS_URL = http://reports:8080
REPORTS_HTTP_PORT = 8080
HOST_PORT = ${gateway:JFIT_HOST_PORT}
HOST_IP = ${api-server:HOST_IP}
HOST_USER = ${api-server:HOST_USER}
HOST_HOSTNAME = ${api-server:HOST_HOSTNAME}

[license-client]
LICENSE_CLIENT_HOST = ${DEFAULT-SERVICES:LICENSE_CLIENT}
LICENSE_CLIENT_PORT = 50052

[hb-syslog]
TAND_HOST = ${tand:TAND_HOST}
TAND_PORT = ${tand:TAND_PORT}
PUBLISHD_HOST = ${publishd:PUBLISHD_HOST}
PUBLISHD_PORT = ${publishd:PUBLISHD_PORT}

[ingest-flow]
TAND_HOST = ${tand:TAND_HOST}
TAND_PORT = ${tand:TAND_PORT}
PUBLISHD_HOST = ${publishd:PUBLISHD_HOST}
PUBLISHD_PORT = ${publishd:PUBLISHD_PORT}

[keycloak]
KEYCLOAK_SERVER = ${DEFAULT-SERVICES:KEYCLOAK}
KEYCLOAK_SERVER_PORT = 8888
KEYCLOAK_STATUS_PORT = 8525
KEYCLOAK_SERVER_PROTOCOL = https
KEYCLOAK_USER = root
KEYCLOAK_PASSWORD = ${postgres:PRIMARY_POSTGRES_PASSWORD}

[tsdb-shim]
SHIM_INTERNAL_PORT = 8086
SHIM_EXTERNAL_PORT = 8086
SHIM_NODEPORT = 30086
REDIS_SENTINEL_HOST = "rfs-redis"
REDIS_SENTINEL_PORTS = "26379"
REDIS_HOST = "redis"
REDIS_PORT = "6379"
USE_SENTINEL = "True"
REDIS_MASTER_NAME = "mymaster"
CONFIG_MANAGER_PORT = ${configmanager:CONFIG_MANAGER_PORT}
COUNTERS_FILE_PATH = "/var/local/healthbot/etc/data/tsdb"
SHIM_PUBLISH_CHANNEL = TSDBShim:::HBConfig
HEALTH_DATABASE = ${api-server:HEALTH_DATABASE}
SHIM_TSDB_HEALTH_TABLE = tsdb-counters

[tsdb]
TSDB_NODES = db
REPLICATION_FACTOR = 1
TAINT = false
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search