calmh / node-snmp-native

Native Javascript SNMP library for Node.js
MIT License
252 stars 66 forks source link

Implementing SNMP Trap-PDU #32

Open piwi82 opened 9 years ago

piwi82 commented 9 years ago

First of all, thanks for the effort in implementing SNMP in JavaScript. I have done the same in PHP to get rid of the PHP snmp extension.

Could it be possible to implement all PDU types, especially Trap-PDU types, so that the server could handle alerts sent from devices (socket listening on udp/162).

0xa0 (160)  SNMP GetRequest-PDU
0xa1 (161)  SNMP GetNextRequest-PDU
0xa2 (162)  SNMP GetResponse-PDU
0xa3 (163)  SNMP SetRequest-PDU
0xa4 (164)  SNMPv1 Trap-PDU (replaced by 0xa7 in SNMPv2)
0xa5 (165)  SNMPv2 GetBulkRequest-PDU
0xa6 (166)  SNMPv2 InformRequest-PDU
0xa7 (167)  SNMPv2 SNMPv2-Trap-PDU
calmh commented 9 years ago

Certainly it's possible. :) I don't currently have the time or inclination, but patches are always welcome.