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!

616 questions
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
  • 618
  • 2
  • 8
  • 19
5
votes
2 answers

SNMP OUTPUT OPTIONS - How do I get the OID response value only?

I have to go through and collect a few OIDs from some SNMP enabled network printers with a BASH script I have been working on. My Request: snmpget -v2c -c public 192.168.0.77 .1.3.6.1.2.1.1.1 .1.3.6.1.2.1.1.2 My Actual Response: …
user2179455
  • 77
  • 1
  • 1
  • 9
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
  • 145
  • 1
  • 9
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
  • 4,721
  • 7
  • 43
  • 82
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
  • 5,386
  • 9
  • 43
  • 86
4
votes
2 answers

Remove User in snmp by agent

I could quickly go through the snmp installation and it works fine. In one of the agent modules I am currently looking into and trying to modify the source. I came across an issue where I need to remove the user by the agent. Stuck with to complete…
user857063
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
  • 103
  • 1
  • 9
4
votes
1 answer

Send a notification trap SNMP with snmptrap command Linux

For test purpose, i'm trying to use the snmptrap command to produce a .1.3.6.1.2.1.43.18.2.0.1 trap (printer alert trap). I'm not in my two feet with the syntax of the snmptrap command, so can someone explain me how to correctly use this command,…
Nicolas Frbezar
  • 442
  • 1
  • 4
  • 20
4
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
  • 111
  • 3
  • 6
4
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
  • 111
  • 3
  • 6
4
votes
1 answer

Service snmpd restart issue

I am facing this particular error /usr/sbin/snmpd: symbol lookup error: /usr/sbin/snmpd: undefined symbol: smux_listen_sd when I restart the snmpd service on my computer. Whenever I do the sudo service snmpd restart, it gives me the error shown…
nitin
  • 39
  • 1
  • 8
4
votes
1 answer

do parameter attributes change a powershell script output somehow?

i'm using net-snmp extension features to be able to run a powershell script when i query a specific SNMP oid. snmpd is configured to run a get-storageinfo.ps1 script with some parameters. the script is being invoked like this by the net-snmp…
JayST
  • 61
  • 2
4
votes
2 answers

Net-SNMP include header file error in Code::Block

I am using Code::Block IDE just recently, not really familiar with it. And I have this project that need to use C API from Net-SNMP. I've download it, "Add Files" into the project, and link the new library (Build Options > Search Directories tab >…
shinega
  • 103
  • 1
  • 4
  • 12
4
votes
6 answers

Warning: Failed to connect to the agentx master agent ([NIL])

I have installed net-snmp5.7.2 on my system, I have written my app_agent.conf for my application and agentXSocket udp:X.X.X.X:1610 and exported SNMPCONFIGPATH=path_to_app_agent.conf I have also wrtten snmpd.conf in…
Sudip
  • 413
  • 1
  • 7
  • 12
3
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 =…
1
2
3
41 42