Re: source IP filtering for a group of snmpv3 users

2012-01-26 Thread Dave Shield
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) Strictly speaking - no, it's not. The Net-S

Re: Install a Trap receiver on CentOS 5.7

2012-01-18 Thread Dave Shield
2012/1/18 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 !?!? Two things wrong with this. Firstly, the next parameter after '-Lf' will be taken as the n

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: Problem building net-snmp 5.7.1 with embedded Perl support (no large files) on Solaris 10

2012-01-17 Thread Dave Shield
On 17 January 2012 13:51, Joel Hansell wrote: > I think my Google-fu was weak when I emailed this, because I only now > found another user with the same issue on Linux and net-snmp 5.4, and > it turns out to be related to the "--disable-mib-loading" flag. All > other factors constant, if I remove

Re: MFD mib2c.mfd.conf Cannot find module (NetSNMP): At line 1 in (none).

2012-01-16 Thread Dave Shield
On 16 January 2012 22:43, Francois Bouchard wrote: > Yes I assume I've correctly installed the Net-SNMP perl module, because I > can run the script mib2c.mfd.conf on the MIB test (NET-SNMP-TUTORIAL-MIB), Yes, of course - the script is getting past that point. My mistake. OK - next thing: what

Re: snmptrap question

2012-01-14 Thread Dave Shield
On 13 January 2012 20:39, Simon Chamlian wrote: > Now my MIB declares a NOTIFICATION-TYPE: > I don't understand the OBJECTS part. Can we send the values > of all these objects in the trap details? Yes. More strongly - you *must* send the values of all these objects in the trap. Dave -

Re: Agent Address in Trap Message is not as expected

2012-01-14 Thread Dave Shield
On 11 January 2012 09:13, wrote: > It is found that NET-SNMP Agent sets the first UP and RUNNING interface IP > address as the AgentAddress in the trap message send from the Agent to the > SystemManager, instead of the IP address of the actual interface that is > connected to the SystemManager.

Re: MFD mib2c.mfd.conf Cannot find module (NetSNMP): At line 1 in (none).

2012-01-14 Thread Dave Shield
On 13 January 2012 17:19, Francois Bouchard wrote: > I cannot generate C code in the agent to send values for a table (my own MIB). > The error seems to be that it search and Cannot find module (NetSNMP): At > line 1 in (none). > > What Could be wrong ? Let's start with the obvious - have you ins

Re: using monitor to trap (extend vs proxy)

2012-01-12 Thread Dave Shield
On 12 January 2012 14:59, Greg Oliver wrote: > Is there any way to use monitor to compare strings versus integers? No - I don't think so. The DisMan Event MIB is designed to work with integer values only. (Well, strictly speaking the mteTriggerExistance tests should work with any type of

Re: creating persistent directory

2012-01-12 Thread Dave Shield
On 12 January 2012 09:09, Harish Jadhav wrote: > In persistent folder I found 4 index files which suppose to be 2 > as I am loading only two directories. > I am wondering why it created 4 files at the first instance. Pass. If you look at these index files (which are simply text files), then

Re: using monitor to trap (extend vs proxy)

2012-01-12 Thread Dave Shield
On 12 January 2012 02:59, Greg Oliver wrote: > I've been banging my head most of the day trying to make something work. > I'm trying to use the monitor feature to trap (resulting in email) to > notify me when another process's snmp engine is not responding. > > I have a mix of java jvms and regula

Re: creating persistent directory

2012-01-12 Thread Dave Shield
On 12 January 2012 06:01, Harish Jadhav wrote: > I have compiled netsnmp 5.7.1 for windows version > I am loading mibs from my application directory in the code using > setenv(mibdirs,path, 0) but it is creating the index files in > c:\\usr\snmp\persist directory. Yes - that is correct. > In ea

Re: snmptrap question

2012-01-11 Thread Dave Shield
On 11 January 2012 21:31, Simon Chamlian wrote: > I'm issuing the following snmptrap command: > > snmptrap -v 3 -u  testrwauth -a MD5 -A "authentication test" -l authNoPriv > 172.27.57.34  42  MPBC-RMH-MIB::mpbcRMH-Mon-HPU-State What is the definition of the MIB object mpbcRMH-Mon-HP

Re: help

2012-01-11 Thread Dave Shield
2012/1/11 胡斌 : >    Running at freescale 8308,"Get" can work right,but "Set" return > "NoSuchName", How have you configured the agent? What do the access control elements of snmpd.conf look like? It's fairly common to allow read-only access, so GET* requests will work, but SET will not. If you d

Re: Stop

2012-01-10 Thread Dave Shield
On 10 January 2012 00:00, John Davidson wrote: > How to I Stop the program from running? Which program? On what operating system? How did you start it? If you're talking about "snmpd" on a Unix-style box (including Mac OS X), then you can terminate it by running "ps -ef | grep snmpd" (

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

Re: IS password "12345678" and "1234567812345678" same for snmpv3 users ?????

2012-01-05 Thread Dave Shield
On 5 January 2012 12:09, Kumar Sanjay-XJD784 wrote: > I have configure the snmpv3 user password for > authentication–SHA1 > and privacy-AES as “symbol123” > > But when I try to do the snmp operation with the password “symbol123” or >  “symbol123symbol123” or “symbol123symbol123sy

Re: compile net-snmp-5.7.1 under Cygwin reports error

2012-01-04 Thread Dave Shield
On 4 January 2012 10:28, Tao Zhou wrote: > Thanks Bart for your quick response, I tested as your suggestion, as get the > below result. > > $ grep SIZEOF_ config.status > D["SIZEOF_SHORT"]=" " > D["SIZEOF_INT"]=" " > D["SIZEOF_LONG"]=" " > D["SIZEOF_LONG_LONG"]=" " > D["SIZEOF_INTMAX_T"]=" " > D["

Re: snmptrap/snmpinform port number

2012-01-03 Thread Dave Shield
On 3 January 2012 18:36, Simon Chamlian wrote: > snmpinform/snmptrap port number is set to 162 by default. > > Is there any way we can change the port number through command line or it is > hard coded? $ man snmpcmd AGENT SPECIFICATION The string AGENT in the SYNOPSIS above specifie

Re: snmptrap

2012-01-03 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 3 January 201

Re: adding MIBs

2012-01-01 Thread Dave Shield
On 1 January 2012 10:50, Leila M wrote: > I'm using net-snmp with gcc and I want to send requests to the snmp > agent to verify the value of some oid. > the problem is that the MIB containing those oids doesn't exist (in > the folder containing the MIB files i.e .../usr/share/mibs/). > how can I i

Re: Reply: ask sth. about trap

2011-12-30 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.   ] 2011/12/30 朱飞 : >

Re: SNMP request

2011-12-28 Thread Dave Shield
On 27 December 2011 12:30, Leila M wrote: > environment: gcc 4.5 under Ubuntu 11.04 > I'm trying to implement a C application that sends an snmp request > (snmp get) to retrieve some information (variables) from the local MIB > but when executing the program it seems that it is not able to get the

Re: ask sth. about trap

2011-12-28 Thread Dave Shield
2011/12/26 朱飞 : > I have some puzzles on snmp trap. In fact, I have got my own mibs, but I > dont know whether can I use only one Trap for all my 20 mib nodes which are > not all in the same structure. What are you trying to represent with this trap? Remember that a trap is reporting an event - s

Re: snmpinform

2011-12-28 Thread Dave Shield
On 23 December 2011 21:12, Simon Chamlian wrote: > Is there any explanation on -r RETRIES and -t TIMEOUT options of snmpinform? man snmpcmd -r retries Specifies the number of retries to be used in the requests. The default is 5. -t timeout

Re: snmptrap

2011-12-28 Thread Dave Shield
On 22 December 2011 21:43, Simon Chamlian wrote: > Actually, > > # snmpinform -v 3 -u  testrwauth -a MD5 -A > "authentication test" -l authNoPriv 172.27.57.65 42 coldStart.0 > Authentication failed for testrwauth Is the user 'testrwauth' defined in the snmptrapd.conf file? See the tutorial

Re: snmptrap

2011-12-28 Thread Dave Shield
On 22 December 2011 21:41, Simon Chamlian wrote: > I tried: > > # snmptrap -v 3 -u  testrwauth  -a MD5 -A "authentication test" -l > authNoPriv 172.27.57.65 42 mpbcRMHMon-HPU-State Try loading the MIB file that defines this object - either by using the '-m' option to list the name of the

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 the recently

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 "passw" -l authPriv -u username

Re: net-SNMp on HP-UX ia

2011-12-28 Thread Dave Shield
On 17 December 2011 12:00, Salah Abdulbaqi Ali wrote: > Kindly, we need to have net.SNMP on top of our HP-UX IA64 11.31. We don't have access to such equipment, so cannot provide ready-compiled binaries. But you can always try compiling the software yourself. Try retrieving the source code fro

Re: help on snmpv3 needed

2011-12-28 Thread Dave Shield
On 12 December 2011 06:18, Rajshekar wrote: > 3)  For snmpv3 I created users like raj with noauth(no authentication) > and many more users with auth and priv What are the exact entries in the snmpd.conf file that create these users? > 4)  After which the snmpd.conf file will be created

Re: conversion of oid from "1,3,16,15,1" to "1.3.16.15.1"

2011-12-28 Thread Dave Shield
On 16 December 2011 06:15, Kumar Sanjay-XJD784 wrote: > Is there any function in net-snmp code to convert the OID from > "1,3,16,15,1" to "1.3.16.15.1" Is this a string comma-based representation, or the contents of an oid[] array? The APIs for displaying the value of an OID array are described

Re: how to send and receive traps using net snmp

2011-12-28 Thread Dave Shield
On 14 December 2011 09:44, rajshekar targar wrote: > i have downloaded net snmp for windows. i want to send traps for version 1 >  using the command prompt The snmptrap(1) manual page includes an example of sending a v1 trap. Try that command Dave ---

Re: why snmpset doesn't work on some OIDs?

2011-12-28 Thread Dave Shield
On 11 December 2011 09:34, h bagade wrote: > I'm trying to set different OIDs on freebsd8.2 with use of snmpset. In some > cases it works but in others it doesn't! > > I was successful in setting sysName(1.3.6.1.2.1.1.5.0) and sysLocation( > 1.3.6.1.2.1.1.6.0) but couldn't set ipForwarding( 1.3.6.

Re: how to determine table query index in snmp subagent table handler?

2011-12-21 Thread Dave Shield
On 21 December 2011 22:27, STOTTS Timothy wrote: > I have a solution. Instead of using the dataset API, I use the tdata API. > Does mib2c use this API in any of its table-generating modes? mib2c.table_data.conf Dave --

Re: MIB for Dummies

2011-12-14 Thread Dave Shield
On 14 December 2011 19:17, Simon Chamlian wrote: > Now I cannot create the C file. > > $ mib2c -c ../mib2c.mdf.conf  MPBC-RMH-MIB > > You didn't give mib2c a valid OID to start with. You need to give the name of a MIB *object* rather than the MIB as a whole. Try giving the name of one of the MIB

Re: MIB for Dummies

2011-12-14 Thread Dave Shield
On 14 December 2011 17:00, Simon Chamlian wrote: > Now I copied my MIB file MPBC-RMH-MIB into same directory. Into which directory? /usr/share/mibs/netsnmp ? > $ snmptranslate -m +MPBC-RMH-MIB -IR -On mpbcRMH-Mon-HPU-State > > MIB search path: /home/schamlian/.snmp/mibs:/usr/local/share/snmp

Re: subagent config file issue

2011-12-13 Thread Dave Shield
On 13 December 2011 18:31, Ryan Dowell wrote: > I have > been experiencing some issues with using a configuration file for an agentx > subagent.  I am finding that the separate configuration file for the > subagent seems to never be read when the subagent is started

Re: trap NAT 5.4.2.1

2011-12-13 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. Also, if I'm busy with my main (paid) work, it may well be some time before I can respond. Ke

Re: how to register enterprise specific traps extended in net-snmp agent on event basis

2011-12-12 Thread Dave Shield
> We have generated trap definition by extending our enterprise specific MIB > module. However we did not find any function that could register this trap Having defined the trap within the MIB file, you can now use the 'mib2c.notify.conf' template to generate a routine that will send this trap.

Re: dskTable 64-bit

2011-12-10 Thread Dave Shield
On 10 December 2011 09:23, Eugene M. Zheganin wrote: > I have question about dskTable 64-bit counters. Looks like they were > added in 5.5, I have 5.7.1 but still can see only 2 TBytes of my disks. > UCD-SNMP-MIB::dskTotal.4 = INTEGER: 2147483647 > UCD-SNMP-MIB::dskTotal.5 = INTEGER: 2147483647 >

Re: Link problem with 5.7.1 and g++‏

2011-12-06 Thread Dave Shield
2011/12/2 Elicia Syson : > We noticed the snmpd rule changed in the > snmp/masteragent/netsnmp/net-snmp/agent/Makefile.in file. > > net-snmp-5.4.1 Makefile.in: > snmpd$(EXEEXT):  ${LAGENTOBJS} $(USELIBS) $(AGENTLIB) $(HELPERLIB) $(MIBLIB) > $(LIBTARG) >   $(LINK) $(CFLAGS) ${LDFLAGS} -o $@ ${LAGEN

Re: Getting "notWritable" for an OID marked as read-write with proper perms

2011-12-06 Thread Dave Shield
On 5 December 2011 21:30, Tim Perrault wrote: > I'm trying to set the OID "coDot11CurrentFrequency" to another value. > But with v2c and using the private community (which allows me to set some > system things like location), it still yields "notWritable": The most likely cause is that the code

Re: how to determine table query index in snmp subagent table handler?

2011-12-06 Thread Dave Shield
On 5 December 2011 21:27, STOTTS Timothy wrote: > Thank you for your answer Dave. However, your suggestion of using the varbind > list only > works for single GET operations of the table entries. No - it ought to work for all requests. > As a reminder, my table initialization code looks like t

Re: source-interface implementation

2011-12-06 Thread Dave Shield
On 6 December 2011 10:17, ashok kumar wrote: > I have a requirement to implement for source-interface functionality. > > If the agent runs on a machine with more than one physical interface, > the traps and informs always goes out through a particular interface > (may be default interface). > I wa

Re: trap NAT 5.4.2.1

2011-12-06 Thread Dave Shield
On 6 December 2011 07:21, shay naveh wrote: > Is there already built-in parallel mechanism 'snmptrapd' ? e.x. 'snmptrapd' > will listen for incoming traps from these local 'snmpd' instances and will > redirect them to some receiver. $ man snmptrapd.conf : NOTIFICATION PROCESSING

Re: How subagents call each other?

2011-12-02 Thread Dave Shield
On 1 December 2011 22:51, wrote: > I want to know how multiple subagents communicate each other? Typically they don't. The master agent will query individual subagents to retrieve information from them, but one subagent won't normally talk to anything else. Dave --

Re: problem with hrStorage

2011-12-02 Thread Dave Shield
On 2 December 2011 13:56, Andreas Schnederle-Wagner - Futureweb.at wrote: > Output of server 1 (working) >        # df >        Filesystem           1K-blocks      Used Available Use% Mounted on >        /dev/vzfs              1048576    283028    765548  27% / > Server 2 (not working) >        #

Re: problem with hrStorage

2011-12-02 Thread Dave Shield
On 2 December 2011 13:36, Andreas Schnederle-Wagner - Futureweb.at wrote: > the agent is vendor-supplied. Same Versions on both systems: > Also the config options look the same: Hmmm OK - so the difference must be something to do with the two systems themselves. What does the command "df"

Re: problem with hrStorage

2011-12-02 Thread Dave Shield
On 2 December 2011 13:21, Andreas Schnederle-Wagner - Futureweb.at wrote: > using Nagios SNMP checks to monitor our Server HDD usage. > > With “snmpwalk  -v 2c -c public  localhost  hrStorage” I get back all the > needed information. > > … other stuff … > HOST-RESOURCES-MIB::hrStorageDescr.31 = ST

Re: can not compile snmp_agent_api

2011-12-01 Thread Dave Shield
On 1 December 2011 18:07, wrote: > I compiled the example. > But when I run it, it give me error > ldd:FATAL: Could not load library libnetsnmpagent.so.20 > > But libnetsnmpagent.so.20 is located in /usr/local/lib I don't have any experience with QNX myself, but on Linux systems, the dynamic li

Re: RFC 5608

2011-11-29 Thread Dave Shield
On 2 November 2011 12:30, Koen Swinters wrote: > Will net SNMP support RFC5608 If someone writes the necessary code, yes. Though I'm not aware of anyone currently working on this. Dave -- All the data continuously gener

Re: can not compile snmp_agent_api

2011-11-29 Thread Dave Shield
On 29 November 2011 18:30, wrote: > I tried to compile the example of > http://www.net-snmp.org/docs/man/snmp_agent_api.html > With gcc snmp_agent_api.c `net-snmp-config --agent-libs` > But I got error: net-snmp/net-snmp-config.h: No such file or directory How did you install the software? What

Re: A default set of modules for embedded environments

2011-11-29 Thread Dave Shield
On 29 November 2011 17:15, Ofer Avitzur wrote: > I am using net-snmp on an embedded device with relatively limited memory > resources (64Mb to be specific) > In my opinion adding this module [notification MIB] as the default > configuration > is very bad for embedded devices I think our expe

Re: Pass through extension not working Snmpd

2011-11-29 Thread Dave Shield
On 11 November 2011 02:42, Vasanth Ragavendran wrote: >Apparently the passtest script had > a tiny bug. The case statement which checks for a particular OID has been > broken into multiple line but without any line continuation terminator '\' > and which was

Re: Install net-snmp into Ubuntu

2011-11-29 Thread Dave Shield
On 17 November 2011 08:03, francisco moreno wrote: >  My new problem is the "agentx/master". I tried run the scrip > "dist/snmp-init.d" and this show the next message: > ".: 10: Can't open /etc/rc.d/init.d/functions" >   I think that this message is because my system has not got the "rc.d" > fold

Re: Install net-snmp into Ubuntu

2011-11-29 Thread Dave Shield
On 17 November 2011 08:03, francisco moreno wrote: > P.S. In other email I told you that I solved the problem with the > installation. The problem was the "shell" that contain the "intallation > scripts", some with "bash" and others with "sh". I put all script with the > "shell bash". How there wa

Re: SET actions order

2011-11-28 Thread Dave Shield
On 27 November 2011 11:19, Naama Bar Menachem wrote: > What is the order in which these actions are executed? > reserve1, reserve2, free, set, commit, undo. > > Is it true that on a success set action this is the order: > reserve1 -> reserve2 -> set -> commit Correct > and 2 types o

Re: SNMPget cmd fails with Timeout from CentOS but works fine from windows

2011-11-25 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 25 N

Re: SNMPget cmd fails with Timeout from CentOS but works fine from windows

2011-11-25 Thread Dave Shield
On 23 November 2011 17:07, Nathan Harris wrote: > Working on monitoring our datacentre power meters using Zenoss I am getting > a very strange issue > [root@nlc1~]# snmpget -v1 -c public 10.3.9.11 1.3.6.1.4.1.29711.7709 > Timeout: No Response from 10.3.9.11. > C:\usr\bin>snmpget -v 1 -c public 1

Re: SNMP V3 help needed Urgent

2011-11-23 Thread Dave Shield
On 22 November 2011 19:28, Abhishek Kumar-Noida wrote: > I am trying to get SNMPWALK from V3 however unable to do the same. I am > getting SNMPWALK via V2 from same host however not from V3. First question - how is the agent configured? What access control settings are in place? (Probably lines

Re: Persistent data not saved at runtime

2011-11-17 Thread Dave Shield
On 17 November 2011 08:42, Miguel Toledano Ortega wrote: > From this point there are two cases: >     1) If I stop the snmpd in a controlled way and then restart it, > the password is the expected one ("passwd_new") >     2) If the snmpd is killed (kill -9, Ctrl+C...) and then restart it,

Re: Install net-snmp into Ubuntu

2011-11-16 Thread Dave Shield
On 16 November 2011 15:38, francisco moreno wrote: >  I solved the install problem. The problem was that some "scripts" using the > "sh shell" and others the "bash shell". I changed the symbolic link /bin/sh > -> /bin/dash to /bin/sh -> /bin/bash. Then the intallation was successfull. Do you know

Re: Same mib module defines into master and slave sub-agent in AgentX

2011-11-15 Thread Dave Shield
On 14 November 2011 16:48, Eric Zerbib wrote: > In my subagent I have re-implement some mibs module based on > DISMAN-MIB module to allow sending custom alarm from my subagent. > > But this cause problems when I wants also use the same DISMAN module > in some kind of configuration defined at the s

Re: NET-SNMP IPv6 SUPPORT !!

2011-11-11 Thread Dave Shield
On 11 November 2011 13:55, Waqas Ahmed Khan wrote: > The problem is > this that net-snmp is detecting my ipv6 based windows and linux machines. > but it is not detecting my CISCO routers and switches. > But for CISCO Router it always gives this error: > > # snmpstatus -v2c -

Re: how to determine table query index in snmp subagent table handler?

2011-11-11 Thread Dave Shield
On 10 November 2011 23:03, Dave Shield wrote: >> Example handler code: > >>    int index; > >>        for (request=requests; request; request=request->next) { >>                index = request->index; > > Isn't this what you are looking for? Sorry

Re: Dynamic snmp agent reconfiguration

2011-11-11 Thread Dave Shield
On 11 November 2011 06:00, Mohammad Waqas Athar wrote: >  Is there a way to dynamically reconfigure snmpd settings without restarting > it. I mean are there any IOCTL command, C api or signal handler defined to > reconfigure agent settings other then editing the snmpd.conf and restarting > agent o

Re: how to determine table query index in snmp subagent table handler?

2011-11-10 Thread Dave Shield
On 10 November 2011 19:49, STOTTS Timothy wrote: > how would I determine the lookup index in the SNMP GET/SET? > Example handler code: >    int index; >        for (request=requests; request; request=request->next) { >                index = request->index; Isn't this what you are lo

Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Dave Shield
On 10 November 2011 15:41, Simon Chamlian wrote: > I think what he means (or what I mean) is to have one config file that > converts the whole MIB file (which contains any possible object) into C. If the MIB contains scalar objects, then the command I gave will do exactly that. If the MIB contai

Re: How to convert entire MIB at once using mib2c

2011-11-10 Thread Dave Shield
On 9 November 2011 18:11, Suresh kumar wrote: > i want convert entire MIB object to c/h file using mib2c  at once What do you mean by "converting the MIB object"? What sort of MIB object(s) do you have in mind. If these are scalar objects, then try mib2c -c mib2c.scalar.conf MY-MIB::myTopL

Re: Install net-snmp into Ubuntu

2011-11-10 Thread Dave Shield
On 10 November 2011 10:03, francisco moreno wrote: >   - I downloaded "net-snmp-5.4.4.tar.gz" package from sourceforge. >   - I unziped this (tar xzvf net-snmp-5.4.4.tar.gz) into "/etc" directory >   - I have installed "libperl-dev" library >   - Next, I followed the steps of installation (I saw

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 is another daemon > that

Re: example and notification problems

2011-11-09 Thread Dave Shield
On 8 November 2011 23:51, Anthony Jiang <2nth0...@gmail.com> wrote: > 1 ./configure --with-mib-modules="examples/example" doesn't work. >     with this configuration, I still can't retrieve the value in > NET-SNMP-EXAMPLES-MIB.txt modules Correct. The code in 'examples/example' dioesn't refer to

Re: v2 traps in version v3

2011-11-09 Thread Dave Shield
On 9 November 2011 12:48, Joan Landry wrote: > Does anyone know if when you configure a unit for v3 What do you mean by "configure a unit for v3"? The Net-SNMP agent is multi-protocol - by default it will include support for SNMPv1, SNMPv2c and SNMPv3. Which versions it will actually respond to

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' > SNMPv2-MIB::sysDescr.0 = STRING: Linux lolsigh 2.6.18-194.el5

Re: Monitoring of hrStorageUsed does not fire

2011-11-08 Thread Dave Shield
On 25 October 2011 15:25, Hui Zhao wrote: > #this directive works properly as well > #monitor –s –r 10 highprocessorload hrProcessorLoad > 5 > #but this directive does not > monitor –s –r 10 highmemoryusage hrStorageUsed.1 < 100 This is monitoring a single instance, rather than a MIB object.

Re: Perl Net-SNMP Problem

2011-11-08 Thread Dave Shield
On 2 November 2011 21:10, Winans, Don C (IS) wrote: > I’m having a problem in a Perl script with the $sess->set($vb) command when > the $vb value is defined in the MIB as an enumeration. > The MIB object is defined as below.  When I attempt to set > iciProtocolIpAdmin = reinitialize the value

Re: snmpusm problems

2011-11-08 Thread Dave Shield
On 8 November 2011 17:06, Simon Chamlian wrote: > # snmpusm -v3 -u initial   -l noAuthNoPriv  172.27.42.191 cloneFrom wes  > initial > Error in packet. > Reason: inconsistentValue Try either snmpusm -v3 -u initial   -l noAuthNoPriv  172.27.42.191 create wes  initial or snmpusm

Re: Create users and change passwords

2011-11-08 Thread Dave Shield
On 27 October 2011 10:21, Miguel Toledano Ortega wrote: >     - When I want to change the engineID, I remove the persistent one and > launch the snmp daemon only with the human-readable. Then the persistent > file is re-generated > [but] the new usmUser lines does not > includ

Re: Unexpected snmpTrapEnterprise.0 varbind in snmpv1 trap?

2011-11-08 Thread Dave Shield
On 28 October 2011 21:14, Juan Carlos Franzoy wrote: > I've configured a trapsink in snmpd.conf. As long as I understand, trapsink > instructs snmpd to send snmpv1 traps. Correct > Then from an agentx connected subagent I send a trap: OK - remember if you are sending notifications from an Agen

Re: snmpusm problems

2011-11-08 Thread Dave Shield
On 8 November 2011 14:38, Simon Chamlian wrote: > I tried the following: > # snmpusm -v3 172.27.42.191 create initial  wes > snmpset: No securityName specified > > # snmpusm -v3 -l authNoPriv -a MD5 172.27.42.191 create enzo1 simon1 > snmpset: No securityName specified If you are going to use SN

Re: Install AgentX

2011-11-08 Thread Dave Shield
On 8 November 2011 10:03, francisco moreno wrote: > I have made "ls /var" but I don't find the "agentx" directory. That's nothing to worry about. This directory will be created when you run the agent. > I think that the compilation was not good because I made "make test" and it > do not works!

Re: help needed on snmpwalk using localized keys

2011-11-08 Thread Dave Shield
On 8 November 2011 08:55, ashok kumar wrote: > rwuser myuser authPriv > createUser myuser SHA -l 0x0001020304050607080900010203040506070809 > AES -l 0x00010203040506070809000102030405 So you are setting the localised keys directly, rather than via a pass phrase. > The snmpwalk throws the f

Re: snmpusm problems

2011-11-08 Thread Dave Shield
On 7 November 2011 22:24, Simon Chamlian wrote: > 1) In snmpd.conf, I added: > > > rwuser initial  noauth Have you got a 'createUser initial ... ' line anywhere? Dave -- RSA(R) Conference 2012 Save $700 by Nov 18 Regi

Re: Inform Response Handling When agent is in in SNMPv3 Mode.

2011-11-07 Thread Dave Shield
On 4 November 2011 06:08, Venki wrote: >     Inform response/Get or set Request will be handled as explained below in > SNMPv3 Mode. Are you telling us about behaviour that you have actually seen, or asking how the agent works? >     Problem is that if multiple informs(say minimum 2) are sent

Re: mib2c -c mib2c.mfd.conf

2011-11-03 Thread Dave Shield
On 3 November 2011 15:21, Simon Chamlian wrote: > What does mib2c do? It produces _template_ code for implementing a MIB module. You would take the generated code file, fill in the gaps, and compile it into the SNMP agent (either a native agent for the system you are developing on, or cross-compi

Re: How to test the Agent

2011-11-03 Thread Dave Shield
On 2 November 2011 21:06, Simon Chamlian wrote: > I launched the snmpd on the target with all config default values. Now I am > trying to get a value of an OID without success. > > --- > # snmpget -v 2c -c public 172.27.42.191 IP-

Re: mib2c -c mib2c.mfd.conf

2011-11-03 Thread Dave Shield
On 31 October 2011 18:51, Simon Chamlian wrote: > I have an embedded board running Linux/net-snmp (TWR54418 from Freescale). > [root@M54418TWR snmp]# mib2c -c mib2c.mfd.conf > > ERROR: You don't have the SNMP perl module installed. Why do you need to create the MIB template code on the embedde

Re: problems while querying an HP blade enclosure

2011-11-02 Thread Dave Shield
On 2 November 2011 09:33, Daniel Sanabria wrote: > What does it mean the fact that the enclosure is not replying when I'm > querying the enterprise OID? Typically access control. Is the enclosure configured to respond to this community string? What happens if you query the 'system' group with th

Re: juniper and dynamic snmp indexes

2011-10-31 Thread Dave Shield
On 31 October 2011 12:53, Jan Markus wrote: > Is there really such a way? For example something like: > >snmpget ifInOctets.(of interface with ifDescr='ge-0/0/1') This isn't something that the low-level tools (e.g snmpget) can handle automatically. But you should be able to have a simp

Re: NET-SNMP 5.4.2.1 Unix Domain Socket doesn't work

2011-10-31 Thread Dave Shield
On 30 October 2011 21:20, shay naveh wrote: > 2. /usr/sbin/snmpd -C -c /etc/snmp/snmpd.local.conf /tmp/test $ snmpd -f -L -C -c $HOME/SNMP/snmpd-unix.conf /tmp/test > snmpget -r 1 -v 2c -c public /tmp/test - doesn't work $ snmpgetnext -v 1 -c public /tmp/test sysUpTime DISMAN-EVENT-MIB:

Re: snmpset gives different error reasons for v1 and v2c

2011-10-25 Thread Dave Shield
On 25 October 2011 13:17, ashok kumar wrote: > While I am trying snmpset with -v1 and -v2c, I am getting different > reasons for errors. > > Why am I getting noSuchName for -v1? Because that is the defined behaviour for SNMPv1. See RFC 1157, section 4.1.5, step (1) > I believe t

Re: Info needed on informs from applications

2011-10-17 Thread Dave Shield
On 17 October 2011 12:32, anand anand wrote: > I guess there is currently no way to tune these parameters to make them user > configurable via snmpd.conf file or through a CLI. Your guess is wrong. Please read the 'snmpd.conf' and 'snmpcmd' man pages Dave ---

Re: Info needed on informs from applications

2011-10-17 Thread Dave Shield
On 14 October 2011 17:35, Cristian Marussi wrote: > particular kind of event i monitor and i wonder if is possible to > configure via snmpd.conf ALSO some additional Informs-related > parameters such as retries and timeout, since, in a default config, Yes. If you want finer control over the setti

Re: Info needed on informs from applications

2011-10-12 Thread Dave Shield
On 12 October 2011 13:20, anand anand wrote: > Application code is part of subagent and not part of master agent ( snmpd ). > Will it  still work ? Yes. An AgentX subagent simply passes all notifications to the master agent, which then sends them on to the configured sinks (using the appropriat

Re: Info needed on informs from applications

2011-10-12 Thread Dave Shield
On 12 October 2011 12:39, anand anand wrote: >  So, will the Net-snmp agent send the Inform PDU automatically to the inform > sink receiver. ? Yes. (Assuming that your application code is part of the agent, and not a separate stand-alone application) > If yes, then will it also perform the ret

Re: Using debug for snmpd v5.7.1

2011-10-11 Thread Dave Shield
On 10 October 2011 19:07, Joe Lorenz wrote: > So is it true that '--enable-debugging' causes an implicit '-Dall' on the > command line unless otherwise specified? Yes - this is a special configure option to explicitly turn on all debugging output. Just as '--disable-debugging' will explicitly t

Re: SET variable failed

2011-10-10 Thread Dave Shield
On 10 October 2011 09:19, wrote: > That was the problem, i mentioned community puplic as "rwcommunity". We would strongly suggest that you change the community string and use something *other* than "public" for this purpose. Particularly since you've just told the world what your current manag

Re: How to tar up all net-snmp files after successful make amd make install

2011-10-07 Thread Dave Shield
On 6 October 2011 18:53, Sergey Prilutsky wrote: > After we configured , compiled (make) and install (make install) of the > net-ntmp 5.7.1 it puts files in different directories. > > Can someone tell me how to properly tar ball all of them with the direct > path, so when we untar it, it will put

Re: Hardware Asset Information

2011-10-06 Thread Dave Shield
On 6 October 2011 02:37, Kaushal Shriyan wrote: > Are there MIBS for storage and memory which can tell us the number > of attached Harddrive or number of RAM Chips attached to the system The HOST-RESOURCES-MIB::hrDiskStorageTable will list the "long-term storage" devices attached to the system (i

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