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
2
votes
1 answer

SNMP OID tree walk

I'm trying to write an SNMP agent and frankly the whole process has been like reading pooorly translated stereo instructions. But I'm close, except for one problem: implementing the GETNEXT operation. Consider the following chunk of the system OID…
Charlie Martin
  • 110,348
  • 25
  • 193
  • 263
2
votes
2 answers

How to use the mib2c command?

Actually I'm trying to generate .h & .c files by given sysSwYear as MIBNODE and I'm using following command: mib2c -c mib2c.scalar.conf sysSwYear but it produces the following error: You didn't give mib2c a valid OID to start with. IE, I could…
Gaurav
  • 91
  • 1
  • 4
  • 14
2
votes
1 answer

Sending a trap with Perl's Net::SNMP

I'm trying to send a trap as part of a larger Perl script. I've copied the trapsending code to another file, and am running it by itself. The code seems to think the trap sends successfully, yet I'm not seeing the trap on either machine that I…
coding_hero
  • 1,759
  • 3
  • 19
  • 34
2
votes
2 answers

How to query UCD-SNMP-MIB using snmpwalk

I have installed MRTG, snmpd, snmpwalk, snmpget on windows 2003 server; I have configured an SNMP agent on 192.168.100.88 When I run this SNMP walk command then I am getting empty response for UCD-SNMP-MIB snmpwalk -v 1 -c community 192.168.100.88 …
jehan
  • 107
  • 3
  • 15
2
votes
1 answer

mib2c - show all variable attributes

I am very new to mib2c, and I need to list all attributes which belong to one variable. I work with mib2c tool from NET-SNMP and there are configuration templates for generating the code. There are variables with many attributes, look…
srnka
  • 1,275
  • 2
  • 12
  • 16
2
votes
1 answer

How can I update my snmp agent's tables upon a GETBULK request?

I want to update my subagent's tables upon a GETBULK request without having to update for every internal GETNEXT request. mib2c generated the following handler for GET requests - how can I set up a handler within the subagent to perform updates…
Bubbles
  • 466
  • 4
  • 17
2
votes
4 answers

How do I use netsnmp_query_walk() or netsnmp_query_get()?

I've successfully used the following to read some simple SNMP values from a local snmpd: snmp_open( &session ) snmp_pdu_create( SNMP_MSG_GET ); snmp_add_null_var( pdu, oid, len ); // multiple lines like this snmp_sync_response( ss, pdu, &response…
Stéphane
  • 19,459
  • 24
  • 95
  • 136
1
vote
1 answer

snmpwalk can't walk table with "accessible-for-notify" item

I have a MIB where 3 tables contain as first element items marked as "accessible-for-notify", like: -- 1.3.6.1.4.1.3979.7.4.3.2.2.1 awOduChannelTable OBJECT-TYPE SYNTAX SEQUENCE OF AwOduChannelEntry MAX-ACCESS not-accessible …
j4x
  • 3,595
  • 3
  • 33
  • 64
1
vote
1 answer

Timeticks to date format?

How to convert time from Timeticks (ASN_TIMETICKS from net-snmp library) to any c++ datetime format? Thx.
Dmitro
  • 1,870
  • 3
  • 16
  • 25
1
vote
1 answer

SNMP wrapper agent?

So we have some internal applications that provide metrics via a RESTful api. We would like to expose this data via SNMP. What I am thinking is that at the host level an SNMP wrapper would receive a SNMPGET and then perform a HTTP request for the…
CarpeNoctem
  • 5,540
  • 8
  • 30
  • 33
1
vote
3 answers

how to set the port of snmp agentX subagent?

I am working on extending net-snmp to write a subagent with agentX. Now I use the example codes from net-snmp, and compiled to a subagent. Below is the codes I get from: http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module And I succeed…
zhaojing
  • 585
  • 3
  • 11
  • 33
1
vote
3 answers

how to see the log of the DEBUGMSGTL in net-snmp

I am trying to write a snmp subagent that using agentX, which is supported by net-snmp. At first, I used the example codes from net-snmp FAQ: http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent And from the example…
zhaojing
  • 585
  • 3
  • 11
  • 33
1
vote
0 answers

How do I display units when doing snmpwalk?

This is a part of my MIB : callSuccessRate OBJECT-TYPE SYNTAX Integer32 UNITS "%" MAX-ACCESS read-write STATUS current DESCRIPTION "Success rate of call" DEFVAL { 0 } ::= { call 1 } When I run snmpwalk…
gee22
  • 13
  • 3
1
vote
0 answers

how to receive snmp incoming request using net snmp library

I have a project that involves using the SNMP protocol, and I'm using the NET-SNMP library. I have written C code for the client side (manager) of SNMP, and it works perfectly. However, on the server side, I need assistance with receiving SNMP…
1
vote
1 answer

Does SNMP Null terminate SnmpAdminString’s?

I am porting some net-snmp agent code to a system. In that process, I am having to learn about all the predefined objects. My question is: Does SNMP null terminate its admin strings? I have gone through some RFC’s and have read various MIB’s but I…
WakkaTrout
  • 17
  • 4