Hi Vijay Thanks, the trap was received when sent to the Node IP as you said. This is from outside cluster.
Regards Sangeeta ________________________________ From: VENKATESH KUMAR, VIJAY <[email protected]> Sent: Thursday, 20 February 2020, 20:26 To: [email protected]; Sangeeta Bellara Cc: LADUE, DAVID C Subject: RE: [onap-discuss] SNMP Trap collector on kubernetes pod not receiving traps #dcaegen2 #dcaegen2 Hi, As the service is setup as nodeport, the traps must be sent to <K8SnodeIP>:30470 (10.43.x.x is IP assigned within the cluster by K8S). However if you sending within cluster (from any other pods) – you could use xdcae-snmptrap-collector:30470 or dcae-snmptrap-collector:6162 and check. The log/tracking of SNMPtrap collector is documented in rtd under following link - https://docs.onap.org/en/latest/submodules/dcaegen2.git/docs/sections/services/snmptrap/logging.html<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.onap.org%2Fen%2Flatest%2Fsubmodules%2Fdcaegen2.git%2Fdocs%2Fsections%2Fservices%2Fsnmptrap%2Flogging.html&data=02%7C01%7Csb00563215%40TechMahindra.com%7C291cc27de5b44a6addc208d7b61518f1%7Cedf442f5b9944c86a131b42b03a16c95%7C0%7C0%7C637178074039227430&sdata=RF9mguzhEOF%2BHkSTBfFug2guFmwOzZdeKult4Zpx9%2FM%3D&reserved=0>. Regards, Vijay From: [email protected] <[email protected]> On Behalf Of Sangeeta Bellara Sent: Wednesday, February 19, 2020 7:41 AM To: [email protected] Subject: [onap-discuss] SNMP Trap collector on kubernetes pod not receiving traps #dcaegen2 #dcaegen2 Hi all, SNMP Trap Collector is installed in a Kube pod, and is showing as a service : xdcae-snmptrap-collector NodePort 10.43.125.134 <none> 6162:30470/UDP 32d When I send a trap to 10.43.125.134:30470 , there is no log in the snmptrapd_arriving_traps.log. Also tried sending to 10.43.125.134:6162, as well as pod IP with 6162 with no success. Conntrack –L shows the packet as UNREPLIED. Appreciate any input on this, thanks! Pod description below. Regards Sangeeta Bellara Name: dep-dcae-snmptrap-collector-6d65c55cfb-fml7f Namespace: onap Priority: 0 PriorityClassName: <none> Node: onap-onap-tm5g-dev-01-k8s-01/10.0.0.14 Start Time: Fri, 17 Jan 2020 14:43:56 +0000 Labels: app=dcae-snmptrap-collector cfydeployment=snmptrap cfynode=snmptrap cfynodeinstance=snmptrap_xmah29 k8sdeployment=dep-dcae-snmptrap-collector pod-template-hash=6d65c55cfb Annotations: cni.projectcalico.org/podIP: 10.42.7.18/32 Status: Running IP: 10.42.7.18 Controlled By: ReplicaSet/dep-dcae-snmptrap-collector-6d65c55cfb Containers: dcae-snmptrap-collector: Container ID: docker://68747d80735dc2a313abc050d98428ee30cb412729f2c38a81f9a9850e87e261 Image: nexus.sdp.telekom.de:10001/onap/org.onap.dcaegen2.collectors.snmptrap:1.4.0 Image ID: docker-pullable://nexus.sdp.telekom.de:10001/onap/org.onap.dcaegen2.collectors.snmptrap@sha256:dc2fb3ee0be3c474dad8ceb3cb25c468ae06bcadb2738dddc23be96545afe18d Port: 6162/UDP Host Port: 0/UDP State: Running Started: Fri, 17 Jan 2020 14:44:39 +0000 Ready: True Restart Count: 0 Environment: CONSUL_HOST: consul-server.onap CONFIG_BINDING_SERVICE: config-binding-service POD_IP: (v1:status.podIP) Mounts: /var/run/secrets/kubernetes.io/serviceaccount from default-token-mnps5 (ro) Conditions: Type Status Initialized True Ready True ContainersReady True PodScheduled True Volumes: default-token-mnps5: Type: Secret (a volume populated by a Secret) SecretName: default-token-mnps5 Optional: false QoS Class: BestEffort Node-Selectors: <none> Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s node.kubernetes.io/unreachable:NoExecute for 300s Events: <none> Caution: Please do not click links or open attachments unless you recognize the sender and know the content is safe. ============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra. ============================================================================================================================ -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20085): https://lists.onap.org/g/onap-discuss/message/20085 Mute This Topic: https://lists.onap.org/mt/71406025/21656 Mute #dcaegen2: https://lists.onap.org/mk?hashtag=dcaegen2&subid=2740164 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
