Home/Support/Support Forum/How to send I/O ports status as SNMP traffic
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to send I/O ports status as SNMP traffic

0 votes
I'm trying to develop a python application that allows me to use a telemetry card 2 on a DigiWR41 to collect information about the status of the I/O ports and send it as SNMP traffic to a remote device connected to the router. Any thoughts on how to approach this?
asked Oct 15, 2014 in Digi TransPort Cellular by fchavez14 New to the Community (7 points)

Please log in or register to answer this question.

1 Answer

+1 vote
Best answer
Use the digihw module to monitor your gpio

Then use the sarcli module to run the "setevent" command
FORMAT "SETEVENT <text> [<priority> [trapcode]]"

This will write the event to the eventlog.

Then use the built in settings of the transport to send the SNMP trap from the user event code:

answered Oct 16, 2014 by NicholasWilson Veteran of the Digi Community (1,003 points)
selected Dec 29, 2014 by fchavez14