Re: How to manipulate variables outside of SNMP gets / sets?

2013-01-23 Thread Dave Shield
On 22 January 2013 21:21, Guillermo Veneranda wrote: > I try what you say and... It's Works! :) But of course, oh ye of little faith > Let's go now for the SET! OK. So go back to the code generated by mib2c. Add the declaration of 'example1' as before, and tweak the MODE_GET block to report

Re: Problem in receiving traps

2013-01-22 Thread Dave Shield
On 22 January 2013 10:23, Geet Bhatia wrote: > I am trying to build a simple C trap receiver. Is there any reason why you don't wish to use the standard 'snmptrapd' application? > Here I am calling function netsnmp_transport_open_server with application > name and udp:162 as parameters. But thi

Re: How to manipulate variables outside of SNMP gets / sets?

2013-01-22 Thread Dave Shield
On 21 January 2013 20:20, Guillermo Veneranda wrote: > Hi, > I'm reading the files examples/netSnmpHostsTable* but I find these quite > difficult to understand, This is going to take a while. Maybe I should try > something easier that use subhandler function. > > Could you please show me a sim

Re: Index of table in SNMP Agent

2013-01-16 Thread Dave Shield
On 16 January 2013 08:31, Zheng, Wenjie (Barclay) 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 uses 'get_first' and 'get_nex

Re: Working on net-snmp

2013-01-14 Thread Dave Shield
On 13 January 2013 14:30, Vivek Nagaraj wrote: > I had a quick question. Can you please suggest me platform (OS) and tools > (IDE) used to develop and test feature/bugs? Basic advice - use what you are most comfortable with. I do most of my development on Linux, with a command-line terminal. If

Re: Working on net-snmp

2013-01-10 Thread Dave Shield
On 10 January 2013 16:00, Vivek Nagaraj wrote: > Any bugs / feature requests in net-snmp that you might think I can handle as > a fresher, can you please point me to? One relatively self-contained feature that should be reasonably straightforward to implement would be to extend the "forward" mech

Re: Working on net-snmp

2013-01-09 Thread Dave Shield
On 9 January 2013 14:03, Vivek Nagaraj wrote: > My passion was always to contribute a little bit to the opensource softwares. > This might also provide me a good insight of how net-snmp works behind the > scenes. OK - so you're looking for some idea about what you might do with/for the project

Re: need net-snmp 5.4.1 version source for debian

2013-01-08 Thread Dave Shield
On 8 January 2013 21:33, Suna Sana wrote: > I need net-snmp 5.4.1 source. Could you please share the link to get it. See http://sourceforge.net/projects/net-snmp/files/OldFiles/net-snmp-5.4.x/ Dave -- Master SQL Se

Re: Working on net-snmp

2013-01-08 Thread Dave Shield
On 8 January 2013 11:16, Vivek Nagaraj wrote: > I am interested to work on net-snmp. What are you wanting to do with the software? It's a bit difficult to offer advice given the level of detail you have provided so far :-) Dave ---

Re: How to use dlmod in net-smmp windows mode

2013-01-07 Thread Dave Shield
On 7 January 2013 19:53, Suna Sana wrote: > I added dlmod command in snmpd.conf under C:\usr\etc\snmp but its not > loading. > dlmod nstAgentModuleObjectTest test5DLL.dll > > test5DLL.dll has the function definition for init_ test5DLL.dll(). If the init function is called 'init_test5DLL.dll', the

Re: SNMP Agent engineboot

2013-01-07 Thread Dave Shield
On 7 January 2013 08:53, Zheng, Wenjie (Barclay) 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 like the standard Net-SNMP agent.

Re: SNMP Agent engineboot

2013-01-07 Thread Dave Shield
On 7 January 2013 02:45, Zheng, Wenjie (Barclay) 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 library should be taking care of

Re: Looking for H file

2013-01-06 Thread Dave Shield
On 6 January 2013 17:40, Summers, Scott H wrote: > One of the first things that MAN pages reference is to run SNMPCONF (which > I've found I need to create). snmpconf is one way to generate configuration files, yes. But it's not actually necessary to use this. As I said, these are simply text f

Re: Looking for H file

2013-01-06 Thread Dave Shield
On 6 January 2013 17:24, Summers, Scott H wrote: > At this point I'm simply trying to figure out how to generate the CONF files. The configuration files are simple plain text files. You can create them using your preferred text editor There's no need to use any specialised tools for this. See t

Re: SNMP Agent engineboot

2013-01-05 Thread Dave Shield
On 5 January 2013 13:21, Zheng, Wenjie (Barclay) 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 manager? You shouldn't need to to

Re: SNMP Agent engineboot

2013-01-05 Thread Dave Shield
On 5 January 2013 03:41, Zheng, Wenjie (Barclay) 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 values in the request don't match t

Re: SNMP requested timed out on windows

2013-01-04 Thread Dave Shield
On 4 January 2013 19:19, Niels Baggesen wrote: Is there a firewall . on the Linux host, that blocks SNMP? That was my immediate reaction too. If you're running iptables, and haven't tweaked the default settings, it probably only accepts incoming requests for specific, known services (which

Re: SNMP Agent log

2013-01-02 Thread Dave Shield
On 2 January 2013 08:45, Zheng, Wenjie (Barclay) 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 -ef|grep > snmpd"? What about "p

Re: netsnmp register char instance

2013-01-01 Thread Dave Shield
On 30 December 2012 23:08, SureshCilutions S wrote: > Is there any function for register "string/char variable" similar to > netsnmp_register_long_instance? netsnmp_register_watched_instance This can be used to handle strings or OID-valued variables. See 'examples/watched.c' in the source t

Re: Regarding snmp agent, subagent using AgentX

2012-12-30 Thread Dave Shield
On 30 December 2012 14:16, SureshCilutions S wrote: > I have compiled the sub agent using AgentX > Run the agent[snmpd] exe and subagent[exampled] exe separately, both are > running fine. Request the GET operation for the OID > ".1.3.6.1.4.1.8072.2.4.1.1.2.0" and received the response as "2"

Re: Index of table in SNMP Agent

2012-12-17 Thread Dave Shield
On 18 December 2012 05:53, Zheng, Wenjie (Barclay) 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 likely is it that they would be

Re: Index of table in SNMP Agent

2012-12-17 Thread Dave Shield
On 17 December 2012 01:18, Zheng, Wenjie (Barclay) wrote: > Thanks for your response, it's really helps. > Is there an example I can refer that SNNP can retrieve data from outside? Hmmm... there are probably not many examples of using the iterator to walk through external data. As I indica

Re: Index of table in SNMP Agent

2012-12-14 Thread Dave Shield
On 14 December 2012 06:45, Zheng, Wenjie (Barclay) 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, but as my data is from out s

Re: cache reload issue in agentX

2012-11-02 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 at the best of times - let alone at the moment. Keep discussions to the list, where others can bot

Re: cache reload issue in agentX

2012-11-01 Thread Dave Shield
On 1 November 2012 13:34, Jatin Bodarya wrote: >For example, is it actually necessary to dynamically > allocate memory within the 'getfield' routine? > This is then parsed as a decimal number, and > then released immediately. > > ->> yes as the original CSV file is very dynamically change its

Re: cache reload issue in agentX

2012-11-01 Thread Dave Shield
On 1 November 2012 10:50, Jatin Bodarya wrote: > (With attachment there is a full code) First question: Why are you creating two caches? I would expect this to double the loading time (Though given that poolTable_load1 doesn't seem to be defined anywhere, I can't see how this cod

Re: cache reload issue in agentX

2012-11-01 Thread Dave Shield
On 1 November 2012 09:13, Jatin Bodarya wrote: > Hi Dave, I'm actually taking something of a sabbatical from Net-SNMP support at the moment. It would be sensible to address your queries to the general community, rather than to me personally, as I'm relatively unlikely to respond > I have implem

Re: Notification on parameter change

2012-10-16 Thread Dave Shield
On 16 October 2012 14:10, Giuseppe Modugno wrote: > In this case, why to use the "service object" somethingChangedOID? The > OID of the changed instance can be retrieved from the "extra" (not > specified in the MIB) varbind that contains the value too, so the > OBJECTS clause for the notification

Re: Notification on parameter change

2012-10-16 Thread Dave Shield
On 16 October 2012 09:05, Giuseppe Modugno wrote: >> Remember that you can always append additional varbinds to a >> notification payload - over and above those listed in the MIB definitions. > Really? I thought I was forced to append just the varbinds defined in > the MIB. Which is the RFC wher

Re: Notification on parameter change

2012-10-16 Thread Dave Shield
On 16 October 2012 08:32, Giuseppe Modugno wrote: > Now I'd like to have an agent that sends a notification for *each* > parameter: if an alarm occurs, if the user change a setting (even > through SNMP SET) and so on. > > The only approach I know is to define in the MIB a different > NOTIFICATION-

Re: snmpwalk - Alternative SNMP port not available

2012-10-09 Thread Dave Shield
On 9 October 2012 14:02, Glenn Gagné wrote: > May be, it could be a good update to add this information in specific > manpage of snmpwalk $ man snmpwalk OPTIONS [snip] In addition to these options, snmpwalk takes the common options described in the snmpcmd(1) manual page

Re: snmpwalk - Alternative SNMP port not available

2012-10-08 Thread Dave Shield
On 5 October 2012 15:55, Glenn Gagné wrote: > But I have a problem with some equipments due to the lack of using an > alternative UDP port (non-standard UDP/161). I searched on the Internet to > known how to use an alternative port with snmpwalk and the answer was : This > option was removed in n

Re: How to manage scalars without serialization

2012-09-21 Thread Dave Shield
On 21 September 2012 08:23, Giuseppe Modugno wrote: > Another idea would be the use of caching data helper, but I don't if it > could be a real solution. Consider that many variables accessed from the > serial bus are analog signals (voltages, currents, ...) and they may > change frequently over t

Re: net-snmp agent problem

2012-09-12 Thread Dave Shield
On 12 September 2012 10:02, Jatin Bodarya wrote: > But the issue is with popen(); call... when I am using SNMPWALK > command to get value it is working perfectly and returning me correct > value... but only 10-15 time... then after popen fails ! Have you considered closing the pipe a

Re: How to solve this problem.

2012-09-11 Thread Dave Shield
On 11 September 2012 05:32, Jatin Bodarya wrote: > If the port is allocated to another process kill it with > Kill -9 PROCESSID Arggg No!! Do not NOT *NOT* use "kill -9" as your weapon of choice. Use a simple "kill" by all means - that at least allows the process a chance t

Re: CFV: Fix possible memory overrun in fsys_getfsstats.c

2012-08-22 Thread Dave Shield
On 22 August 2012 09:11, Schmoll Walter wrote: > ... as far as I know, strlcpy is not standard and only available on BSD > related > systems and slightly incompatible on Solaris (the return value is different) > but not on Linux related systems nor on Windows (just checked with my Ubuntu > 10.04

Re: OID name to numeric mapping.

2012-08-07 Thread Dave Shield
On 7 August 2012 15:59, Siva Esana -X (sesana - Tech Mahindra at Cisco) wrote: > No, the MIB modules are written by my group. > I have the source code. > The OIDs that I am working are enterprises OIDs. If these are enterprise OIDs being written by your own group, then I would have though you'd n

Re: OID name to numeric mapping.

2012-08-07 Thread Dave Shield
On 7 August 2012 13:09, Siva Esana -X (sesana - Tech Mahindra at Cisco) wrote: > The situation is we do not have MIB files as such and I want to generate the > MIB from the code. > Some kind of reverse engineering the MIB to say... If you don't have the MIB - then there is no way to (automatical

Re: OID name to numeric mapping.

2012-08-07 Thread Dave Shield
On 7 August 2012 12:41, Siva Esana -X (sesana - Tech Mahindra at Cisco) wrote: > But do the net-snmp agent also keeps the mapping array for its own purpose? Short answer: no, not really Longer answer: yes, but... Full answer: There are two situations where the agent needs to make a connec

Re: OID name to numeric mapping.

2012-08-07 Thread Dave Shield
On 7 August 2012 12:16, Siva Esana -X (sesana - Tech Mahindra at Cisco) wrote: > I would like to know whether the net-snmp derives and keeps an array of all > the OID names to OID number. > > I know a simple walk from the root will give all the OIDs implemented in > this agent. But what I am inter

Re: 5.7.2.pre3 published for testing

2012-08-06 Thread Dave Shield
On 6 August 2012 08:34, Bart Van Assche wrote: >> Doesn't this introduce a change in the API ? > > That change restores the API to what it has always been before July 30, > 2012 (see also commit 7374b84fe4c2ef8497fde3dae80a69aa89eba19c). So I'm > not breaking the API but restoring it ... Fair eno

Re: 5.7.2.pre3 published for testing

2012-08-06 Thread Dave Shield
On 5 August 2012 11:41, Bart Van Assche wrote: > --- a/agent/mibgroup/utilities/execute.h > +++ b/agent/mibgroup/utilities/execute.h > @@ -4,8 +4,8 @@ > config_belongs_in(agent_module) > > int run_shell_command(char *command, char *input, > - char *output, size_t *out_len)

Re: How to convert Port_instance to portnumber

2012-08-02 Thread Dave Shield
On 26 July 2012 11:46, wrote: > I want to convert a port instance internal name to its corresponding port > number. > > for example when I query a get Bulk for OID name ="fcsPortState" You need to consult the MIB file that defines the tables and other objects that you are looking at. For exampl

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-08-01 Thread Dave Shield
On 1 August 2012 07:23, Madhu Sudhana Rao wrote: > I think table is registering correctly, as I am getting snmpget output looks > correct Yes - that sounds reasonable. > only problem is with snmpwalk and getnext I see from your code that you are using the iterator helper. This is designed to

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-07-31 Thread Dave Shield
On 31 July 2012 13:14, Madhu Sudhana Rao wrote: > It is not part of the standard agent, I added this proprietary table. > > Copied .c and .h files of myifTable from (agent/mibgroup), which is working > properly (both snmpget & snmpwalk) in version 5.2.1 to version 5.6.2 but in > latest version o

Re: snmpwalk not working but snmpget is working on net-snmp 5.6.2

2012-07-31 Thread Dave Shield
On 30 July 2012 15:27, Madhu Sudhana Rao wrote: > I replaced net-snmp version 5.2.1 to 5.6.2 which is working on all the > tables but for one of the table, Which table? Is this one you wrote yourself, or part of the standard agent? >snmpget comman

Re: snmp table entry creation - issue

2012-07-31 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 31 J

Re: snmp table entry creation - issue

2012-07-30 Thread Dave Shield
On 30 July 2012 13:44, Rajeesh R wrote: > While creating a table entry using the command nmpset -v2c -c public > 192.168.3.163 .1.3.111.2.802.1.1.8.1.5.2.1.8 i 4 > I am geting a error like below > > Error in packet. > Reason: noAccess > Failed object: IEEE8021-CFM-MIB::dot1agCfmMdRowStatus Have y

Re: Option to change the output format of the command line tools

2012-07-27 Thread Dave Shield
On 11 July 2012 23:56, Wes Hardaker wrote: > Andreas Köster writes: > >> -Op PRECISION_STRING >> which allows to change the default behavior and inserts this precision >> string into the sprintfs used for output. > ... >> Another idea is to define a corresponding snmp.conf item. > > I think both

Re: Snmp walk

2012-07-27 Thread Dave Shield
On 26 July 2012 16:44, Anthony Bush wrote: > I need a bit of help with the snmpwalk command. Im trying to run a simple > test on a network switch to see if the ports are on or off using snmpwalk > but I can't seem to figure out the proper command to use in terms of the > arguments and options that

Re: Net-snmp compilation errors

2012-07-26 Thread Dave Shield
On 26 July 2012 09:59, Madhu Sudhana Rao wrote: > Sorry! I can't post companys propriety code here, because it has copyrights. > > Is there a way to compile the code with configure_require(mibII/interface) > line, by commenting other things like if-mib/ifTable? I have no idea - without seeing the

Re: SNMP-errors

2012-07-26 Thread Dave Shield
On 25 July 2012 14:22, Jatin Bodarya wrote: > I can’t grab integer values with read_objid() function. Correct - you can't. That's not what this API call is for. >From the mib_api(3) man page: read_objid takes a string containing a textual version of an object identifier (in ei

Re: Net-snmp compilation errors

2012-07-26 Thread Dave Shield
On 26 July 2012 09:11, Madhu Sudhana Rao wrote: > Problem is if I comment interface line, I am getting "no such object > available at this OID" for one my properity table which is related to > ifTable. OK - please post the code for your properity table (as attachments), so that we can take a look

Re: Net-snmp compilation errors

2012-07-26 Thread Dave Shield
On 26 July 2012 08:38, Madhu Sudhana Rao wrote: > I commented config_require(mibII/interfaces) and compilation done without > any issues So run with that. There's no problem - that's essentially what the 'mibII/ifTable' header does anyway Dave ---

Re: Net-snmp compilation errors

2012-07-25 Thread Dave Shield
On 25 July 2012 09:50, Madhu Sudhana Rao wrote: > Coming to net-snmp issue: > I am using my_mibs.h file in the agent/mibgroup to configure net-snmp > modules and my project related modules, where it has both lines... > > config_require(if-mib/ifTable) > config_require(mibII/interfaces) No - that

Re: Net-snmp compilation errors

2012-07-25 Thread Dave Shield
On 25 July 2012 06:51, Madhu Sudhana Rao wrote: > I replaced my old net-snmp (5.2.1) to 5.6.1. > > With old version 5.2.1 I didn't have any issues but with new version while > compiling I am getting errors, What O/S distribution (and version) are you working with? What was the full configure comm

Re: Implementing IP-MIB & UDP-MIB Standard mibs

2012-07-23 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 23 J

Re: 答复: check snmp storage have problem.

2012-07-23 Thread Dave Shield
On 23 July 2012 02:12, robin yin wrote: > # snmpwalk -v 2c -c public 10.101.161.131 .1.3.6.1.2.1.25.2.3.1 > hrStorageDescr.4 = STRING: E:\ Label:data Serial Number 88074d8d > hrStorageAllocationUnits.4 = INTEGER: 4096 Bytes > hrStorageSize.4 = INTEGER: 78642183 > hrStorageUsed.4 = INTEGER: 567487

Re: Implementing IP-MIB & UDP-MIB Standard mibs

2012-07-23 Thread Dave Shield
On 23 July 2012 07:52, Madhu Sudhana Rao wrote: > I want to implement udpEndpointTable of UDP-MIB.txt. Why? There is already an implementation of this table (The code for this is under 'mibgroup/udp-mib/udpEndpointTable') Why repeat something that has already been done? > I found that there ar

Re: got a Do command in h file

2012-07-20 Thread Dave Shield
On 2 July 2012 08:09, Chris Cossman wrote: > What is Do the .h file refer to? This is a comment within the 'mib2c' template - not the header file. It's indicating that this is the part of the template which generates the .h file Dave -

Re: Embedded linux install

2012-07-20 Thread Dave Shield
On 2 July 2012 12:50, Scales, Neil wrote: > I’m trying to install net-snmp 5.7.1 on an embedded linux system (fedora 7). > There aren’t any binaries on sourceforge for 5.7.1 > > I can’t do “yum install” or “rpm get” or whatever, so I need to transfer the > required files manually. > > Is there som

Re: check snmp storage have problem.

2012-07-20 Thread Dave Shield
On 17 July 2012 10:48, robin yin wrote: > When I use check_snmp_storage script to check windows server 2003’s storage, That's not part of the Net-SNMP suite, so it's a bit difficult to know exactly what it is doing. > I found the percentage is not correct on E drive. But on the other it is ok,

Re:

2012-07-20 Thread Dave Shield
On 18 July 2012 08:41, wrote: > To reproduce an issue ,we want to introduce delay on how Switch(SNMP > agent) responds when SNMP calls are made from our SNMP manger. Is there any > config change will do it from switch/agent side. I don't believe so, no. You are probably going to have to write

Re: Using Context-Name in Snmpv3 returns Authorization Error

2012-07-19 Thread Dave Shield
On 19 July 2012 15:55, wrote: > I am using VACM approach > My snmpd.conf file without contextname > createUser V3User MD5 "Password" This really belongs in the /var/net-snmp/snmpd.conf file > com2sec V3User default community This is not relevant for SNMPv3 It's concerned with

Re: Using Context-Name in Snmpv3 returns Authorization Error

2012-07-19 Thread Dave Shield
On 19 July 2012 11:08, wrote: > I have an application which worked perfectly in SNMpv3 in AuthnoPriv mode. > There is a requirement like a “context name” is to be added to the snmp > requests which is sent by the application. > I have only one snmpd server which sends responses back to this appl

Re: Tables and Indexes

2012-07-09 Thread Dave Shield
On 9 July 2012 06:41, Harvey Shepherd wrote: > I’m trying to design a MIB that contains two tables as follows: [snip] > Is it valid to define a table that is indexed by an external table’s object > that is not itself an index (hwAlarmDescPrivileged)? > > Any advice greatly appreciated. I'm n

Re: Net-SNMP Significant Figures

2012-07-06 Thread Dave Shield
On 5 July 2012 22:28, Alex Zannos wrote: > I am trying to use the snmpgetx method Where did you find mention of this method? What package are you using? I've just done a search of the Net-SNMP source code, and there's absolutely no mention of the name "snmpgetx" anywhere within our code, or docu

Re: Received response for SNMPv3 inform; but Agent still sending inform for the number of retries configured.

2012-06-20 Thread Dave Shield
On 20 June 2012 15:56, Suresh kumar wrote: > Following is the snmpd.conf configuration: > > trapsess -v 3 -Ci -r 1 -t 5 -e 0x80001f8880386a8adc0005946b -n "" -a SHA -A > mypassword -l authNoPriv -u traptest 192.168.101.226 and the snmptrapd.conf configuration? Dave

Re: CFV: fix bug 3532090 and high-index crashes in hrDeviceDescr

2012-06-19 Thread Dave Shield
On 19 June 2012 23:22, Wes Hardaker wrote: >> Any reason for adding the extra api? I would say this is a private api >> for snmpd, so we are free to change it > > I'm pretty sure the interface scanning APIs are heavily used in > 3rd-party apps that extend the ifTable.  There are zillions of MIBs t

Re: CFV: fix bug 3479740: mibgroup/host: fix hrSWRunPerfCPU and hrSWRunPerfMem for Linux

2012-06-19 Thread Dave Shield
On 18 June 2012 19:19, Niels Baggesen wrote: > The attached patch is a modified version of the patch attached to the bug. > In addition to finding the right data, it also uses atol to fetch the data > instead of atoi. And then it adds the proper scaling to the cpu value ... I'm inclined to vote f

Re: CFV: fix bug 3532090 and high-index crashes in hrDeviceDescr

2012-06-19 Thread Dave Shield
On 18 June 2012 23:10, Wes Hardaker wrote: > Patch #1 is simple and just increases the shift variable allowing > for 16 bits of index values instead of the previous 8 +1 > Patch #2 is a bit more complex and creates new integer based index > API for retrieving indexes and then ensure that they'r

Re: Help with creating a dymically loaded module

2012-06-18 Thread Dave Shield
On 13 June 2012 19:18, Cyrus Virus wrote: > I can compile the code using the make file, but when I try to run it I > get this error: > >> sudo snmpd -f -L nstAgentPluginObject.so, dldmod Where did you find that command? The instructions for loading the dynamic module in the tutorial you mentioned

Re: Wrong example

2012-06-07 Thread Dave Shield
On 6 June 2012 15:36, wrote: > Hi > > the example > > http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mib_module/nstAgentModuleObject.c > > Work with the "snmpget -v2c -c tutget localhost: > NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0" command > > but fail with > > "snmpset -v2c -c tut

Re: SNMP table: How to handle empty table cells?

2012-05-29 Thread Dave Shield
On 29 May 2012 11:32, Holger Klaas wrote: > I am trying to implement an SNMP table which can monitor several > inputs. The table looks like this: > > Column1: inputNumber (table index: 1,2,3 ...) > Column2: inputStatus  (disabled, signalLoss, signalPresent) > Column3: inputFlowId  (unsigned32) > C

Re: About Standard MIBs

2012-05-29 Thread Dave Shield
On 28 May 2012 06:55, Madhu Sudhana Rao wrote: > I am using Linux Ubuntu 11.04 system. > > In my current project we are using net-snmp 5.2.1 (old) version which didn't > have UDP-MIB.txt and some part of IP-MIB.txt implementation code. > > I took this implementation code from the latest net-snmp 5

Re: Empty response when querying UCD-SNMP-MIB memAvailReal.0

2012-05-29 Thread Dave Shield
On 21 May 2012 13:50, Jehan Badshah wrote: > I have installed Net-Snmp 5.2.1 on windows 2003 server First thing - that's a very old version of the agent (2005!), and the 5.2.x line is no longer being actively supported. Can you try with something a little newer? > and configured snmpt agent on

Re: Snmp message format

2012-05-28 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 28 M

Re: Snmp message format

2012-05-28 Thread Dave Shield
On 28 May 2012 14:13, Jasti Durgashree wrote: > I want to write my own c code for snmp message format. Why? > So which file I > should refer in net-snmp directory to write my own snmp header and pdu > format code and also how to map asn.1 d

Re: CFV: Include patch 3526599 in 5.{4,5}.2 releases

2012-05-24 Thread Dave Shield
On 23 May 2012 20:51, Niels Baggesen wrote: > Btw, haven't you forgot to git push after applying patch 3525998? > I have two fixes in the queue for 5.5 and 5.6 Apologies - now pushed. Dave -- Live Security Virtual Confe

CFV: Include patch 3526599 in 5.{4,5}.2 releases

2012-05-22 Thread Dave Shield
I'm just getting ready to roll out the rc2 versions of these two releases, and have been looking through the recent Bug and Patch trackers entries, to see whether there's anything been reported that needs fixing first. The above mentioned patch is the main one that caught my eye. It looks a fairly

Re: Issues using Active Monitoring, DisMan and Process Table together

2012-05-20 Thread Dave Shield
On 19 May 2012 12:41, Douglas Hubler wrote: > In short, the prErrorFlag flag in the prTable had to transition like so > > prErrorFlag values: >   0  => 1 => 0 => 1    OK - prFixIt event fired on each transition from 0 to 1 >   0  => 1 => 1 => 1    Not OK - prFixIt event only fired once That's cor

Re: UCD proc agent sending alarms

2012-05-15 Thread Dave Shield
On 15 May 2012 17:02, Douglas Hubler wrote: > Oh right, I can either wrap my commands that restart processes with a trap > command, thanks! That should work, yes - but I don't think it's what Richard meant. The DisMan Event MIB is designed to detect "interesting" events, and: a) trigger an

Re: What's the best way of finding out what's changed and why?

2012-05-09 Thread Dave Shield
On 9 May 2012 12:48, Lewis Adam-VNQM87 wrote: > Dissecting the ChangeLog, a typical couple of entries might be: > > 2011-09-22  Dave Shield > >   * : commit c55f608f16f160f5e79dc057f8878def462973e1 Author: Dave >  Shield Date:   Thu Sep 22 10:35:24 2011 >  +0100 That&#

Re: What's the best way of finding out what's changed and why?

2012-05-09 Thread Dave Shield
On 9 May 2012 12:12, Lewis Adam-VNQM87 wrote: > I am trying to determine exactly what code changes have occurred between > 2 different releases (including all releases in between). That's exactly what ChangeLog is for. It lists all the commit log messages, together with the files affected. CHANG

Re: setting snmp source port number

2012-05-06 Thread Dave Shield
On 6 May 2012 06:25, Magnus Fromreide wrote: > On Fri, 2012-05-04 at 09:05 +, Durga Sree wrote: >> Is it possible to set specified source port no. instead of available >> source port no.? > > It depends on the protocol. For UDPIPv4 the answer is no. Are you sure, Magnus? I haven't played w

Re: problem with snmpset

2012-05-03 Thread Dave Shield
On 3 May 2012 05:01, Durga Sree wrote: > Am able to solve that problem if i run with sysName am getting the correct > result > but when i use other objects am getting the following error > > root@newuser-desktop:/home/newuser# snmpset -v 2c -c private localhost > sysName.0 s "office" > SNMPv2-MI

Re: resourceUnavailable error: when to use?

2012-05-03 Thread Dave Shield
] On 3 May 2012 08:18, Giuseppe Modugno wrote: > Il 02/05/2012 23:50, Dave Shield ha scritto: >>    (You could perhaps make a case for returning noSuchInstance, >> but genErr is probably less misleading) > > With genErr error code there is another problem: the walk (GET NEXT

Re: doubt with generating the template code for eg:ifTable & ifEntry

2012-05-02 Thread Dave Shield
On 1 May 2012 17:50, Robert Story wrote: > On Tue, 1 May 2012 09:03:55 -0400 Jasti wrote: > JD> Instead of generating template code for ifTable (eg:) if we generate code > & > JD> adding necessary logic to the ifEntry code makes any difference? > JD> Because am comfortable with scalars rather tha

Re: resourceUnavailable error: when to use?

2012-05-02 Thread Dave Shield
On 2 May 2012 10:20, Giuseppe Modugno wrote: > Robert suggested to use SNMP_ERR_RESOURCEUNAVAILABLE in response to GET > requests of variables related to malfunction hardware sub-sections. > > Recently I was reading RFC 3416 (Version 2 of the Protocol Operations > for the Simple Network Management

Re: problem with snmpset

2012-05-01 Thread Dave Shield
On 1 May 2012 13:15, Jasti Durgashree wrote: >   I am facing a problem with snmpset, even though i have defined my mib > object to be read-write am getting the following problem >  so can anyone please help? Check the access control settings for your agent. >From the FAQ: Why can't I set any va

Re: Counter32 and Counter34: read-only/accessible-for-notify only

2012-04-24 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 23 A

Re: Proposed patches to mib2c conf files

2012-04-23 Thread Dave Shield
On 23 April 2012 05:47, Lawrence E Widman wrote: > Also, snmpset doesn't work with Counter32 or Counter64 because > the 'c' and 'C' types were inadvertantly omitted from the > current source. No - that was not an oversight. It is not permissable to SET counter-based objects. They are inherently r

Re: Generate warm start

2012-04-20 Thread Dave Shield
On 20 April 2012 07:47, Nguyen Dinh Phong wrote: > I'd like to know how to make the agent to generate the WarmStart trap. How to generate a warmStart trap is easy - just call send_easy_trap(1, 0); Deciding *when* to send a warmStart is much harder. Remember that this means that the agent i

Re: snmpset

2012-04-18 Thread Dave Shield
On 18 April 2012 16:44, Jasti Durgashree wrote: > i understood what is snmpset bt am asking how to parse oid in code >From the code file you referenced: oid name[MAX_OID_LEN]; size_t name_length; name_length = MAX_OID_LEN; snmp_parse_oid(names[count]

Re: Parsing a mib text file

2012-04-17 Thread Dave Shield
On 17 April 2012 13:34, Andrew Hood wrote: > Another vote for libsmi, but if you don't understand SMI syntax and > semantics quite well you will find smilint's error messages have a > steep learning curve. I'd have to say that if you don't understand SMI syntax and semantics fairly well, then you

Re: Parsing a mib text file

2012-04-17 Thread Dave Shield
On 17 April 2012 07:32, sadanand harkantra wrote: > I have a mib text file and want to check if there is any net-snmp command > that can be used to > parse a mib text file and check for any error in the text file. The Net-SNMP suite is probably not the right tool in this situation. Our MIB parse

Re: NET-SNMP

2012-04-10 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 10 April 2

Re: NET-SNMP

2012-04-10 Thread Dave Shield
On 9 April 2012 10:38, Jasti Durgashree wrote: > Hi all, am following the steps given in > http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent but > when am giving the below command am getting the result as follows: > > newuser@newuser-desktop:/$ snmpd -f -Lo -C --rocommunity=p

Re: Connect to main agent from AgentX Sub-agent

2012-04-10 Thread Dave Shield
On 5 April 2012 17:32, Ramakrishnan Sreenivasamallan wrote: > I am implementing a MIB module as a Agentx sub-agent. Inside my sub-agent > code, I need to set another OID. After searching in forum it seems to me > that I need to use snmp_open() and netsnmp_query_set() functions to open a > connecti

Re: changing debugTokens at runtime

2012-04-10 Thread Dave Shield
On 3 April 2012 16:23, Yun Li wrote: > I am trying to change the debugTokens at runtime. > From gdb, I can tell debugTokens are not reread (since debugTokens is > registered as premib_config_handlers, but during reconfig, only normal > config handlers are reread). .. I wonder what > is the id

  1   2   3   4   5   6   7   8   9   10   >