Smarts VSA Trap Adapter Port configuration for Broker
search cancel

Smarts VSA Trap Adapter Port configuration for Broker

book

Article ID: 315805

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Customers wanting a solution to establish a static port for the sm_trap command so the broker will be able to communicate with the trap adapter domain.

Environment

VMware Smart Assurance - SMARTS

Resolution

Using the --sport option will set a static port for the trap adapter service.

Command line execution of the trap adapter command.

./sm_trapd --name=TRAP_OI --server=INCHARGE-OI --output --config=icoi --port=162 --sport=42000 --daemon --model=sm_actions --rules=icoi-trapd/trap_mgr_parse.asl --errlevel=Warning

Example of the sm_service install command for the trap adapter. 

If the trap adapter is already running as a service command.

  1. Stop the service for the trap adapter.  
  2. Confirm the desire port is available using the netstat -a | grep <port number>   If available the response will be blank and return to the command prompt. 
  3. Update the sm_service install command with the '--sport=<port number> \


sm_service install --force --unmanaged --startmode=runonce \
'--name=ic-trapd-receiver' \
'--description=VMware Smart Assurance SNMP Trap Adapter' \
'/opt/InCharge/SAM/smarts/bin/sm_trapd' \
'--name=TRAP-INCHARGE-OI' \
'--server=INCHARGE-OI' \
'--config=icoi' \
'--port=162' \
'--sport=42000' \
'--model=sm_actions' \
'--rules=icoi-trapd/trap_mgr_parse.asl' \
'--seed=seedfile' \
'--output=TRAP-INCHARGE-OI.log'