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

2013-01-23 Thread Dave Shield
On 22 January 2013 21:21, Guillermo Veneranda guillev...@gmail.com 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

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

2013-01-22 Thread Dave Shield
On 21 January 2013 20:20, Guillermo Veneranda guillev...@gmail.com 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

Re: Problem in receiving traps

2013-01-22 Thread Dave Shield
On 22 January 2013 10:23, Geet Bhatia geetbhati...@gmail.com 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

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: Working on net-snmp

2013-01-14 Thread Dave Shield
On 13 January 2013 14:30, Vivek Nagaraj nagaraj.vi...@gmail.com 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

Re: Working on net-snmp

2013-01-10 Thread Dave Shield
On 10 January 2013 16:00, Vivek Nagaraj nagaraj.vi...@gmail.com 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

Re: Working on net-snmp

2013-01-09 Thread Dave Shield
On 9 January 2013 14:03, Vivek Nagaraj nagaraj.vi...@gmail.com 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

Re: Working on net-snmp

2013-01-08 Thread Dave Shield
On 8 January 2013 11:16, Vivek Nagaraj nagaraj.vi...@gmail.com 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: need net-snmp 5.4.1 version source for debian

2013-01-08 Thread Dave Shield
On 8 January 2013 21:33, Suna Sana sureshsciluti...@gmail.com 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

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: 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: Looking for H file

2013-01-06 Thread Dave Shield
On 6 January 2013 17:24, Summers, Scott H scott.summ...@unisys.com 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

Re: Looking for H file

2013-01-06 Thread Dave Shield
On 6 January 2013 17:40, Summers, Scott H scott.summ...@unisys.com 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,

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: SNMP requested timed out on windows

2013-01-04 Thread Dave Shield
On 4 January 2013 19:19, Niels Baggesen n...@users.sourceforge.net 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

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: netsnmp register char instance

2013-01-01 Thread Dave Shield
On 30 December 2012 23:08, SureshCilutions S sureshsciluti...@gmail.com 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

Re: Regarding snmp agent, subagent using AgentX

2012-12-30 Thread Dave Shield
On 30 December 2012 14:16, SureshCilutions S sureshsciluti...@gmail.com 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

Re: Index of table in SNMP Agent

2012-12-17 Thread Dave Shield
On 17 December 2012 01:18, Zheng, Wenjie (Barclay) barclay.zh...@alcatel-lucent.com 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

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: 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

Re: cache reload issue in agentX

2012-11-01 Thread Dave Shield
On 1 November 2012 09:13, Jatin Bodarya jatin.boda...@elitecore.com 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

Re: cache reload issue in agentX

2012-11-01 Thread Dave Shield
On 1 November 2012 10:50, Jatin Bodarya jatin.boda...@elitecore.com 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

Re: cache reload issue in agentX

2012-11-01 Thread Dave Shield
On 1 November 2012 13:34, Jatin Bodarya jatin.boda...@elitecore.com 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

Re: Notification on parameter change

2012-10-16 Thread Dave Shield
On 16 October 2012 08:32, Giuseppe Modugno g.modu...@elettronika.it 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

Re: Notification on parameter change

2012-10-16 Thread Dave Shield
On 16 October 2012 09:05, Giuseppe Modugno g.modu...@elettronika.it 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.

Re: Notification on parameter change

2012-10-16 Thread Dave Shield
On 16 October 2012 14:10, Giuseppe Modugno g.modu...@elettronika.it 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

Re: snmpwalk - Alternative SNMP port not available

2012-10-09 Thread Dave Shield
On 9 October 2012 14:02, Glenn Gagné glenn.ga...@.gouv.qc.ca 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

Re: snmpwalk - Alternative SNMP port not available

2012-10-08 Thread Dave Shield
On 5 October 2012 15:55, Glenn Gagné glenn.ga...@.gouv.qc.ca 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

Re: How to manage scalars without serialization

2012-09-21 Thread Dave Shield
On 21 September 2012 08:23, Giuseppe Modugno g.modu...@elettronika.it 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

Re: net-snmp agent problem

2012-09-12 Thread Dave Shield
On 12 September 2012 10:02, Jatin Bodarya jatin.boda...@elitecore.com 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

Re: How to solve this problem.

2012-09-11 Thread Dave Shield
On 11 September 2012 05:32, Jatin Bodarya jatin.boda...@elitecore.com 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

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

2012-08-22 Thread Dave Shield
On 22 August 2012 09:11, Schmoll Walter walter.schm...@andritz.com 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

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) ses...@cisco.com 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

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) ses...@cisco.com 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

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) ses...@cisco.com 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

Re: 5.7.2.pre3 published for testing

2012-08-06 Thread Dave Shield
On 5 August 2012 11:41, Bart Van Assche bvanass...@acm.org 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,

Re: 5.7.2.pre3 published for testing

2012-08-06 Thread Dave Shield
On 6 August 2012 08:34, Bart Van Assche bvanass...@acm.org 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

Re: How to convert Port_instance to portnumber

2012-08-02 Thread Dave Shield
On 26 July 2012 11:46, najmudheen.thod...@emc.com 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

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 madhu...@gmail.com 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.

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

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 madhu...@gmail.com 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?

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 madhu...@gmail.com 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

Re: snmp table entry creation - issue

2012-07-30 Thread Dave Shield
On 30 July 2012 13:44, Rajeesh R rajeesh.thinkp...@gmail.com 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:

Re: Snmp walk

2012-07-27 Thread Dave Shield
On 26 July 2012 16:44, Anthony Bush anthonybus...@gmail.com 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

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 harda...@users.sourceforge.net wrote: Andreas Köster andreas.koes...@web.de 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

Re: Net-snmp compilation errors

2012-07-26 Thread Dave Shield
On 26 July 2012 09:11, Madhu Sudhana Rao madhu...@gmail.com 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

Re: Net-snmp compilation errors

2012-07-25 Thread Dave Shield
On 25 July 2012 06:51, Madhu Sudhana Rao madhu...@gmail.com 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

Re: Net-snmp compilation errors

2012-07-25 Thread Dave Shield
On 25 July 2012 09:50, Madhu Sudhana Rao madhu...@gmail.com 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)

Re: Implementing IP-MIB UDP-MIB Standard mibs

2012-07-23 Thread Dave Shield
On 23 July 2012 07:52, Madhu Sudhana Rao madhu...@gmail.com 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

Re: 答复: check snmp storage have problem.

2012-07-23 Thread Dave Shield
On 23 July 2012 02:12, robin yin robin@asiantrailschina.com 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

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

Re:

2012-07-20 Thread Dave Shield
On 18 July 2012 08:41, najmudheen.thod...@emc.com 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

Re: check snmp storage have problem.

2012-07-20 Thread Dave Shield
On 17 July 2012 10:48, robin yin robin@asiantrailschina.com 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

Re: Embedded linux install

2012-07-20 Thread Dave Shield
On 2 July 2012 12:50, Scales, Neil neil.sca...@dmh-global.com 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

Re: got a Do command in h file

2012-07-20 Thread Dave Shield
On 2 July 2012 08:09, Chris Cossman crcgrap...@gmail.com 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: Using Context-Name in Snmpv3 returns Authorization Error

2012-07-19 Thread Dave Shield
On 19 July 2012 15:55, basil.jos...@wipro.com 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

Re: Tables and Indexes

2012-07-09 Thread Dave Shield
On 9 July 2012 06:41, Harvey Shepherd harvey.sheph...@aviatnet.com 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

Re: Net-SNMP Significant Figures

2012-07-06 Thread Dave Shield
On 5 July 2012 22:28, Alex Zannos azan...@stanford.edu 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

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 skjaiswa...@hotmail.com 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 18 June 2012 23:10, Wes Hardaker harda...@users.sourceforge.net 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

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 n...@users.sourceforge.net 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 ...

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 harda...@users.sourceforge.net 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.  

Re: Help with creating a dymically loaded module

2012-06-18 Thread Dave Shield
On 13 June 2012 19:18, Cyrus Virus utnubu...@gmail.com 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

Re: Wrong example

2012-06-07 Thread Dave Shield
On 6 June 2012 15:36, reyn...@free.fr 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

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

2012-05-29 Thread Dave Shield
On 21 May 2012 13:50, Jehan Badshah jehan.bads...@nu.edu.pk 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

Re: About Standard MIBs

2012-05-29 Thread Dave Shield
On 28 May 2012 06:55, Madhu Sudhana Rao madhu...@gmail.com 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

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

2012-05-29 Thread Dave Shield
On 29 May 2012 11:32, Holger Klaas holger.kl...@gmail.com 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  

Re: Snmp message format

2012-05-28 Thread Dave Shield
On 28 May 2012 14:13, Jasti Durgashree shreemo...@gmail.com 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

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

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 n...@users.sourceforge.net 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 --

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

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

2012-05-20 Thread Dave Shield
On 19 May 2012 12:41, Douglas Hubler doug...@hubler.us 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

Re: UCD proc agent sending alarms

2012-05-15 Thread Dave Shield
On 15 May 2012 17:02, Douglas Hubler doug...@hubler.us 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:

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 adam.le...@cambiumnetworks.com 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

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 adam.le...@cambiumnetworks.com wrote: Dissecting the ChangeLog, a typical couple of entries might be: 2011-09-22  Dave Shield d.t.shi...@liverpool.ac.uk   * : commit c55f608f16f160f5e79dc057f8878def462973e1 Author: Dave  Shield d.t.shi

Re: setting snmp source port number

2012-05-06 Thread Dave Shield
On 6 May 2012 06:25, Magnus Fromreide ma...@lysator.liu.se 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

Re: resourceUnavailable error: when to use?

2012-05-03 Thread Dave Shield
May 2012 08:18, Giuseppe Modugno g.modu...@elettronika.it 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) stops

Re: problem with snmpset

2012-05-03 Thread Dave Shield
On 3 May 2012 05:01, Durga Sree durga.s...@lnties.com 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

Re: resourceUnavailable error: when to use?

2012-05-02 Thread Dave Shield
On 2 May 2012 10:20, Giuseppe Modugno g.modu...@elettronika.it 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

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 rst...@freesnmp.com 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

Re: problem with snmpset

2012-05-01 Thread Dave Shield
On 1 May 2012 13:15, Jasti Durgashree shreemo...@gmail.com 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

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

Re: Proposed patches to mib2c conf files

2012-04-23 Thread Dave Shield
On 23 April 2012 05:47, Lawrence E Widman wid...@cardiothink.com 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.

Re: snmpset

2012-04-18 Thread Dave Shield
On 18 April 2012 16:44, Jasti Durgashree shreemo...@gmail.com 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;

Re: Parsing a mib text file

2012-04-17 Thread Dave Shield
On 17 April 2012 07:32, sadanand harkantra cab...@rediffmail.com 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

Re: Parsing a mib text file

2012-04-17 Thread Dave Shield
On 17 April 2012 13:34, Andrew Hood ajh...@fl.net.au 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

Re: changing debugTokens at runtime

2012-04-10 Thread Dave Shield
On 3 April 2012 16:23, Yun Li yunli2...@gmail.com 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

Re: Connect to main agent from AgentX Sub-agent

2012-04-10 Thread Dave Shield
On 5 April 2012 17:32, Ramakrishnan Sreenivasamallan ramakrishnan.sreeniva...@gmail.com 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

Re: NET-SNMP

2012-04-10 Thread Dave Shield
On 9 April 2012 10:38, Jasti Durgashree shreemo...@gmail.com 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

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

Re: Question About Net-SNMP Version 5.3.2.2 (FW: SMS snmpWalk)

2012-04-06 Thread Dave Shield
On 5 April 2012 20:16, Kathleen Brown kbr...@anselm.edu wrote: What we have is a (hardware, not VMWare) server running the management for our intrusion prevention system here on campus That would be the CampusManager system from Bradford, I presume? (We use that too)   From a TippingPoint

Re: Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Dave Shield
On 4 April 2012 11:55, Chalapathi Rao c...@velocix.com wrote: We seem to be having the following issue with our snmpagent (using Net-SNMP Version:  5.3.2.2). First thing - that's a very old version (and the 5.3.x line is no longer actively supported). Would it be possible to try with something

Re: Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Dave Shield
April 2012 13:22, Chalapathi Rao c...@velocix.com wrote: Thanks for the prompt response Dave. Much appreciated. On Wed, 2012-04-04 at 13:05 +0100, Dave Shield wrote: On 4 April 2012 11:55, Chalapathi Rao c...@velocix.com wrote: We seem to be having the following issue with our snmpagent

Re: Net-SNMP Trap/INFORM Filtering

2012-04-04 Thread Dave Shield
On 4 April 2012 14:24, Chalapathi Rao c...@velocix.com wrote: Thanks Dave. Shall try the new version. Note that I doubt the Net-SNMP software version is relevant here. I strongly suspect the issue is related to SNMPv3 Informs, rather than filtering of Traps-vs-Informs. Dave

Re: Errors with Test T0072com2secunix_simple

2012-04-03 Thread Dave Shield
On 3 April 2012 23:15, Magnus Fromreide ma...@lysator.liu.se wrote: The test that fail are, principally, tu03c and tu03d but they fail in interesting ways. What seems to be happening is that the snmpd.conf file directives that contain very long fields are getting split over two lines instead of

Re: Errors with Test T0072com2secunix_simple

2012-04-03 Thread Dave Shield
On 3 April 2012 23:23, Dave Shield d.t.shi...@liverpool.ac.uk wrote: What seems to be happening is that the snmpd.conf file directives that contain very long fields are getting split over two lines instead of one. Scrub that suggestion - it seems to be an artifact of the application I

Re: Syntax Error during `make install`

2012-04-03 Thread Dave Shield
On 2 April 2012 21:52, Lomax, Michael P. mlo...@quadramed.com wrote: However when I run the `make install` I get a syntax error install:  installed net-snmp-create-v3-user.1 in /usr/local/share/man/man1 /bin/sh: 0403-057 Syntax error at line 1 : `;' is not expected. make: 1254-004 The error

Re: l'ajout de mibs dans snmp

2012-04-01 Thread Dave Shield
On 30 March 2012 16:12, Najouh adna...@yahoo.com wrote: /etc/snmp/snmp.conf: line 8: Warning: Unknown token: smuxsocket. /etc/snmp/snmp.conf: line 9: Warning: Unknown token: rocommunity. /etc/snmp/snmp.conf: line 10: Warning: Unknown token: com2sec. [etc] As DavidH has indicated, those

  1   2   3   4   5   6   7   8   9   10   >