Before running the Set the SNMP trap port you must add the port to the vRealize Orchestrator Appliance.

Procedure

  1. Log in to the vRealize Orchestrator Appliance command line as root.
  2. Create a variable for the SNMP trap port.
    SNMP_PORT=port_value
    Note: The ports open for SNMP traps are 81 to 32767.
  3. Create a Kubernetes NodPort service for the SMNP trap port over User Datagram Protocol (UDP).
    kubectl -n prelude expose deployment vco-app --type=NodePort --name=vro-snmp-$SNMP_PORT --port=$SNMP_PORT --target-port=$SNMP_PORT --protocol=UDP 
  4. Add the port to the NodePort service.
    kubectl -n prelude patch svc vro-snmp-$SNMP_PORT --type='json' -p '[{"op":"replace","path":"/spec/ports/0/nodePort","value":'$SNMP_PORT'}]'
  5. Patch the NodePort service, so the source IP address can connect to the vRealize Orchestrator pod.
    kubectl -n prelude patch svc vro-snmp-$SNMP_PORT -p '{"spec":{"externalTrafficPolicy":"Local"}}'
  6. Create the firewall rules for the configured SNMP port.
    iptables -A INPUT -p udp -m udp --dport $SNMP_PORT -j ACCEPT