RE: Does NET-SNMP support a linux machine with RedHat version 5.3?

2012-03-26 Thread Guy Kachlon
support a linux machine with RedHat version 5.3? On Tue, Mar 20, 2012 at 10:12:42PM -0700, Muli Farkas wrote: > Does NET-SNMP support a linux machine with RedHat OS version 5.3? > Can it be installed and run on this type of OS? Of course it is supported, as a matter of fact, try # yum searc

RE: Does NET-SNMP support a linux machine with RedHat version 5.3?

2012-03-26 Thread Guy Kachlon
Thanks -Original Message- From: David Sastre Medina [mailto:d.sastre.med...@gmail.com] Sent: Sunday, March 25, 2012 8:05 PM To: Muli Farkas Cc: net-snmp-users@lists.sourceforge.net; Danny Tourgeman; Guy Kachlon Subject: Re: Does NET-SNMP support a linux machine with RedHat version 5.3

Re: Does NET-SNMP support a linux machine with RedHat version 5.3?

2012-03-25 Thread David Sastre Medina
On Sun, Mar 25, 2012 at 11:30:39AM -0700, Guy Kachlon wrote: > Thanks after the installtion how can I run it > > On Tue, Mar 20, 2012 at 10:12:42PM -0700, Muli Farkas wrote: > > Does NET-SNMP support a linux machine with RedHat OS version 5.3? > > Can it be installed an

Re: Does NET-SNMP support a linux machine with RedHat version 5.3?

2012-03-25 Thread David Sastre Medina
On Tue, Mar 20, 2012 at 10:12:42PM -0700, Muli Farkas wrote: > Does NET-SNMP support a linux machine with RedHat OS version 5.3? > Can it be installed and run on this type of OS? Of course it is supported, as a matter of fact, try # yum search snmp on your RHEL. It should find th

Re: Obtain the number of instances in a table

2012-03-22 Thread Francois Bouchard
isting\n"); netsnmp_set_request_error( reqinfo, request, SNMP_NOSUCHOBJECT ); continue; } * (...) Francois One more question, 2012/3/20 Dave Shield > On 20 March 2012 16:23, Francois Bouchard > wrote: > > Is there also a way to known th

Does NET-SNMP support a linux machine with RedHat version 5.3?

2012-03-21 Thread Muli Farkas
Does NET-SNMP support a linux machine with RedHat OS version 5.3? Can it be installed and run on this type of OS? Thank you very much, Best, Muli Farkas QA Engineer Fundtech LTD 10 Hamada Street P.O. Box 4121 Herzliya, Israel 46140 E-mail: muli.far...@fundtech.com<mailto:fel...@fundtech.co

Re: Obtain the number of instances in a table

2012-03-20 Thread Dave Shield
On 20 March 2012 16:23, Francois Bouchard wrote: > Is there also a way to known the table length (in number of rows) ? In general, no. Depending on how the table is represented internally, the agent may not have access to this information at all (e.g. if you're using the iterator appr

Re: Obtain the number of instances in a table

2012-03-20 Thread Francois Bouchard
Ok, this variable's role is more clear now. Is there also a way to known the table length (in number of rows) ? Thanks, Francois 2012/3/20 Dave Shield > On 20 March 2012 14:26, Francois Bouchard > wrote: > > How to obtain the number of row composing a table ? > >

Re: How to get instance from a Request in Table_handler()

2012-03-20 Thread Simon Chamlian
ce < 0) { continue; } The problem is to avoid crashing the agent upon a set on wrong instance (row). In the case MODE_SET_ACTION: and case MODE_SET_RESERVE1: what should I do when the instance is wrong? if

Re: Obtain the number of instances in a table

2012-03-20 Thread Dave Shield
On 20 March 2012 14:26, Francois Bouchard wrote: > How to obtain the number of row composing a table ? > > I've tried (fromo the handler) : > table_info  = netsnmp_extract_table_info( request); > len = table_info->number_indexes; > > ...but l

Obtain the number of instances in a table

2012-03-20 Thread Francois Bouchard
Hello, How to obtain the number of row composing a table ? I've tried (fromo the handler) : table_info = netsnmp_extract_table_info( request); len = table_info->number_indexes; ...but len is always equal to 1, not the actual existing row instances. Thx,

Re: How to get instance from a Request in Table_handler()

2012-03-20 Thread Dave Shield
t_table_info(request); /** table_info->colnum contains the column number requested */ /** table_info->indexes contains a linked list of snmp variable bindings for the indexes of the table. Values in the list have been set corresponding to the inde

How to get instance from a Request in Table_handler()

2012-03-16 Thread Simon Chamlian
Hi, In the request handler function: int xxxTable_handler( netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info*reqinfo, netsnmp_request_info *requests) { netsnmp_request_info *request;

Re: Multiple Agents on a Platform Issues

2012-03-06 Thread Dave Shield
On 6 March 2012 04:26, Bob ONeil wrote: > I have the need to have two agents operating in isolation on a platform, > both extended using AgentX subagent techniques. > To establish different connections between the agents and the subagents, I > am using to different TCP ports,

Multiple Agents on a Platform Issues

2012-03-05 Thread Bob ONeil
I have the need to have two agents operating in isolation on a platform, both extended using AgentX subagent techniques. I have this working pretty well on the Linux platform, and starting up at Linux boot via SystemD scripting. This endeavor was based on content from the following URL

Re: Can a subagent change trap destination?

2012-03-05 Thread Dave Shield
'trapsink' and similar directives set up) > > That sounds promising.  Can I confirm that this is possible with a > subagent over the AgentX protocol? No. The AgentX protocol is specifically concerned with processing GET*/SET requests passed *from* the master agent to the subagent

Re: How do I add new rows to a table_data table?

2012-02-29 Thread Dave Shield
On 24 February 2012 18:11, Chris Smith wrote: > I've generated a table using mib2c.table_data.conf which works fine for > getting and setting existing rows, but segfaults when the user tries to > create a new row (because the row is null in the request info). What is the MIB def

Re: Can a subagent change trap destination?

2012-02-29 Thread Dave Shield
On 23 February 2012 08:00, Chris Smith wrote: > I'm coding a subagent which sends periodic reports using a trap, but it > needs to send them to a destination which is itself configured using an > SNMP set request. Try manipulating the snmpTargetAddrTable and snmpNotifyTable. Sett

How do I add new rows to a table_data table?

2012-02-24 Thread Chris Smith
I've generated a table using mib2c.table_data.conf which works fine for getting and setting existing rows, but segfaults when the user tries to create a new row (because the row is null in the request info). What is the correct way to implement this in the table handler? At the moment

Can a subagent change trap destination?

2012-02-23 Thread Chris Smith
Hi all, I'm coding a subagent which sends periodic reports using a trap, but it needs to send them to a destination which is itself configured using an SNMP set request. I can't find a way to directly achieve this, so is it possible to either: 1. Change the config of a running snmpd f

Cannot clone a user on SNMPv3

2012-02-06 Thread Andrew Ma
Hello, I am trying to clone a user by using snmpusm command to clone a new user, and it replies as the object is "notWritable". I don't know what setting do I need to do to make the object writable... In snmpd.conf, I have: rwuser initial createUser initial MD5 #

Re: a trouble about hrSystemDate

2012-02-06 Thread Bart Van Assche
2012/2/6 朱飞 > I have a trouble on SNMP Trap, that is: I need to send the device time > when trap happened, so I use hrSystemDate to catch the device time, and > everything is all right, but when I read the device time from trap, the > hrSystemDate can't be understand. When I g

a trouble about hrSystemDate

2012-02-06 Thread 朱飞
Dear Sir/Madam, Sorry for interrupt. I have a trouble on SNMP Trap, that is: I need to send the device time when trap happened, so I use hrSystemDate to catch the device time, and everything is all right, but when I read the device time from trap, the hrSystemDate can't be understand. W

Re: A question about when traps for monitored OIDs should be sent

2012-02-03 Thread Dave Shield
On 2 February 2012 15:46, Miyaoka, Randy - IS.CONTRACTOR wrote: > Running with net-snmp 5.0.9 That's a very, very, *very* old version of the software! The code for automatic monitoring has been completely re-written from scratch since then. I would strongly encourage you to upgrade to s

A question about when traps for monitored OIDs should be sent

2012-02-03 Thread Miyaoka, Randy - IS.CONTRACTOR
sent until a while later and on ten minute intervals. Can I get snmpd to send traps for monitored events quicker than what I am currently seeing? What is causing the delay? My full conf is as follows: ### # # snmpd.

RE: source IP filtering for a group of snmpv3 users

2012-01-26 Thread Frank Renwick
for a group of snmpv3 users On 26 January 2012 14:18, Frank Renwick wrote: > Using the VACM model in snmpd.conf, it is possible to restrict access > to v1 and/or v2c community strings based on source IP address of the > initiating NMS host (the host issuing snmpwalk, snmpget, etc)

Re: source IP filtering for a group of snmpv3 users

2012-01-26 Thread Dave Shield
s not. The Net-SNMP implementation of access control uses a proprietary mapping between community names and security names that takes note of the source IP address. I'm not 100% sure, but I seem to remember that this isn't actually part of the "offical" mechanism for mapping

source IP filtering for a group of snmpv3 users

2012-01-26 Thread Frank Renwick
host issuing snmpwalk, snmpget, etc) Is it possible to use source IP filtering for groups of SNMPv3 users? To provide a concrete example, what configuration is required to create different source IP restrictions for the two groups below? Say one wants to limit the group 'if_group' to a

Re: Start a script from a OID Trap

2012-01-20 Thread Greg Oliver
On Fri, 2012-01-20 at 18:17 -0200, Usuário do Sistema wrote: > Hello, I'm beginning a monitor task with traps snmp from my network > devices. I whish start a script when a kind of OID trap arrives in > the log. for exemplo follow a kind of OID trap. > > > 2012-01-19 15:

Start a script from a OID Trap

2012-01-20 Thread Usuário do Sistema
Hello, I'm beginning a monitor task with traps snmp from my network devices. I whish start a script when a kind of OID trap arrives in the log. for exemplo follow a kind of OID trap. 2012-01-19 15:31:51 192.168.2.171(via UDP: [192.168.2.171]:1024) TRAP, SNMP v1, community public S

Re: Install a Trap receiver on CentOS 5.7

2012-01-18 Thread Usuário do Sistema
Lf -c public /var/log/snmptraps >> >> I think I have change in an file.but where !?!? > > Two things wrong with this. > > Firstly, the next parameter after '-Lf' will be taken as the name > of the log file,   So this command will be trying to log to a file

Re: Install a Trap receiver on CentOS 5.7

2012-01-18 Thread Dave Shield
-Lf' will be taken as the name of the log file, So this command will be trying to log to a file called "-c". Secondly, you need to set the logging of the trap *receiver*, i.e. snmptrapd.Not the program used to send the trap (snmptrap) Have a look at where the snmptrapd comman

Re: Install a Trap receiver on CentOS 5.7

2012-01-18 Thread Usuário do Sistema
Thanks Dave, but it isn't work. follow what I done [root@testesq snmp]# snmptrap -Lf -c public /var/log/snmptraps I think I have change in an file.but where !?!? Em 18 de janeiro de 2012 14:03, Dave Shield escreveu: > 2012/1/18 Usuário do Sistema : >> now it's working. so...by default

Re: Install a Trap receiver on CentOS 5.7

2012-01-18 Thread Dave Shield
2012/1/18 Usuário do Sistema : > now it's working. so...by default tha traps are put to > /var/log/messages I whish change it to /var/log/snmptraps. > > how to can I reach this ? $ man snmpcmd LOGGING OPTIONS The mechanism and destination to use for logging of warning and error

Re: Install a Trap receiver on CentOS 5.7

2012-01-18 Thread Usuário do Sistema
12 06:47, Troels Arvin escreveu: > Usuário do Sistema wrote: >> anyone has a how to about configuration a trap receiver on CentOS ?? > > Add a file /etc/snmp/snmptrapd.conf containing the following line: > > authCommunity log public > > (If you want the community

Re: Install a Trap receiver on CentOS 5.7

2012-01-18 Thread Troels Arvin
Usuário do Sistema wrote: > anyone has a how to about configuration a trap receiver on CentOS ?? Add a file /etc/snmp/snmptrapd.conf containing the following line: authCommunity log public (If you want the community to be "public"; you probably do.) Then restart the trap daemon:

Install a Trap receiver on CentOS 5.7

2012-01-17 Thread Usuário do Sistema
Hello everyone, I'm about new in traps SNMP. so I wish a help with it. I want only receive traps from my network deivice on an linux machine CentOS 5.7. but I can't. I have installed the snmp package but I can't found the snmptrapd.conf in the /etc/snmp directory. this director

RE: Net-SNMP installation on a Windows 2008 x64 server.

2012-01-11 Thread David Phillips
n on a Windows 2008 x64 server. On 9 January 2012 23:02, David Phillips wrote: > I installed net-snmp-5.7.0-1.x86.. When I began to edit > C:\usr\etc\snmp\snmptrapd.conf I discovered that the file was not present. No - it's not installed automatically. You should create this you

Re: Net-SNMP installation on a Windows 2008 x64 server.

2012-01-10 Thread Dave Shield
On 9 January 2012 23:02, David Phillips wrote: > I installed net-snmp-5.7.0-1.x86.. When I began to edit > C:\usr\etc\snmp\snmptrapd.conf I discovered that the file was not present. No - it's not installed automatically. You should create this yourself with your favourite text editor, or usin

Net-SNMP installation on a Windows 2008 x64 server.

2012-01-10 Thread David Phillips
I would like some help with some difficulties with a Net-SNMP installation on a Windows 2008 x64 server. I installed net-snmp-5.7.0-1.x86. I then verified Net-SNMP Trap Handler service was present. Next, I successfully tested the install issuing snmptranslate -IR -Td IF-MIB::linkDown. The test

Re: solve a problem ,how can commit it ?

2011-12-28 Thread Dave Shield
On 20 December 2011 02:40, meijusan wrote: >        i find a bug in the net-snmp (5.4.2) and solve it ,how can commit it   >  ? Report the bug and solution in the project tracker See http://net-snmp.sourceforge.net/support/bugreports.html I've just been working through some of t

Re: No Such Instance when requesting multiple Counter64 on a table

2011-12-28 Thread Dave Shield
On 19 December 2011 10:12, elisa scandellari wrote: > I've got a problem when I do a get request on a table that contains > Counter64 values. > If I do a get request on a single value Counter64 the response is correct: > When I try to do: > snmpget -v 3 -a MD5 -A &q

solve a problem ,how can commit it ?

2011-12-22 Thread meijusan
hi: i find a bug in the net-snmp (5.4.2) and solve it ,how can commit it ? -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to

No Such Instance when requesting multiple Counter64 on a table

2011-12-19 Thread elisa scandellari
Hi, I've got a problem when I do a get request on a table that contains Counter64 values. My agent registers my private MIB file with the master agent, the MIB contains scalar objects and tables. Parity errors and hdlcAbort are part of table and they have 256 rows. If I do a get request

Re: A default set of modules for embedded environments

2011-11-29 Thread Dave Shield
IB modules - and then add any extra MIB modules that would be required. That seems a more appropriate approach for limited-memory devices, rather than advising you to strip out individual modules. But I'll certainly have a look at adding something about the effects

A default set of modules for embedded environments

2011-11-29 Thread Ofer Avitzur
bad for embedded devices (who most of the time do not really need the notification mib) and it creates a scenario where snmpd takes a lot of memory without the developer aware of it or the reason for this. The very least that needs to be done is to add some kind of documentation/remarks in the net

A few questions about AgentX on NET-SNMP

2011-11-13 Thread 梅亮
Hi NET-SNMP developers and users: I have encountered a few questions when trying to use net-snmp master agent and . Would you please help clarify and provide your input about the following questions? Thanks a lot My current situation is: in our system, we need net-snmp running on one device

Re: Writing a MIB Module

2011-11-10 Thread Dave Shield
On 9 November 2011 20:43, Simon Chamlian wrote: > After reading the tutorials for “Writing a MIB Module”, it seems that there > are 3 methods of adding our own MIB into the agent: > > 1)  Directly compiled in code > > 2)  Writing a subagent (AgentX), which

Writing a MIB Module

2011-11-09 Thread Simon Chamlian
Hi, After reading the tutorials for “Writing a MIB Module”, it seems that there are 3 methods of adding our own MIB into the agent: 1) Directly compiled in code 2) Writing a subagent (AgentX), which is another daemon that talks to snmpd via IPCs 3) Dynamically loaded shared

Re: Ask a question about snmpwalk: Timeout (Sub-id not found: (top) -> sysDescr)

2011-11-08 Thread Dave Shield
On 25 October 2011 16:16, joden <594866...@qq.com> wrote: >    when I set up the net-snmp on centOS 64bit server,to locahost,can get the > date.eg: > snmpwalk -v 3 -l authNoPriv -a MD5 -u 'username' -A 'pass' '127.0.0.1' > 'sysDescr' &

Ask a question about snmpwalk: Timeout (Sub-id not found: (top) -> sysDescr)

2011-10-25 Thread joden
hello net-snmp: when I set up the net-snmp on centOS 64bit server,to locahost,can get the date.eg: snmpwalk -v 3 -l authNoPriv -a MD5 -u 'username' -A 'pass' '127.0.0.1' 'sysDescr' -d get the infor: Sending 64 bytes to UDP: [127.0.0.1]:161->[0.

snmp operations failing when a engine-id is provided in the createUser directive in persistent snmpd.conf file

2011-10-17 Thread anand anand
are trying to perform a snmpwalk operation *./snmpwalk -v 3 -u initial -l authPriv -a MD5 -A setuppassphrase -x DES -X setuppassphrase -e 0x80001f888089d4a911f47e045e localhost SNMPv2-MIB::system* *Timeout: No Response from localhost* If the createUser directive is without the engine id in the

How shall I approach the project of making a bilingual snmpd?

2011-10-15 Thread Pete Wilson
Hello folks -- I apologize that this question comes from the uninformed, huddled masses: I've been away from snmp for three years and I've missed all of the net-snmp developments. I have to deliver a bilingual v2c/v3 snmpd for use in an embedded Linux system. I expect to use the

Re: Unexpected agent behaviour when walking a MIB

2011-09-19 Thread Ramon . Padilla
ndex parsing, but not much else. > > > Whether you need to worry about GetNext depends on exactly how your > module is being registered.Which is one reason why I suggested that > you post the code. OK. It looks like I need to know which function is called as a result of call

Re: Unexpected agent behaviour when walking a MIB

2011-09-15 Thread Dave Shield
On 15 September 2011 13:24, wrote: > Are you saying that the agent, under certain conditions on receipt of a > GETNEXT request, can invoke a call on my handler with a mode indicating get > (rather than getnext)? In order to answer this properly, I'll have to explain a bit about th

Re: Unexpected agent behaviour when walking a MIB

2011-09-14 Thread Dave Shield
On 14 September 2011 09:21, wrote: > This doesn't make any sense. The call-back handler should be invoked with a > mode indicating 'GetNext' and the OID 1.3.6.1.4.1.2257.11.1.1.1. Why is the > mode being changed from 'GetNext' to 'Get'? I haven

Unexpected agent behaviour when walking a MIB

2011-09-14 Thread Ramon . Padilla
Hi, I am using Net-SNMP version 5.7.1.pre2, having built it using Visual Studio 2008 with support for the agentx module and installed the Perl modules that are bundled with it. I have configured the agent to run as an AgentX master agent and I have a perl module that registers a sub-agent

Multiple Agents on a single workstation

2011-09-07 Thread Bob O'Neil
I need to have two instances of net-snmp operating at the same time on a single workstation under both Windows and Linux. Each instance would operate in isolation from each other so that an SNMP manager would be able to manage each application in isolation -- each of which will provide a

Is there a need for netsnmp_handler_registration_free?

2011-08-24 Thread Mishustin Kirill
looked in netsnmp_unregister_handler sources, but I can't surely say if it frees all resources allocated by netsnmp_create_handler_registration. The question is : Is there a need for netsnmp_handler_registration_free or just netsnmp_unregister_handler is enough? Thanks in

Re: starting snmpd on a different port

2011-08-16 Thread anand anand
lt; > hianandh...@gmail.com> said: > > aa> We have a requirement wherein we should be able to change the SNMP port > ( > aa> 161 ) to a new value at runtime without restarting the agent. > aa> After the change Net-Snmp agent should run only on the new port. > >

Re: starting snmpd on a different port

2011-08-10 Thread Wes Hardaker
>>>>> On Wed, 10 Aug 2011 16:49:27 +0530, anand anand >>>>> said: aa> We have a requirement wherein we should be able to change the SNMP port ( aa> 161 ) to a new value at runtime without restarting the agent. aa> After the change Net-Snmp agent should

starting snmpd on a different port

2011-08-10 Thread anand anand
Hello all, We have a requirement wherein we should be able to change the SNMP port ( 161 ) to a new value at runtime without restarting the agent. After the change Net-Snmp agent should run only on the new port. Is this possible with net-snmp ? If yes, then how this can be achieved ? Any API&#

Re: Running snmp agent as a thread

2011-08-05 Thread Bart Van Assche
On Fri, Aug 5, 2011 at 9:14 AM, jatinder goswami wrote: > I have a requirement to run SNMP Agent as a thread in my application (The > application in running on Linux based embedded system). > > Following are the changes I have done for same: > 1. Modified main() function in a

Running snmp agent as a thread

2011-08-05 Thread jatinder goswami
Hi All, I have a requirement to run SNMP Agent as a thread in my application (The application in running on Linux based embedded system). Following are the changes I have done for same: 1. Modified main() function in agent/snmpd.c to snmpd_main(). 2. Compile snmpd.c as a shared library which is

Re: Sample code to generate a Trap

2011-08-04 Thread Dave Shield
On 4 August 2011 23:03, N. Karthikeyan wrote: >     Could any please share the sample implementation > for generating SNMP Traps using net-snmp? See apps/snmptrap.c Dave -- BlackBerry® DevCon Americas, Oct. 18-20, S

Sample code to generate a Trap

2011-08-04 Thread N. Karthikeyan
Hi All,     Could any please share the sample implementation for generating SNMP Traps using net-snmp? Thanks, -karthi-- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile develop

Re: Add output of extend to a triggered event

2011-08-02 Thread Dave Shield
On 2 August 2011 13:45, Fedil Grogan wrote: > Thanks for the reply, but I did see this. Could you show me an example? > When I tried adding -o nsExtendOutLine it didn't work. You need to specify the full instance (just as you're doing with the OID being monitored) Try monitor -r 300 -I -u

Re: Add output of extend to a triggered event

2011-08-02 Thread Fedil Grogan
Thanks for the reply, but I did see this. Could you show me an example? When I tried adding -o nsExtendOutLine it didn't work. Thanks, Fedil On Aug 2, 2011, at 4:33 AM, Dave Shield wrote: > On 28 July 2011 18:36, Fedil Grogan wrote: >> The monitor config in my snmpd.conf file looks like so:

Re: Add output of extend to a triggered event

2011-08-02 Thread Dave Shield
On 28 July 2011 18:36, Fedil Grogan wrote: > The monitor config in my snmpd.conf file looks like so: > monitor -r 300 -I -u public nra2Tomcat nsExtendResult."nra2TomcatCheck" != 0 > So how can I include the nsExtendOutLine to the event that gets > triggered and sent as the snmp trap? $ man

Re: Patching with a Diff file on windows

2011-08-02 Thread Dave Shield
of the Net-SNMP agent - snmpd You would need to recompile the agent > So I presume, if it needs to be compiled, it would be part of a larger > recompilation. > If that is the case, could you point me to documentation  on how to > accomplish

Add output of extend to a triggered event

2011-07-28 Thread Fedil Grogan
Hello,    I've been trying to figure this out without much success. Maybe I just don't know exactly what to look for but I can't seem to find the answer. I would be grateful for any help someone could give me.    What I've done is setup a couple monitors in my snmpd.conf file

looking for a Sample snmptrapd.conf file

2011-07-26 Thread Innocents Sia
Hello SNMP-Users I´m new in using Net-SNMP. can someone send me a sample “snmptrapd.conf” file. Thank You. -- Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market

Re: Query on Trap/Inform sent from a sub-agent based on agentx

2011-07-25 Thread anand anand
Hello Dave, I was providing the snmpd.conf file location from command line using -c option, while the snmpd alerady had SNMPCONFPATH configured. ( Although both were pointing to the same path ). Once i removed the -c option from command line the problem of duplicate Traps went away. My bad :(. T

Need confirmation for a potential performance improvement when applying NETSNMP_ITERATOR_FLAG_SORTED to table_iterator (needs a small change in net-snmp).

2011-07-21 Thread Ivo Faldini
Hi all, I'm happy to tell you that I got a big improvement on performance when applying NETSNMP_ITERATOR_FLAG_SORTED to table_iterator , but I need confirmation that I'm in the correct way correctly, because right now it is working partially - only when getting the fi

Re: Patching with a Diff file on windows

2011-07-21 Thread keith . abbott
folder for netsnmp, I dont see any EXEs that are named extend. So I presume, if it needs to be compiled, it would be part of a larger recompilation. If that is the case, could you point me to documentation on how to accomplish this step? thanks again k From: Wes Hardaker To: keith.abb

Re: Query on Trap/Inform sent from a sub-agent based on agentx

2011-07-21 Thread anand anand
Hello Dave, Before making the test, the NSN NMS entry was removed from the snmpd.conf file. After this the snmpd and snmptrapd were restarted. Kindly let me know any keywords which i can look at in the snmpd log which can help root cause the issue or any other information which you may need from

Re: Query on Trap/Inform sent from a sub-agent based on agentx

2011-07-21 Thread Dave Shield
On 21 July 2011 11:46, anand anand wrote: > In my snmpd.conf file i have only one entry for > trap2sink  10.10.10.188:162 public Obvious question first - what is the address of the other trap2sink entry that you mentioned ? (nsn.nms.com) Dave ---

Re: Query on Trap/Inform sent from a sub-agent based on agentx

2011-07-21 Thread anand anand
Hello Now i am able to see the trap in snmptrapd . The subagent is sending the trap to snmpd only once, but some how the output of snmptrapd shows the sent trap received 2 times. In my snmpd.conf file i have only one entry for trap2sink 10.10.10.188:162 public ./snmptrapd -f -Le -d Received

Re: Query on Trap/Inform sent from a sub-agent based on agentx

2011-07-21 Thread Dave Shield
On 20 July 2011 20:23, anand anand wrote: > In my snmpd.conf i have the following entry: > >  trap2sink 10.10.10.112:162 public >  trap2sink nsn.nms.com:162 public > > Is this the correct syntax. Yes >I read the following in snmpd.conf man page .. >   "This mechanism is

Re: Query on Trap/Inform sent from a sub-agent based on agentx

2011-07-20 Thread anand anand
sport specification HOST instead." So does my above entry in snmpd.conf holds good ? If not what needs to be changed. A example will bevery helpful. If the above syntax holds good then i am good to start my tests on notifications. Regards -anand On Wed, Jul 20, 2011 at 9:09 PM, Dave Shield wr

Re: Query on Trap/Inform sent from a sub-agent based on agentx

2011-07-20 Thread Dave Shield
d  forwards this trap/inform to a receiver, which can be > snmptrapd or any other receiver. > > Is my above understanding correct ? Yes > Do we also need to build the Trap MIB into net-snmp ? No Dave -- 10 Tips

Query on Trap/Inform sent from a sub-agent based on agentx

2011-07-20 Thread anand anand
Hello all, We are using agentx protocol to communicate between net-snmp and our application. The GET/SET/GET NEXT functionality are working fine. My query/doubt is about traps. ( I am a very new to trap/inform forwarding ) Please let me know if my understanding is correct : - Application

Re: Patching with a Diff file on windows

2011-07-20 Thread Dave Shield
On 19 July 2011 17:11, wrote: > Also can you tell me how I can become a member of net-snmp users group > so a moderator doesn't have to approve all of my posts? See the footer at the end of every message sent to the list: > Net-snmp-users mailing list > Net-snmp-users@list

Re: Patching with a Diff file on windows

2011-07-20 Thread keith . abbott
Thanks for the response. I had originally installed net-snmp via OpenXtra (quite a while back) and had not directly installed a GNU4Windows. I have done so now and am working through the process of figuring out how to apply the patch Also can you tell me how I can become a member of net-snmp

Re: Patching with a Diff file on windows

2011-07-17 Thread Wes Hardaker
>>>>> On Tue, 12 Jul 2011 10:57:02 -0500, keith.abb...@pattersoncompanies.com >>>>> said: ka> Cound someone provide the steps, or point me to documentation that ka> explains how to use a Diff file to apply a NetSNMP patch? I'm running on ka> a win

Patching with a Diff file on windows

2011-07-14 Thread keith . abbott
Hello, Cound someone provide the steps, or point me to documentation that explains how to use a Diff file to apply a NetSNMP patch? I'm running on a windows XP platform. thanks for your help. k NOTICE: This email transmission and any attachments that accompany it may contain information

Re: Looking for a way to persist SNMPv3 user configuration

2011-06-27 Thread Boris Zweimueller
Wes Hardaker: > >>>>>>> On Thu, 23 Jun 2011 10:34:41 +0200, Boris Zweimueller >>>>>>> said: >> >> BZ> Is there a way that users which have been configured with the >> BZ> *snmpusm *command dynamically still exist after restart

Re: Looking for a way to persist SNMPv3 user configuration

2011-06-26 Thread Boris Zweimueller
; Thanks for the hint! That was exactly the problem..! Boris -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security t

Re: Looking for a way to persist SNMPv3 user configuration

2011-06-26 Thread Dave Shield
persistent file. Dave -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sens

Re: Looking for a way to persist SNMPv3 user configuration

2011-06-26 Thread Boris Zweimueller
Thanks for your advice! Am 24.06.2011 um 01:32 schrieb Wes Hardaker: >>>>>> On Thu, 23 Jun 2011 10:34:41 +0200, Boris Zweimueller >>>>>> said: > > BZ> Is there a way that users which have been configured with the > BZ> *snmpusm *comman

Re: Looking for a way to persist SNMPv3 user configuration

2011-06-23 Thread Wes Hardaker
>>>>> On Thu, 23 Jun 2011 10:34:41 +0200, Boris Zweimueller >>>>> said: BZ> Is there a way that users which have been configured with the BZ> *snmpusm *command dynamically still exist after restarting the BZ> agent? BZ> Can the content of these tables

Looking for a way to persist SNMPv3 user configuration

2011-06-23 Thread Boris Zweimueller
Hi all Is there a way that users which have been configured with the *snmpusm *command dynamically still exist after restarting the agent? Can the content of these tables be saved somehow? What I need to do ist the following: - The device is initially shipped with a default user/password

Re: Net-snmp: How to receive a trap with random engine ID?

2011-06-03 Thread Xiang Li
Hi On 6/3/2011 1:39 AM, chengkeke wrote: Hi All, *I have a issue about receiving snmp v3 trap.* Is it possible to receive a trap if use a random engine id when send the trap? If yes, how can I config it? That is likely impossible and is maybe especially true for authPriv Traps, without

Net-snmp: How to receive a trap with random engine ID?

2011-06-03 Thread chengkeke
Hi All, I have a issue about receiving snmp v3 trap. Is it possible to receive a trap if use a random engine id when send the trap? If yes, how can I config it? [Notes: In MIB browser, it can parsing trap information with random engineid. ] If use a fix engine id, I can see the trap

RE: running SNMPGET to poll from a port other than 161

2011-05-16 Thread Ujjval Karihaloo
That worked Thx a lot *From:* Fulko Hew [mailto:fulko@gmail.com] *Sent:* Friday, May 13, 2011 12:08 PM *To:* Ujjval Karihaloo *Cc:* net-snmp-users@lists.sourceforge.net *Subject:* Re: running SNMPGET to poll from a port other than 161 On Fri, May 13, 2011 at 1:14 PM, Ujjval

Re: running SNMPGET to poll from a port other than 161

2011-05-13 Thread Fulko Hew
On Fri, May 13, 2011 at 1:14 PM, Ujjval Karihaloo wrote: > Looks like snmpget polls only on port 161, any way to set the port number > when using snmpget. I don’t see any option in the help..any hidden commands > there? > snmpget ... hostname:port ... see: man snmpcmd under the section called

running SNMPGET to poll from a port other than 161

2011-05-13 Thread Ujjval Karihaloo
Looks like snmpget polls only on port 161, any way to set the port number when using snmpget. I don’t see any option in the help..any hidden commands there? -- Achieve unprecedented app performance and reliability What eve

Subagent crashes when retrieving data from a table with two indexes

2011-05-11 Thread Alec Edgington
Hi, I am running net-snmp 5.5 as a daemon with a subagent I've written using mib2c (using the MFD framework for the tables). An snmpwalk works fine until it gets to a table which has two numerical (Integer32) indices. At which point it executes the code to fetch the data, and then abr

Re: which variable type to use when extending a unsigned32 or gauge32

2011-05-10 Thread Leo Lin
ect: Re: which variable type to use when extending a unsigned32 or gauge32 To: "Leo Lin" Cc: net-snmp-users@lists.sourceforge.net Date: Tuesday, May 10, 2011, 12:55 AM On 10 May 2011 03:08, Leo Lin wrote: > I have a scalar OID of unsigned32.  On my mib module, I declare a vari

Re: which variable type to use when extending a unsigned32 or gauge32

2011-05-10 Thread Dave Shield
On 10 May 2011 03:08, Leo Lin wrote: > I have a scalar OID of unsigned32.  On my mib module, I declare a variable > that hold an unsigned int, like so, > > unsigned int my_oid; Such variables are typically declared as 'long' rather than 'int'. But I doubt that

<    1   2   3   4   5   6   7   8   9   10   >