Re: Trapv1: which enterprises OID to use for generic and specific traps?

2013-01-29 Thread Dave Shield
On 29 January 2013 09:06, Giuseppe Modugno g.modu...@elettronika.it wrote: I'm interested in sending generic and specific v1 traps. The Trap-PDU always includes an enterprise OID. Does the standard specify this OID for generic traps (coldStart, warmStart...)? The format of the SNMPv1 trap

Re: Dynamic Configuration of SNMP Agent

2013-01-28 Thread Dave Shield
On 28 January 2013 06:48, Khalid Mumtaz -X (kmumtaz - Paxterra Software SPL at Cisco) kmum...@cisco.com wrote: So I would like to know if there is any mechanism through which we can configure the SNMP agent in such a way that it starts to send traps to SNMP server

Re: Dynamic Configuration of SNMP Agent

2013-01-28 Thread Dave Shield
On 28 January 2013 10:14, Khalid Mumtaz -X (kmumtaz - Paxterra Software SPL at Cisco) kmum...@cisco.com wrote: But we need to know whether once the VM comes up in new network the SNMP agent on it should automatically find out the SNMP server in the local network and send a trap to it. No -

Re:

2013-01-28 Thread Dave Shield
On 28 January 2013 10:00, Chilukuri Murali murali_...@yahoo.com wrote: We are observing that all Get/Get-next requests with Oid lexographically less than what subagent has registered for, are getting received by subagent. You shouldn't be receiving GET requests for a different OID tree, but

Re: snmpwalk response limited to 100kb?

2013-01-28 Thread Dave Shield
On 28 January 2013 10:31, Klar, Uwe uwe.k...@wincor-nixdorf.com wrote: But the response of a snmpwalk with OID nsExtendOutLine is truncated to 102400 byte. Where can I configure this restriction? See the routine 'extend_load_cache' in the file agent/mibgroup/agent/extend.c Dave

Re: get without request

2013-01-27 Thread Dave Shield
On 26 January 2013 03:39, Nguyen Quoc Dinh nguyen.quocd...@zing.vn wrote: Since I still want to adopt snmp program at agents, is there any way to omit snmp-get-request, but to have snmp-get-response? No. The 'Response' PDU is only sent in response to an explicit request PDU, be that a Get,

Re: Table entries indexing

2013-01-24 Thread Dave Shield
On 24 January 2013 04:53, Mishustin Kirill mishus...@eltex.nsk.ru wrote: I have noticed that most tables with integer index have first entry with index = 1, and not 0. (ifTable, sysORTable ...) Why is that? Is it required by SNMP standarts or it is just common practice? It's not

Re: Question regarding ASN_OCTET_STR Type

2013-01-18 Thread Dave Shield
On 18 January 2013 19:57, Farid Farid farid21...@yahoo.com wrote: When I run snmpget to read my_mib I get the Hex and not ASCII for Hello World. So I get 48 65 6c 6c 6f 20 57 6f 72 6c 64 1f. instead of Hello World How can I send the data to see the string in ASCII format Looking at

Re: Index of table in SNMP Agent

2013-01-16 Thread Dave Shield
On 16 January 2013 08:31, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: I spend some time to study the iterator helper to retrieve external data outside from SNMP agent. I found that iterator uses a 'get first' and 'get next' way for get and getbulk requests. The iterator

Re: Problème String into OID

2013-01-16 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 15

Re: UCD simple table implementation : weird agent behavior

2013-01-15 Thread Dave Shield
On 15 January 2013 22:30, pal snmp pals...@gmail.com wrote: This simple table handler routine is called with 'name' OID lexicographically smaller than the prefix OID for getNext request. Question 1: should the handler just return MATCH_FAILED No. as this handler

Re: Problème String into OID

2013-01-14 Thread Dave Shield
On 14 January 2013 16:23, Jérôme BELLEGARDE j.bellega...@alpha-direct-services.com wrote: But when I restart my snmpd services, there is no way to contact server by any community. What are the access configuration settings in your snmpd.conf file? Is there anything logged when you start the

Re: basic proxy configuration

2013-01-12 Thread Dave Shield
On 12 January 2013 13:19, Summers, Scott H scott.summ...@unisys.com wrote: I’m trying to setup a basic proxy configuration (I think) Correct System C has the Net-SNMP agent running on it. We already tested that system B can issue SNMPGETNEXT commands to C and get responses. I now want to

Re: basic proxy configuration

2013-01-12 Thread Dave Shield
On 12 January 2013 15:35, Summers, Scott H scott.summ...@unisys.com wrote: Question #2 is on traps or maybe really on how to decipher the encoded tree [snip - OID 1.3.6.1.4.1.9.9.13.3.0.4 ] I tried to translate the following example I got from the web, but I get only a partial

Re: How to send snmpinform using snmp_api's

2013-01-11 Thread Dave Shield
On 11 January 2013 09:40, Ashish Sharma mail2ashish.sha...@gmail.com wrote: Can you please let me know or share an example to send snmpinform using net-snmp API's See the code for 'apps/snmptrap.c' - this supports sending both unacknowledged notifications (traps) and acknowledged notifications

Re: Doubt with SEQUENCE

2013-01-10 Thread Dave Shield
On 10 January 2013 14:38, Felipe Augusto de Souza fel.aso...@gmail.com wrote: However, I have been trying to set a structure which is intended to be a command with two paramaters (actually, two integers), but I always need to be sent together. I am trying to do like this: Command ::=

Re: Regarding logOption in snmptrapd.conf file

2013-01-08 Thread Dave Shield
On 8 January 2013 08:16, Adishesh M adishes...@gmail.com wrote: Using latest version NET-SNMP Version: 5.7.2 same other error is coming. snmptrapd is not recognizing logOption Please see my earlier message: trying to set this {logOption} in the trapd config file is either not

Re: State Information in smnpset: where to keep it?

2013-01-08 Thread Dave Shield
On 8 January 2013 15:07, Kent Borg kent.b...@csr.com wrote: But I am worried about the state machine used in setting a variable. How do I save state information between MODE_SET_RESERVE1 and MODE_SET_RESERVE2, MODE_SET_COMMIT? First question - are you implementing a table, or a set of scalar

Re: State Information in smnpset: where to keep it?

2013-01-08 Thread Dave Shield
On 8 January 2013 16:00, Kent Borg kent.b...@csr.com wrote: I don't think I understand. I am not interating over anything now, I am just getting handle_somevariableofmine() calls and I look reqinfo-mode to see what I am supposed to do. (I have a single template I feed to mib2c and it

Re: State Information in smnpset: where to keep it?

2013-01-08 Thread Dave Shield
On 8 January 2013 20:44, Kent Borg kent.b...@csr.com wrote: I think am only doing scalars, no tables. (Whether there is a table is dependent on the MIB, right? If I have a MIB with no tables, I don't need to handle tables?) Correct. With just scalars might there still be a list of

Re: State Information in smnpset: where to keep it?

2013-01-08 Thread Dave Shield
On 8 January 2013 22:31, Kent Borg kent.b...@csr.com wrote: I think so. Let me restate what I think I know. If I use the command line snmpset to set a bunch of variables, I am (nearly*) guaranteed that either they all happen or none of them do. If you issue a single snmpset command with

Re: SNMP Agent engineboot

2013-01-07 Thread Dave Shield
On 7 January 2013 02:45, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: What I did is to store the engineboot somewhere else from Agent, when agent restarts will read the last engineboot and increase 1, and response with new engineboot=2 But that's exactly what the Net-SNMP

Re: Regarding logOption in snmptrapd.conf file

2013-01-07 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 7

Re: Query regarding accessing IEEE802dot11 MIB

2013-01-07 Thread Dave Shield
On 7 January 2013 10:31, shilpa kondawar shilpa.konda...@gmail.com wrote: We have tried compiling the IEEE802dot11MIB file on snmp agent, but it doesn't help. No - it wouldn't. The MIB file is essentially the design for the mib module - it doesn't actually provide the code needed to implement

Re: SNMP Agent engineboot

2013-01-07 Thread Dave Shield
On 7 January 2013 08:53, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: I am using net-snmp provided agent. Now I'm confused. When you first posted, you said I am trying to implement an SNMP agent using net-snmp APIs and the code that you listed there doesn't look much

Re: creating a new row using old api handlers

2013-01-07 Thread Dave Shield
On 7 January 2013 19:58, pal snmp pals...@gmail.com wrote: The agent seems to call GET for each column with the same instance ID even when the first call failed to return an instance. Quite likely - each varbind is processed separately. The old API doesn't attempt to try and merge related rows

Re: Query regarding accessing IEEE802dot11 MIB

2013-01-07 Thread Dave Shield
On 8 January 2013 05:30, shilpa kondawar shilpa.konda...@gmail.com wrote: Thank You very much for the reply. I have sent .c and .h files alredy. When? There were no attachments to your message yesterday, and I've searched my Net-SNMP mail archive, and there are no other messages from you at

Re: Just Starting

2013-01-06 Thread Dave Shield
On 5 January 2013 15:20, Summers, Scott H scott.summ...@unisys.com wrote: I was reviewing the basic application example and it refers to the NET-SNMP Toolkit. I am having trouble locating it (but it may simply be part of some bigger package). Net-SNMP Toolkit is simply another way of referring

Re: mib2c best configuration mode to access global functions

2013-01-06 Thread Dave Shield
On 5 January 2013 18:10, Nuno Magalhães nuno.magalh...@inov.pt wrote: Here it goes. Thanks for that. In windows embedded code full compilation it doesn't happen. In linux debian dlmod (obu.so) I must declared it inline to proc_status not return always zero. I'm not currently set up for

Re: SNMP Agent engineboot

2013-01-05 Thread Dave Shield
On 5 January 2013 03:41, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: But when this process re-started, and there is another request comes in, SNMP agent will replies error:usmstatus not in timewindow. That is correct - an SNMPv3 request will fail if the boot time/count

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Dave Shield
On 5 January 2013 09:05, Nuno Magalhães nuno.magalh...@inov.pt wrote: But why must it be declared as inline? Why must what be declared inline? What has that got to do with using global functions/variables? Is there any limitation in global variables and function calls? Otherwise the global

Re: Regarding logOption in snmptrapd.conf file

2013-01-05 Thread Dave Shield
On 2 January 2013 07:37, Adishesh M adishes...@gmail.com wrote: I want all the traps received to be logged to into my file only and not to syslog (/var/log/messages) How to avoid logging of traps in syslog. I've done some quick testing, and the best way to achieve this seems to be to specify

Re: mib2c best configuration mode to access global functions

2013-01-05 Thread Dave Shield
On 5 January 2013 12:14, Nuno Magalhães nuno.magalh...@inov.pt wrote: It seems that normal global functions are not called since I put snmp logs all over the global function and invoke it in the function handler and nothing gets logged. If I use the 'inline' keywork in the global function

Re: SNMP Agent engineboot

2013-01-05 Thread Dave Shield
On 5 January 2013 13:21, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: I try to use set_enginetime() by set the engineboots to a value stored in out side of agent. I don't understand what you are trying to do here. Is this call to 'set_enginetime' in the agent, or in the

Re: How to i configure default port from 162 to some other port

2013-01-04 Thread Dave Shield
On 4 January 2013 03:05, Ashish Sharma mail2ashish.sha...@gmail.com wrote: How do i configure snmptrap command to send trap to someother port like (3211) instead of default port 162. I am trying with this command but it is not taking. snmptrap -v 1 -c -h 10.1.100.22:1622 1 0 That's

Re: SNMP in netkit

2013-01-04 Thread Dave Shield
[ First - *please* don't mail me privately, without copying any responses to the mailing list. I don't have the time or inclination to offer private, unpaid, SNMP consultancy. Keep discussions to the list, where others can both learn and offer advice. Thanks. ] On 4

Re: Question regarding Tables in net-snmp

2013-01-04 Thread Dave Shield
On 4 January 2013 18:21, Reza Salehi rezsal...@yahoo.com wrote: I put a printf(test); inside the former one ( athStatusTable_get_first_data_point() ).It gets called once if I run snmpget but still it gets called multiple time ( up to number of column in the table) if I run snmpwalk or

Re: mib2c best configuration mode to access global functions

2013-01-04 Thread Dave Shield
On 4 January 2013 19:34, Nuno Magalhães nuno.magalh...@inov.pt wrote: What's the configuration I should use, with the mib2c tool, to access global functions. For example for invoking unix shell commands with popen or system and retrieving a value. There's no special configuration required for

Re: getting errorno 99 for snmptrapd

2013-01-04 Thread Dave Shield
On 4 January 2013 19:59, Vanzant-Hodge, Amy vanzant-ho...@hp.com wrote: errno 99 “Can assign requested address” What does this mean and is there a way to fix this. It's a bit difficult to comment, given the limited information you have provided. Some details as to the environment you are

Re: how do I configure net-snmp on AIX

2013-01-04 Thread Dave Shield
On 3 January 2013 22:18, Wipro-Manish Sharma itinfra.supp...@birlasunlife.com wrote: I have AIX server 5300-07-10-0943 and looking for configuration net –snmp on the same. We have installed net-snmp-5.5-1.rpm package on the server but we are getting time response output. and in

Re: SNMP in netkit

2013-01-03 Thread Dave Shield
On 3 January 2013 15:59, Alberto Andrés Rodríguez pitu1...@gmail.com wrote: when I'm doing the following command in order to get the iproutingtable from a host of my network I received the following message: snmptable -v 2c -c public localhost .1.3.6.1.2.1.4.21 or snmptable -v 2c -c public

Re: Question regarding Tables in net-snmp

2013-01-03 Thread Dave Shield
On 3 January 2013 18:54, Reza Salehi rezsal...@yahoo.com wrote: I don't have any get_first or get_next in my code. I'm not sure I believe that. You said that you were using the 'table_iterator' helper. As part of that, mib2c will generate three routines (which you will have needed to tweak to

Re: SNMPD ignores community string in set/get requests

2013-01-02 Thread Dave Shield
On 2 January 2013 07:20, Dudi Bickel du...@ceragon.com wrote: I notice that when calling the SNMPD with -I flag with 'whatever' it causes the SNMPD to turn off authentication check. Meaning when running snmp like this /usr/sbin/snmpd -T 120 -Ln -I kuku , Every community for get or set will

Re: SNMP Agent log

2013-01-02 Thread Dave Shield
On 2 January 2013 08:45, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: I am trying to implement an SNMP agent using net-snmp APIs, I used below method to setup a SNMP agent process,called SNMP_agt. : This agent works but I can not find the deamon process using ps

Re: SNMPD ignores community string in set/get requests

2013-01-02 Thread Dave Shield
On 2 January 2013 11:09, Dudi Bickel du...@ceragon.com wrote: Thanks for your detailed answer, I see the point. I tried -I kuku,vacm_vars but I didn't work, still no authentication check. OK - having now actually _tried_ this, it turns out that the vital module is actually 'vacm_conf'

Re: snmpd.conf: unknown token: dlmod

2013-01-02 Thread Dave Shield
On 2 January 2013 15:46, Nuno Magalhães nuno.magalh...@inov.pt wrote: Hi Dave, From the FAQ and your previous answers I assume rocommunity public in the snmpd.conf gives us all views (more than system only). Is this true? Try it. What do you see? Dave

Re: snmpd.conf: unknown token: dlmod

2013-01-02 Thread Dave Shield
On 2 January 2013 14:59, Nuno Magalhães nuno.magalh...@inov.pt wrote: Hi Dave, Furthermore if I execute the command: snmpwalk -v 2c -c public 10.181.30.153 .iso I get the following output: [snip] iso.3.6.1.2.1.25.1.7.0 = No more variables left in this MIB View (It is past the end of

Re: question regarding Tables implementation

2013-01-02 Thread Dave Shield
On 2 January 2013 18:59, Reza Salehi rezsal...@yahoo.com wrote: The only problem I have is myTableHandler gets call multiple times while it is iterating during the GET or SET. Can you be a bit more explicit about exactly what is happening? For a single GET request, you should see: - one

Re: net-snmp packaging.

2013-01-01 Thread Dave Shield
On 31 December 2012 13:31, Jatin Bodarya jatin.boda...@elitecore.com wrote: Let me be specific. Specifics would be good, yes. I have downloaded NET-SNMP version: 5.7.2.rc1.tar.gz and installed with make install in Ubuntu 12.04 Now I want to use same installation in linux OK - let's be

Re: SNMPD ignores community string in set/get requests

2013-01-01 Thread Dave Shield
On 31 December 2012 12:34, Dudi Bickel du...@ceragon.com wrote: While trying to redirect the MIB-II system group to my subagent to handle instead of SNMPD handle, the SNMPD ignore ANY check of the community string on any request (meaning any string in the community will be answered). The

Re: creating a new row using old api handlers

2013-01-01 Thread Dave Shield
On 31 December 2012 19:34, pal snmp pals...@gmail.com wrote: I create a final row in the back-end when the ACTION method for exampleTableEntryRS is invoked. However, the ACTION method for exampleName is not getting invoked until after the ACTION method for entryRS is invoked. That's quite

Re: snmpd.conf: unknown token: dlmod

2013-01-01 Thread Dave Shield
On 1 January 2013 08:01, Bart Van Assche bvanass...@acm.org wrote: Note: the Net-SNMP dlmod module has been ported recently to Windows. Thanks for that, Bart. This must have happened during my recent sabbatical from the project. Certainly the code I was looking at didn't seem to support dlmod

Re: snmpd.conf: unknown token: dlmod

2012-12-31 Thread Dave Shield
On 31 December 2012 11:57, Nuno Magalhães nuno.magalh...@inov.pt wrote: - Why can't it find the modules? What modules is it referring to? I'll pass on the MIB file errors - someone more knowledgeable than me about Windows might be able to help there. (Though I'm suspicious about the mixture of

Re: net-snmp packaging.

2012-12-31 Thread Dave Shield
On 31 December 2012 05:10, Jatin Bodarya jatin.boda...@elitecore.com wrote: I have manually installed NET-SNMP version: 5.7.2.rc1.I have done net-snmp packaging for my Linux machine as I want to run it as root mode. What type of Linux distribution is this? More specifically, what type of

Re: snmpd.conf: unknown token: dlmod

2012-12-31 Thread Dave Shield
On 31 December 2012 12:32, Nuno Magalhães nuno.magalh...@inov.pt wrote: And BTW, why do I receive this message in the snmpget command: -- Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: ONBOARD-MIB::obuModule2Status -- It seems that the

Re: snmpd.conf: unknown token: dlmod

2012-12-31 Thread Dave Shield
On 31 December 2012 12:32, Nuno Magalhães nuno.magalh...@inov.pt wrote: And BTW, why do I receive this message in the snmpget command: -- Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: ONBOARD-MIB::obuModule2Status The other question here is:

Re: snmpd.conf: unknown token: dlmod

2012-12-31 Thread Dave Shield
On 31 Dec 2012, at 14:08, Nuno Magalhães nuno.magalh...@inov.pt wrote: Hi Dave, I'm using the latest snmpget.exe from the output binaries just built. Yes, but what is the exact command you are issuing? Dave --

Re: SNMP in netkit

2012-12-30 Thread Dave Shield
On 30 December 2012 16:54, Alberto Andrés Rodríguez pitu1...@gmail.com wrote: My name is Alberto and I'm doing some researching with a simulation software called Netkit, my idea is to use SNMP in a Netkit network in order to get the ip routing table from a neighbor node, but the problem that

Re: snmpd.conf: unknown token: dlmod

2012-12-30 Thread Dave Shield
On 30 December 2012 05:30, Nuno Magalhães nuno.magalh...@inov.pt wrote: Hi Dave, So, how do I extend the functionality of an agent in windows (i.e.: defining, monitoring and trapping new OID's). The design of the Net-SNMP agent is such that a MIB module (as generated by mib2c) can be used in

Re: snmpd.conf: unknown token: dlmod

2012-12-29 Thread Dave Shield
On 29 December 2012 09:23, Nuno Magalhães nuno.magalh...@inov.pt wrote: 3) The problem: whenever I launch the snmpd with the necessary arguments: snmpd.exe -V -f -Lo -I-udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,system_mib,sysORTable -DnstAgentPluginObject,dlmod,winExtDLL If I've read this

Re: snmpd.conf: unknown token: dlmod

2012-12-29 Thread Dave Shield
On 29 December 2012 22:00, Nuno Magalhães nuno.magalh...@inov.pt wrote: I thought I was only enabling debug for dlmod token -Ddlmod. My apologies - I'd misread the command you were using to start the agent. You are quite correct. Even if I simply call snmpd.exe with no parameters the error

Re: creating a new row using old api handlers

2012-12-29 Thread Dave Shield
On 29 December 2012 01:48, pal snmp pals...@gmail.com wrote: I created a simple table (one integer index) and got the agent implementation using old API handlers done. However, I am having tough time understanding how to add a row into the table. First of all, my write_* methods are never

Re: Extending an existing Row-table

2012-12-18 Thread Dave Shield
On 18 December 2012 03:30, pal snmp pals...@gmail.com wrote: I have a requirement to extend an existing table to have an additional index. This new table will exactly have the same columnar objects as the first table. Can this be done using SMIv2 MIB modeling without writing explicitly

Re: Index of table in SNMP Agent

2012-12-17 Thread Dave Shield
On 18 December 2012 05:53, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: We have concern to keep a cache of index, we might need audit to detect the mismatch between cache and external data. How rapidly is the data changing? If you took two snapshots, say 5 seconds apart, how

Re: Index of table in SNMP Agent

2012-12-14 Thread Dave Shield
On 14 December 2012 06:45, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: I am trying to setup a SNMP Agent to manage data from outside of SNMP Agent. I try to use mib2c.iterate.conf to generate code, I found that the table handler need to keep a index list of the table data,

Re: snmpwalk does not stop

2012-11-25 Thread Dave Shield
On 25 November 2012 18:24, Stavros Tsolakos stsola...@gmail.com wrote: I am far from an SNMP expert, but shouldn't some function return SNMP_ENDOFMIBVIEW? No. At least not from the perspective of the individual MIB handlers. Each MIB handler should simply return without setting a value. The

Re: Can index value be negative number?

2012-11-19 Thread Dave Shield
On 19 November 2012 03:10, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com wrote: I got a question: can index value be a negative number? No. From RFC 2578: 7.7. Mapping of the INDEX clause The syntax of the objects in the INDEX clause indicate how to form the

Re: snmp only answering on localhost - but daemon is listening on all ports (no iptables rules either)

2012-11-03 Thread Dave Shield
On 2 November 2012 23:18, Chris Bartram chrisrbart...@yahoo.com wrote: $ cat /etc/sysconfig/snmpd.options # snmpd command line options OPTIONS=-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a -x 0.0.0.0:161 $ man snmpd OPTIONS -x ADDRESS Listens for AgentX connections on the

Re: Not able to set value using snmpset

2012-10-31 Thread Dave Shield
On 31 October 2012 11:59, Anirudha Patil anirudha0...@gmail.com wrote: I have a concern about snmpset command. I'm not able to set a hrStorageDescr or hrStorageType. Correct. From the definition of these objects in HOST-RESOURCES-MIB: hrStorageType OBJECT-TYPE MAX-ACCESS read-only ::=

Re: Debugging SNMP

2012-10-29 Thread Dave Shield
On 29 October 2012 09:34, Sverre Moe sve...@spacetec.no wrote: I have tried to manually register 3 hard coded scalars, one by one, each with its own handler: [snip] This works fine and snmpget returns a value. However, if I put these 3 hard coded scalars OID in a list, iterate over that

Re: Debugging SNMP

2012-10-29 Thread Dave Shield
On 29 October 2012 10:10, Sverre Moe sve...@spacetec.no wrote: I have tried to seperate the registration call into two separate statements, same result. None of these are actually failing. When I call netsnmp_register_scalar(handler), it returns -1 which is MIB_DUPLICATE_REGISTRATION. So the

Re: Debugging SNMP

2012-10-29 Thread Dave Shield
On 29 October 2012 10:46, Sverre Moe sve...@spacetec.no wrote: I have also tried to output the handler memory address, and its not always unique. Don't know if it has anything to do with the problem. Hmmm as far as I can tell, this structure should be unique, but this duplication could

Re: Debugging SNMP

2012-10-29 Thread Dave Shield
On 29 October 2012 11:56, Sverre Moe sve...@spacetec.no wrote: Why does this work for my 3 hard coded scalars, but not my list of scalars? const oid scalar_oid[] = { 1,3,6,1,4,1,45678,1,1 }; OID_LENGTH(scalar_oid) gives value 9. const oid *scalar_oid = wrapper.getOid(); //Has same oid

Re: Debugging SNMP

2012-10-26 Thread Dave Shield
On 26 October 2012 12:16, Sverre Moe sve...@spacetec.no wrote: The first scalar group I tried to register got value 0(MIB_REGISTERED_OK). All the others got value -1(MIB_REGISTRATION_FAILED or MIB_DUPLICATE_REGISTRATION). Do the other groups use the same root OID as the first

Re: Debugging SNMP

2012-10-26 Thread Dave Shield
On 26 October 2012 13:29, Sverre Moe sve...@spacetec.no wrote: Full code of my scalar registration. Changed to register all scalars one by one instead of in group. The oid_wrapper class is a wrapper around oid that contains an oid pointer and the length of that oid. Try printing out the

Re: A MIB file dilemma

2012-10-25 Thread Dave Shield
On 25 October 2012 07:50, Sverre Moe sve...@spacetec.no wrote: The file system scenario was the closest example I could think of. The device I am creating a MIB file for has ALOT of parameters which is organized in a hierarchy must like a file system. Each node in the path can have a few

Re: get-next question

2012-10-19 Thread Dave Shield
On 19 October 2012 18:50, Joan Landry joan.lan...@overturenetworks.com wrote: When I walk a column in one table, and that table is empty I see that net-snmp is calling handlers for tables that are next in the oid table sequence. That is correct. Is there a reason why net-snmp goes to the

Re: get-next question

2012-10-19 Thread Dave Shield
On 19 Oct 2012, at 19:53, Joan Landry joan.lan...@overturenetworks.com wrote: Dave, If you start a walk on a column in table, the walk ends when it reaches the end of that table. The *walk* does, but the underlying GetNext request doesn't. Try turning on packet dumps for a walk. You

Re: OBJECT IDENTIFIER MACRO

2012-10-17 Thread Dave Shield
On 17 October 2012 06:36, Benix Vincent benixvinc...@yahoo.com wrote: To create a new branch rtmib, from dhct node I have the entry as below in mib file. Though trmib has many children, it is not manageable by itself. Hence, I used the MACRO 'OBJECT IDENTIFIER' Correct. --

Re: snmptrapd

2012-10-05 Thread Dave Shield
Just to clarify a couple of points: On 5 October 2012 05:55, Jatin Bodarya jatin.boda...@elitecore.com wrote: Example of snmptrapd.conf at location “/usr/local/share/snmp/snmptrapd.conf” This is a typical location for the snmptrapd.conf file if you're using a version that you've built

Re: handler problem (where to get table index)

2012-10-04 Thread Dave Shield
On 4 October 2012 01:38, Mark Gardinier m...@advancedtechcorp.com wrote: I can find the type of the data using requests-requestvb-type. First thing - remember that there may be more than one varbind passed to the handler routine. You shouldn't use 'requests-requestvb' directly.

Re: How to check the version of the Net-SNMP?

2012-10-04 Thread Dave Shield
On 3 October 2012 07:26, Yoshio KAWAMO kawamo.yos...@lab.ntt.co.jp wrote: Would you please tell me how to check what version of the Net-SNMP is installed on server machines? The easiest way would be to run the command snmpd -v and/or snmpget -V for the server/client side

Re: disman event mib monitor statement question

2012-09-12 Thread Dave Shield
On 11 September 2012 16:03, Manjul Rai manjul@gmail.com wrote: Thanks for your reply. I will try your recommendations; however, I was able to find a solution by exploiting a potential bug. That may or may not work - I don't really have the time to look at it properly at the moment. But I

Re: How to create a VACM view that blocks particular rows in a table

2012-09-10 Thread Dave Shield
On 10 September 2012 09:39, Suresh kumar skjaiswa...@hotmail.com wrote: We created the following view in snmpd.conf logic given below but its not working view myVacm included .1.3.6.1.6.3.15.1.2.2 view myVacm excluded

Re: disman event mib monitor statement question

2012-09-10 Thread Dave Shield
On 10 September 2012 18:49, Manjul Rai manjul@gmail.com wrote: I have read the man pages and it seems that the monitor statement only accepts one expression. I would love to find out if there is any way to do AND/OR logic in the monitor statement. That's essentially the purpose of the

Re: How to create a VACM view that blocks particular rows in a table

2012-09-07 Thread Dave Shield
On 7 September 2012 07:30, Suresh kumar skjaiswa...@hotmail.com wrote: Hi Dave Please find out of snmpwalk -v 2c -c public -On 172.16.3.151 1.3.6.1.6.3.15.1.2.2.1 .1.3.6.1.6.3.15.1.2.2.1.3. 17.128.0.31.136.128.176.43.0.0.5.141.73.80.0.0.0.0.

Re: A primary OID handler for a whole subtree

2012-09-07 Thread Dave Shield
On 5 September 2012 09:18, Sverre Moe sve...@spacetec.no wrote: I have created a MIB definition with the following structure: snmptranslate -Tp -OS MYCOMPANY-APP-MIB::myCompany +--myCompany(40463) | +--test(1) | +-- -R-- StringtestInfo(1) |Textual

Re: A primary OID handler for a whole subtree

2012-09-07 Thread Dave Shield
On 7 September 2012 12:38, Sverre Moe sve...@spacetec.no wrote: Yes it is a group of scalar. In my little example it is only one group, but it can potentially be many groups. There will never be other groups in a group that has scalars, but one group can have 2 group of scalars. For example

Re: How to create a VACM view that blocks particular rows in a table

2012-09-06 Thread Dave Shield
On 6 September 2012 07:23, Suresh kumar skjaiswa...@hotmail.com wrote: We created the following configuration in snmpd.conf. The engine ID is 0x80001f8880606307655045efc8; however the below configuration is not working. Please let us know if the engine ID used is correct? No - that is almost

Re: How to block read-write access to the default v3 users only

2012-09-04 Thread Dave Shield
On 4 September 2012 08:15, Suresh kumar skjaiswa...@hotmail.com wrote: We have added around 2 default users in the snmp persist file to enable v3 user creation/cloning through snmpusm utility. What VACM configuration should go into snmpd.conf to block read-write access to the default

Re: How to create a VACM view that blocks particular rows in a table

2012-09-04 Thread Dave Shield
On 4 September 2012 09:37, Suresh kumar skjaiswa...@hotmail.com wrote: But anyone who has rw/ro access to the Snmpusm table will be able to view these internal users starting with “default” as well. We want that when any operator accesses SNMPUSM table, he

Re: dpid2 - how to enable

2012-09-03 Thread Dave Shield
On 3 September 2012 14:35, Thomas Baumann SNMP tiri-s...@tiri.li wrote: I was told, dpid2 is included in snmpv3 Daemon. But how can this been enabled? See http://www.snmp.com/protocol/proxyinfo.shtml (Chapter 1.3.2 Native Subagent Adapter - DPI-II ). DPI2 support may well be included in the

Re: snmp v3 logging in SLES 11 SP1

2012-09-03 Thread Dave Shield
On 3 September 2012 14:45, Thomas Baumann SNMP tiri-s...@tiri.li wrote: I tried to configure SNMPD Logging to file / syslog in snmpd.conf? Following is ignored. logging file=/var/log/snmpdv3.log enabled logging size=10 level=255 Following error

Re: dpid2 - how to enable

2012-09-03 Thread Dave Shield
On 3 September 2012 15:22, tiri-s...@tiri.li wrote: does this mean net-snmpd lacks dpid2 functionality? Correct DPI was an experimental subagent extension mechanism from the early-mid 1990s, and primarily proprietary to IBM. It was one of the significant contributors to the development of the

Re: ENTITY-SENSOR-MIB doesn't work!

2012-08-23 Thread Dave Shield
On 23 August 2012 10:12, Nguyen Quoc Dinh nguyen.quocd...@zing.vn wrote: I want to get information from ENTITY-SENSOR-MIB and ENTITY-MIB... I added ENTITY-MIB ENTITY-SENSOR-MIB to /usr/share/mibs/netsnmp, and using Ubuntu 12.04. Have you written any code for the agent to implement this MIB?

Re: Is there a standard type Unsigned64 or Interger64?

2012-08-22 Thread Dave Shield
On 22 August 2012 08:08, Naama Bar Menachem naama.barmenac...@novelsat.com wrote: If I need an unsigned integer of size 64 bit, why not simply use Counter64? Because of the semantics of this type. The two Counter types (32 and 64-bit versions) are designed for monitoring changing values - there

Re: a problem on snmpv3 creation

2012-08-22 Thread Dave Shield
On 22 August 2012 02:14, zhufei zhu...@macrosan.com wrote: I used net-snmp-config to create a snmpv3 user, and everything was OK, so I can use the new v3 user. Was the agent running when you ran net-snmp-config ? The way that this command works, you need

Re: snmpget and snmpset don't work HELP PLEASE!

2012-08-20 Thread Dave Shield
On 20 August 2012 14:27, luiscc1989 luiscc1...@gmail.com wrote: I'm trying to install a new MIB (APACHE2-MIB) in my host and I think that it recognizes. I copied the MIB into the default mibdirs, however it doesn't get any data. Have you written any code for the agent to implement this MIB?

Re: How to get ipv6 address

2012-08-19 Thread Dave Shield
On 19 August 2012 09:05, Nguyen Quoc Dinh nguyen.quocd...@zing.vn wrote: snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.55 What do you see if you walk .1.3.6.1.2.1.55.8 ? No, with your both suggestion, I have this result: snmpwalk -v 2c -c public -m all localhost .1.3.6.1.2.1.55.8

Re: How to get ipv6 address

2012-08-18 Thread Dave Shield
On 18 August 2012 16:20, Nguyen Quoc Dinh nguyen.quocd...@zing.vn wrote: snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.55 What do you see if you walk .1.3.6.1.2.1.55.8 ? PS: I started with 1.3.6.1.2.1.55 when looking at IPV6-MIB (i add IPV6-MIB, IPV6-ICMP-MIB, IPV6-UDP-MIB, IPV6-TCP-MIB to

  1   2   3   4   5   6   7   8   9   10   >