Smarts IP/SAM: How to find the port/PID number of a Smarts Domain/Adapter to a broker
search cancel

Smarts IP/SAM: How to find the port/PID number of a Smarts Domain/Adapter to a broker

book

Article ID: 331818

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - SMARTS

Resolution

 How to find the port/PID number of a Smarts Domain/Adapter on a Microsoft Windows Server

  • After you start the domain/adapter on Windows, open the log file to see what PID it's using:
    • Example (IP/smarts/local/logs/TJ-IP93_en_US_UTF-8.log)
                            IP_NETWORK_SUITE: V9.3.0.0(133513), 26-May-2014 13:49:59 Copyright 1995-2014, EMC Corporation - Build 213
                            time=Thu Oct 27 11:03:41 2016 (1477580621)
                            pid=3508
  • To find out 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 3508
                            TCP0.0.0.0:623140.0.0.0:0LISTENING3508
                            62314 is our port #
  • At this point we have the PID: 3508 & Port: 62314
  • We now execute the command that adds the Smarts Doamin/Adapter to the broker which is : add_dm <name> <host> <port> ( <host> <port> ) <pid>
  • translating that syntax to something that we can understand:
                            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 10.241.215.34:426 add_dm TJ-IP93 10.241.215.38 62314 3508
  • And now the Smarts domain/adapter is added to the broker
                             DomainHost     Name                     Port  PID    State  Last Change Time
                             ------------------ ------------------------ ------ ------- ------- --------------------
                            TJ-IP93mars.smrtsupport.local       62314 3508 RUNNING Oct 27 12:08:20 2016