Find the port/PID number of a Smarts Domain/Adapter
search cancel

Find the port/PID number of a Smarts Domain/Adapter

book

Article ID: 331818

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

  • How to find the port/PID number of a Smarts Domain/Adapter to a broker?
  • How to manually add a domain to broker as domain is not listed in brcontrol output.

Environment

Smarts - 10.1.x/24.3.x

Resolution

  • After domain is started, open the log file to see what PID it's using:
    • Example (<IP_BASE>/smarts/local/logs/APM_en_US_UTF-8.log)
                            TCSA_DM_IP_NETWORK_SUITE: V2.4.0.0(216934), 01-Dec-2023 10:06:28 Copyright 2023, VMware Inc - Build 83
                            time=1737546294
                            pid=89134
  • To find port number, in same log, look for RSRV-N-DMSTARTED.
    • Example:
      RSRV-N-DMSTARTED-Domain Manager APM started on <HOSTNAME>:42635
  • Alternative way of finding the port number, open Windows PowerShell as an administrator
  • Run netstat -aon |findstr <pid>
    • a: Display all connections and listening ports
    • o: Display all addresses and port numbers in numerical form
    • n: Display the owning process ID associated with each connection
      • Example:
                            netstat -aon |findstr 89134
                            TCP0.0.0.0:426350.0.0.0:0LISTENING3508
                            42635 is our port #
  • At this point we have the PID: 89134 & Port: 42635
  • We now execute the command that adds the Smarts Domain/Adapter to the broker which is : 
    add_dm <Domain_name> <hostname/IP> <port> <pid>
    brcontrol -b <hostname/IP:port where the broker is running> add_dm <domain> <host where domain is running from> <port of the Smarts domain/adapter on a running host> <pid of the Smarts domain/adapter on a running host>

    • Example:

                            brcontrol -b <brokerhost>:426 add_dm APM <Host where APM is running> 42635 89134

  • And now the Smarts domain/adapter is added to the broker
           Broker is located at: localhost:426      Started: Jun  4 06:49:56 2025


                    Domain Host Name   Port     PID   State Last Change Time
-------------------------- --------- ------ ------- ------- --------------------
                 APM    <HOSTNAME>  42635  89134 RUNNING Jul 15 02:04:14 2025