Questions tagged [net-snmp]

Common set of SNMP tools for *nix and Windows environments.

SNMP-NET

Widely used set of SNMP CLI tools, GUI and snmpd (for traps). Great docs and books written about this tool set. If you're walking down the SNMP road, this is the place to start!

651 questions
5
votes
1 answer

How to pass variables for a script via SNMP by using snmpget?

I have one simple bash script calls test_snmp, let's say: #!/bin/bash echo $1 I have snmpd.conf set as following: rwcommunity public 127.0.0.1 extend .1.3.6.1.4.1.2021.53 /bin/bash /tmp/test_snmp What I'd like to do is to run a snmpwalk command,…
Severin Simko
  • 73
  • 2
  • 8
5
votes
0 answers

How can i check if session is created before i send snmp trap?

I am sending trap messages to specific host OID before I do that can I make sure if the session is created successfully so I can send trap messages. main.js var snmp = require("net-snmp"); var msg = require('./event.js'); var dns =…
hussain
  • 6,587
  • 18
  • 79
  • 152
5
votes
1 answer

How to add row in a MIB table with snmpset?

I changed recently my custom MIB file to include tables and not only scalars, it validates, I can create sub-agent etc. but if I try to read it, it says no entries: snmptable -v1 -c public hostname:10161 myMibName::myTable myMibName::myTable: No…
lzdt
  • 489
  • 1
  • 6
  • 17
5
votes
4 answers

Does net-snmp support AES-192 and AES-256 encryption?

The network device has been configured with snmpv3 users which uses AES192 as the privacy protocol.But when the following command is executed snmpwalk -v3 -l authPriv -u user -a SHA -A authpass -x AES256 -X privpass device_ip:161 oid It throws the…
Optimus
  • 697
  • 2
  • 8
  • 22
5
votes
1 answer

Significance of context name in snmpv3

Snmpv3 is a secured protocol compared to Snmpv2 and Snmpv1. But I dont understand what is the use of context name.We already have an user name and also authentication and privacy passwords which provide a security level. Someone using a wireshark…
user1578656
  • 131
  • 1
  • 3
  • 6
5
votes
1 answer

Difference between snmpd and net-snmp

I am new to SNMP. As far as I know snmpd is a Linux daemon for SNMP which acts as SNMP agent. We can install it from the package snmpd. Now net-snmp also provides a SNMP agent. Does net-snmp provide snmpd daemon as its agent, if so then what is the…
user1578656
  • 131
  • 1
  • 3
  • 6
5
votes
1 answer

Specify port when using snmptrap

I am trying to specify the port when I am sending a trap via snmptrap. Just in order to test my SNMP receiver I want to send traps to it, but I do not have access to port 162. How do I send the trap to another port? As I see it the man-page does…
Atonic
  • 509
  • 1
  • 5
  • 14
5
votes
1 answer

what is the correct snmptrap command format?

Which of the following is the correct format for snmptrap (net-snmp) command? snmptrap -v 2c -c public host "" NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification \ netSnmpExampleHeartbeatRate i 123456 or snmptrap -v 2c -c public host…
Kiran Mohan
  • 2,696
  • 6
  • 36
  • 62
5
votes
2 answers

What is the correct encoding for SNMP type Unsigned32?

I'm writing an SNMP agent and the MIB definition includes an OID of type Unsigned32. The Unix implementation of the agent uses Net-SNMP and sets the OID as type ASN_UNSIGNED, since it doesn't have an ASN_UNSIGNED32. When I look at the GET response…
Gene Vincent
  • 5,237
  • 9
  • 50
  • 86
4
votes
3 answers

How to print an integer and Counter32 value in net-snmp

I founded this code that print string values and it works fine: add_mibdir("."); pdu = snmp_pdu_create(SNMP_MSG_GET); read_objid(if_index, id_oid, &id_len); snmp_add_null_var(pdu, id_oid, id_len); status =…
4
votes
2 answers

python net-snmp loading mibs

I'm using net-snmp's python libraries to do some long queries on various switches. I would like to be able to load new mibs -- but I cannot find any documentation on how to do this. PySNMP appears to be rather complicated and requires me to create…
yee379
  • 6,498
  • 10
  • 56
  • 101
4
votes
3 answers

How to create snmp agent from net-snmp

I want to implement SNMP-agent for PowerPC board using net-snmp. Previously it was implemented using SMASH. SMASH has a parser which could read MIB and generate C code (blank function imlementation) How do I get started?
PrashantB
  • 309
  • 2
  • 4
  • 13
4
votes
0 answers

Not Getting Response while initiating Session on Net::SNMP while accessing the device with snmpv3 credentials using AES-256

I am facing issue with accessing the device with snmpv3 users with AES-256 credentials. initiating the session with below arguments ($session, $error) = Net::SNMP->session(%args); When I am trying with AES-256 I am not able to access the…
4
votes
0 answers

using net-snmp.js to send and retrieve get requests to many devices at once

Im have a list of about 50 IP addresses (ip.array_agg) to poll in a loop. Problem is that the async nature of the module means that the returning results come back at random times in any order so I need to track the sessions somehow. How can I link…
coderabbit
  • 133
  • 1
  • 9
4
votes
1 answer

How to get SNMP data using pysnmp?

I want to get snmp data by using python pysnmp module. I was using command line to get SNMP data but now I want to read it using pysnmp module. SNMP command - snmpwalk -v 1 -c public : xyz::pqr I was using command like above. Now…
ketan
  • 2,732
  • 11
  • 34
  • 80
1
2
3
43 44