Configure SNMP Plug-In Port to the vRealize Orchestrator 8.x

In this post, we are going to look at how to configure the SNMP Plug-In port for vRealize Orchestrator 8.x. The SNMP port can be configured with a workflow for vRO 7 and 8, but since vRO 8 uses the Kubernetes infrastructure, this configuration must be Kubernetes based.

The following lines of code will help you.

  • Create a variable for the SNMP trap port. The ports open for SNMP traps are 81 to 32767.
  • Create a Kubernetes NodePort 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 
  • 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'}]'
  • 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"}}'
  • Create the firewall rules for the configured SNMP port.
iptables -A INPUT -p udp -m udp --dport $SNMP_PORT -j ACCEPT

I found this post on the VMware Documentation site and it helped me with a workflow I developed in vRO 8.

Hopefully, this post has been informative for you. If you have a question, opinion, or request about the article, you can contact us from the comments below or my email address. If you think this post is informative to others, be social, and share it on social media! Thank you for reading !!

Leave a Reply

Your email address will not be published.