Hello Stephen Vickers,
I am trying to send a snmp trap message using your net-snmp module from a
NodeJS application. Please find below the code snippet. However, when I am
triggering the request , it is send a snmp message to NetCool Probe . I
can see that SNMP probe is recognizing the hit and Event. However,
NodeJS application throwing "RequestTimedOutError: Request timed out".
Can you help a bit here , please ? Also, even I change the version from 1
to version2c , net-snmp implementation always sending version1 msg.
var options = {
port: 161,
retries: 1,
timeout: 5000,
transport: "udp4",
trapPort: 162,
version: snmp.Version2c
};
var session = snmp.createSession ("DESKTOP-BPJ763B", "public",options);
var oids = ["1.3.6.1.2.1.1.5.0", "1.3.6.1.2.1.1.6.0"];
res.send('This is a netcool message.')
Thanks & Regards
Dhrubo
On Sunday, 17 February 2013 02:13:37 UTC+5:30, Stephen Vickers wrote:
>
> Hi All,
>
> I've created the new module "net-snmp" to fully implement SNMP version 1
> and 2c for Node.js.
>
> This module supports all version 1 and 2c request types (including
> get-bulk, trap and inform), it supports IPv4 and IPv6, and provides a
> number of helper methods to perform SNMP walks, get sub-trees, and extract
> tables (i.e. aggregate types).
>
> The module is installed using npm:
>
> https://npmjs.org/package/net-snmp
>
> Steve
>
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/dc827436-9d1c-4b35-b1de-4db4a7c2721d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.