What prep work I need do to post it? like, anything I need to install on my local system (e.g.-python)?
I never did anything like this before.
I was successfully able to post dummy log via log monitoring API with the static content however, “Device Statistics” graphs are not populating, see the screengrab below.
If you have Linux, most certainly python is preinstalled. If you have Windows, you would have to install it.
I tried this on an out of the box Linux machine, and it did not work immediately. So here’s what you need to do:
Since you shouldn’t have the pysnmp module, you have to install it:
pip3 install pysnmp
Copy the code below to traps.py. I have replaced the OID from a name to a straight OID, because you would have to install additional snmp libraries. You can use whatever OID you want.
Replace 192.168.1.232 in the code to your AG’s IP address
Execute it with
python3 traps.py
If you want to confirm that it’s getting out, run the following command in another shell. It should show you the traps getting out.
tcpdump -n udp port 162