Dear Sir;
I would like to create a bash script using snmptrap but I get snmptrap not found, how can I install/run the snmptrap cli command? There is the snmptraps, can I use it like snmptrap?
Thank you and best regards
opkg list-installed | grep snmp
libnetsnmp - 5.9.1-5
snmp - 2023-02-13-1
snmp-mib - 2023-02-13-1
snmp-mod-chilli - 2023-02-13-1
snmp-mod-device - 2023-02-13-1
snmp-mod-gps - 2023-02-13-1
snmp-mod-gsm - 2023-02-13-1
snmp-mod-io - 2023-02-13-1
snmp-mod-port - 2023-02-13-1
snmp-mod-sqm - 2023-02-13-1
snmp-mod-vlan - 2023-02-13-1
snmp-mod-wireless - 2023-02-13-1
snmpd - 5.9.1-5
snmptrap - 2023-02-13-1
vuci-app-snmp-api - 1
vuci-app-snmp-ui - 1
Collected errors:
Thank you very much for your prompt reply; I would like to generate a custom SNMP trap periodically, maybe 1min to send variables like din1 state, eqp temperature,hostname and some gsmctl parameters (all in one SNMP trap message).
Thank you and best regards
To enable SNMP functionality on your RUTOS device, follow these steps:
Navigate to System → Package Manager → Packages.
Look for the package named “SNMP” and install it.
Once installed, access SNMP services at Services → SNMP.
SNMP trap messages are primarily for triggering alerts, rather than providing detailed device information. For accessing information, it’s better to utilize regular polling at scheduled intervals. You can find a list of SNMP variables here, which provides more comprehensive information compared to trap messages.
Dear Sir
Thank you for your kind reply, yes I installed the SNMP using the Package Manager as you indicated, I understand your recommendations, but due to the connectivity scenario, the SNMP manager can’t get the SNMP information from the RUTX devices. The only way is to generate periodic traps from the RUTX devices. At the present moment, the RUTX devices are sending the required information using HTTP and we use a GW(Gateway) to convert HTTP to SNMP traps