Re: TRAP Newbies

2005-06-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 Fri,

Re: Doubt in scalar_int.c (more clarification)

2005-06-10 Thread Dave Shield
On Fri, 2005-06-10 at 15:55, Robert Story wrote: > On 10 Jun 2005 19:26:22 +0530 Sasikumar wrote: > SB> When i was testing the set i noticed that in the function > SB> netsnmp_check_requests_status() requests->status is set as > SB> SNMP_ERR_NOTWRITABLE before calling MODE_SET_RESERVE1 can nay

Re: ..how register my Object mib name..

2005-06-13 Thread Dave Shield
On Sun, 2005-06-12 at 10:33, mehdi gholami wrote: > i have :(after snmpget for 1.3.6.1.2.1.37.1.2.1.1.0) > -> mib-2.37.1.2.1.1 = COUNTER.0:322 I hope that's a typo, and not a cut-n-paste of the actual output. > but i want to get > -> atmobjectname.0 = COUNTER or INTEGER : 322 > in exact mor

Re: Remove v3 user

2005-06-13 Thread Dave Shield
On Fri, 2005-06-10 at 23:38, Fong Tsui wrote: > To create a v3 user, we need to add user in both regular > snmpd.conf and the persist snmpd.conf. That doesn't sound right. It should only be necessary to put the 'createUser' entry in the persistent snmpd.conf file. You shouldn't need one in the ma

RE: snmpd hangs on AIX 5.2

2005-06-13 Thread Dave Shield
On Mon, 2005-06-13 at 06:01, Sawant, Paresh (Paresh) wrote: > .snmpd.conf: A file or directory in the path name does not exist. > the command I'm running is --> /usr/local/sbin/snmpd -M "./mibs" -m ALL > -c .\snmpd.conf -C -D 5 > You're using the wrong slash. Try /usr/loc

Re: TRAP Newbies

2005-06-13 Thread Dave Shield
On Fri, 2005-06-10 at 17:05, chinmay bhat wrote: > >> the netsnmp version i am using is, > >> NET-SNMP version: 5.0.6 > Even the .h file generated by the copiler is not complete > You think there is some problem with the mib2c.notify.conf file ?? No - it's not the mib2c.notify.conf file. > Or

Re: Problem while debugging with DDD

2005-06-13 Thread Dave Shield
On Mon, 2005-06-13 at 11:24, Sridhar S wrote: > > I also tried by running the configure script with > > '--enable-debugging' option, > > I think '--enable-debugging' is equivalent to '-DALL'. Then you think wrong. '--enable-debugging' is a directive given to the configure script, to request tha

Re: malloc without check

2005-06-13 Thread Dave Shield
On Sat, 2005-05-21 at 08:46, Andreas Moroder wrote: > reading the sources I have found the following malloc calls > where there was no check on the result Thanks for that list. I've just fixed them in the main, 5.2.x and 5.1.x lines. Dave ---

Re: about Disk IO

2005-06-14 Thread Dave Shield
On Mon, 2005-06-13 at 08:03, Ulaş Yüksel wrote: > from net-snmp web page I have found an OID ucdDiskIOMIB. > But I couldn't get any response from that OID using snmpwalk. Have you configured the agent to monitor any disks? > Am I missing something? Probably the FAQ entry: Why can't I see

Re: AIX netsnmp

2005-06-14 Thread Dave Shield
On Mon, 2005-06-13 at 22:22, C Wells wrote: > Does anyone > know if it is possible to run netsnmp snmpd as a SMUX > peer to the native snmp agent ? No. The Net-SNMP agent can run as a SMUX master agent (though this code is rather old, and not really being ma

Re: Question on "disk usage" entry in snmpd.conf

2005-06-14 Thread Dave Shield
On Mon, 2005-06-13 at 20:21, [EMAIL PROTECTED] wrote: > I am working on installing net-snmp 5.2.1 on solaris, > hpux and windows. > > My questions is specific to the "disk" option used in > the snmpd.conf file. > However, when I use [this] in windows I get the following > error message ( C:\usr

Re: Host restricting

2005-06-14 Thread Dave Shield
On Mon, 2005-06-13 at 21:27, Kevin Golder wrote: > I've been using the following snmpd.conf file to try and restrict > which hosts can query my snmp agent. It work fine for snmpv1 and v2c > but not for v3. Correct. SNMPv3 access control cannot apply restrictions based on source addresses. If a r

Re: Doubt in scalar_int.c (more clarification)

2005-06-14 Thread Dave Shield
On Tue, 2005-06-14 at 13:23, Sasikumar Bodathula wrote: > I am having doubt do i need to set requests->delegated to zero. You shouldn't normally need to touch the 'delegated' flag. This is a very specialised requirement, and isn't relevant for a simple watched instance, as you've been describing.

Re: Doubt in scalar_int.c (more clarification)

2005-06-14 Thread Dave Shield
On Tue, 2005-06-14 at 13:59, Sasikumar Bodathula wrote: > Hi Dave, > I have attached the code which i little bit modified to learn abt > set function scalar_int.c is the example file that i took from the > net-snmp code and modified. Thanks. I've configured that file into my agent, and it wo

Re: AIX netsnmp

2005-06-14 Thread Dave Shield
On Tue, 2005-06-14 at 17:04, C Wells wrote: > Where do I find (I looked on net-snmp.org already) an > agentx tutorial. Is it hopeless if I don't know 'C' ? If you don't know C, then it's probably going to be difficult to code a new MIB module, regardless of how the master<->subagent communication

Re: agentx connection problem

2005-06-14 Thread Dave Shield
On Tue, 2005-06-14 at 17:26, Paras Sharma wrote: > Problem solved. Subagent was looking for /var/run/agentx. > > Now starting snmpd with -x unix:/var/run/agentx Hmmm... /var/run is normally used for PID files (or possibly lock files), rather than named sockets. If this fixes your proble

Re: loading MIB files

2005-06-15 Thread Dave Shield
On Wed, 2005-06-15 at 01:49, Nourdeh, Allen (US SSA) wrote: > I am trying to load my new MIB file into net-snmp 5.2.1 on linux. > I put the file into the /usr/local/share/snmp/mibs directory, > and created the snmp.conf file with the following entry in > the /usr/local/share/snmp directory: > mi

Re: Setting up snmpd so that the interfaces are viewable

2005-06-15 Thread Dave Shield
On Wed, 2005-06-15 at 03:16, Jeff Silverman wrote: > I am trying to view the interface OIDs (1.3.6.1.2.1.2) on my > linux server, but all I can see are the system OIDs (1.3.6.1.2.1.1). Please see the FAQ entry: I can see the system group, but nothing else. Why? > Next question: on page

Re: how to delete row from non-simple MIB table

2005-06-15 Thread Dave Shield
On Wed, 2005-06-15 at 03:16, Steve S. Law wrote: > My MIB is a > table generated by mib2c tool using iterate.conf. One > row in the table corresponds to one application > process being monitored. How do the iterator 'get_{first,next}' hook routines obtain

Re: Can't load HP mibs

2005-06-16 Thread Dave Shield
On Wed, 2005-06-15 at 19:08, [EMAIL PROTECTED] wrote: > I'm trying to load the STATISTICS-MIB and CONFIG-MIB from HP. > I simply copied hpSwitchConfig.mib and hpSwitchStat.mib into > /usr/share/snmp/mibs Have you also got a copy of all the MIBs that these two reference in their respective IMPORTS

Re: Enteriprise or send_v2trap

2005-06-16 Thread Dave Shield
On Thu, 2005-06-16 at 09:12, chinmay bhat wrote: > i want to send an enterprise trap.So should i use > send_enterprise_trap_vars() or is it ok if i use send_v2trap()? Yes. (send_v2trap is just a wrapper round s_e_t_vars anyway!) Dave --- SF

Re: Error opening specified endpoint "udp:161"

2005-06-16 Thread Dave Shield
On Thu, 2005-06-16 at 09:15, Yi He(CD) wrote: > Hi, I encounter this question that net-snmp can't get any specified > socket buffer sometimes Are you running the agent as root, or as a non-root user? I typically get that exact error message when I forget to run things as root. Dave ---

Re: net-snmp compilation problem

2005-06-16 Thread Dave Shield
On Thu, 2005-06-16 at 00:25, Robert Story wrote: > This is almost certainly a quoting issue. What does line 97 of > agent/mibroup/ucd-snmp/versioninfo.c look like? It's the configure options problem again! How did you originally run "configure" ? If you specified a list of MIB modules to include

RE: snmp_synch_response

2005-06-16 Thread Dave Shield
On Wed, 2005-06-15 at 19:31, George, Geo wrote: > Actually I am facing another problem with snmp_synch_response. > Problem is Not able to do an internal Query for OID and get its value. > Response PDU always returns "NO_SUCH_NAME". The access control code doesn't currently handle community-base

Re: Host restricting

2005-06-16 Thread Dave Shield
On Wed, 2005-06-15 at 23:48, Robert Story wrote: > Everytime this question comes up, I tell myself I should go > check the v3 specs to see if this is an actual requirement > in the spec, or a quick of our implementationI'm > sure Mr. Perkins or Mr. Hardaker can speak to the issue.. Humph!!

Re: how to delete row from non-simple MIB table

2005-06-16 Thread Dave Shield
On Wed, 2005-06-15 at 19:12, Steve S. Law wrote: > > How do the iterator 'get_{first,next}' hook routines > > obtain the list of entries to work with? > > Do you have an internal list, or something similar? > > How is this generated? > Iterator routines are generated by mib2c tool. There > is a g

Re: netsnmp_register_watched_scalar and ASN_GAUGE

2005-06-16 Thread Dave Shield
[Sorry for the delay in responding - I *have* been meaning to get back to you on this question.] On Tue, 2005-06-14 at 09:56, Paul Davies wrote: > If I use the netsnmp_register_watched_scalar call and create a > watcher for a readonly ASN_GAUGE variable, does the watcher > prevent my gauge va

Re: Host restricting

2005-06-16 Thread Dave Shield
On Thu, 2005-06-16 at 15:53, Robert Story wrote: > Ok, I can see that allowing different access for the same user based on > transport is out. But I don;t see how it would preclude having a user > only be valid for a certain transport. eg user 'john', when coming from > a source within 10.0.0.0/8,

Re: how to delete row from non-simple MIB table

2005-06-17 Thread Dave Shield
On Thu, 2005-06-16 at 17:58, Steve S. Law wrote: > > But how is this list populated? > sub-agent is monitoring some external application > processes. When external > processes start up, they register with sub-agent by > sending a message containing a row ID and PID which > to

Re: snmptrapd trap format questions

2005-06-17 Thread Dave Shield
On Fri, 2005-06-17 at 08:06, Kevin Conway wrote: > I have played with a few format options via the "-F" flag for snmptrapd > but would like to achieve the following :- > > 1) Format the Day > I want to get the date output like "May 9 14:17:36" ie similar to the > standard syslog (or Military) fo

Re: Problem with some IF and IP mib objects.

2005-06-17 Thread Dave Shield
On Fri, 2005-06-17 at 15:21, krushna bagde wrote: > But there is another thing that concerns me. The value of > ifInNUcastPkts and ifOutNUcastPkts is 0. > Values of the new objects is also 0. > Are these vaules being returned from the kernel ? You tell us. What does cat /pro

Re: Problem when querying HOST-RESOURCE-MIB items

2005-06-17 Thread Dave Shield
On Fri, 2005-06-17 at 17:03, Vic Berdin wrote: > I'm trying net-snmp-5.2.1 on my RedHat-Linux 7.3 box, and currently > having trouble when I retrieve HOST-RESOURCES-MIB items. > 2. Specify --with-mibs=HOST-RESOURCES-MIB:SNMPv2-MIB:... during ./configure That's not sufficient. You need to include

Re: (no subject)

2005-06-20 Thread Dave Shield
On Fri, 2005-06-17 at 22:20, Wang Yinyan-AYW003 wrote: > I downloaded source code of net-snmp-5.2.1 and extracted and try to > install the perl module. Following the instruction of INSTALL, I need > to run "./configure". Not correct. Have another look at the INSTALL file. Under "Installing the

RE: snmp_synch_response

2005-06-20 Thread Dave Shield
On Thu, 2005-06-16 at 18:34, George, Geo wrote: > Thanks Robert. > So is there any way I can validate the user input? That is, if user > tries to set an OID which is not valid (Not in specific view /not able > to retrieve info / type is not as we expect etc), then it should return > BAD_VALUE. The

RE: snmp_synch_response

2005-06-20 Thread Dave Shield
On Fri, 2005-06-17 at 23:19, George, Geo wrote: > I need to monitor a user selected SNMP OID periodically. Have you considered using the DISMAN-EVENT-MIB, which is specifically designed for this very purpose? It's already implemented in the Net-SNMP agent. See the snmpd.conf(5) man page, under

Re: snmptrap using Hex string

2005-06-20 Thread Dave Shield
On Mon, 2005-06-20 at 03:44, Paul Chen (QD/LJC) wrote: > I want to send a trap with a object of hex string type. > I tried to send this trap using snmptrap like this : > snmptrap -v 2c 150.236.78.57 public '' .1.3.6.1.4.1.27.1 > .1.3.6.1.4.1.27 x "01020304" Yup - that works for m

Re: Let total size of all executed file < 1MB

2005-06-20 Thread Dave Shield
On Mon, 2005-06-20 at 13:04, Finfin wrote: > How can I do to decrease the size of image? > Can I remove some executed files? Please see the FAQ entry How can I reduce the memory footprint? Dave --- SF.Net email

RE: snmp_synch_response

2005-06-20 Thread Dave Shield
On Mon, 2005-06-20 at 15:32, George, Geo wrote: > DS> How would you handle monitoring an initially valid OID that was > DS> subsequently deleted? Or creating the value being monitored as > DS> part of the same request as the monitoring entry? > If the OID is valid initially and then deleted sub

Re: Let total size of all executed file < 1MB

2005-06-21 Thread Dave Shield
On Mon, 2005-06-20 at 18:19, Shufen Zhang wrote: > Hi Dave, > > With --enable-mini-agent option in ./configure, what will the > mini-agent include? >From configure.in: if test "x$mini_agent" = "xyes"; then new_module_list="snmpv3mibs mibII/snmp_mib mibII/system_mib mib

Re: Persisting MIB table

2005-06-21 Thread Dave Shield
On Tue, 2005-06-21 at 02:01, Steve S. Law wrote: > In my init_applTable(), after > netsnmp_register_table_iterator, I did: > > snmp_register_callback(SNMP_CALLBACK_LIBRARY, > SNMP_CALLBACK_STORE_DATA, > persist_data, >

Re: port problems

2005-06-21 Thread Dave Shield
On Tue, 2005-06-21 at 08:56, Blurry wrote: > why do I get >Error opening specified endpoint "udp:161" >Server Exiting with code 1 > > when running netsnmp snmpd ? Are you running this as root, or a normal user? Dave --- SF.Net email

Re: RH AS and 2021

2005-06-21 Thread Dave Shield
On Mon, 2005-06-20 at 18:59, Blurry wrote: > What do I need to check if my Redhat AS3.5 box with netsnmp 5.029 > renders End of MIB when I query the 2021 branch ? Access control, probably. See the FAQ entry I can see the system group, but nothing else. Why? If that doesn't help, then it wo

Re: unlinked OID newbie to snmp question

2005-06-21 Thread Dave Shield
On Tue, 2005-06-21 at 00:20, Graham Faigle wrote: > I'm ... getting an unlinked OID error > as follows: > Unlinked OID in Printer-MIB: printmib ::= { mib-2 43 } > Undefined identifier: mib-2 near line 10 of > /usr/share/snmp/mibs/Printer-MIB.mib > I've made sure I have the mib files in th

Re: How to start snmpd deamon

2005-06-21 Thread Dave Shield
On Mon, 2005-06-20 at 20:32, Arias, Francisco wrote: > Hi I am trying to start the snmpd daemon > It turned out that it needs an argument It shouldn't do. You should be able to run "snmpd" quite happily. If this isn't working, I'd suggest running it as snmpd -f -Le That will display a

Re: document error?

2005-06-21 Thread Dave Shield
On Tue, 2005-06-21 at 04:35, Leo Lei wrote: > hi net-snmp-users: > i have downloaded the source code net-snmp-5.1.2 from the homepage, > i found a little error(maybe), as the following: > > snmpd.conf.5.def: > SYSCONFDIR/snmp/snmpd.conf - configuration file for the Net-SNMP SNMP > agent. >

Re: Implementation details about snmptranslate.

2005-06-21 Thread Dave Shield
On Tue, 2005-06-21 at 15:34, Anuradha Bhakta wrote: > I would like to know the internal implementiaon details of > snmptranslate. > Does this tool read all the MIB files that are are present every time > this command is triggered It reads and parses all the MIBs that are configured to be loaded,

Re: Passing extra data to table handlers

2005-06-22 Thread Dave Shield
On Tue, 2005-06-21 at 14:52, [EMAIL PROTECTED] wrote: > My main program knows about something that the > get_dot1dTpFdb*() routines need to know to get data... is the > myvoid field on netsnmp_iterator_info intended for that? Spot on. Dave

Re: snmptranslate and read_objid()

2005-06-22 Thread Dave Shield
On Thu, 2005-06-16 at 04:38, Mihir Lala wrote: > I run the same command with an enterprise ID such as 66, > then the output is as: > > SNMPv2-SMI::enterprise.6.2.4.2.0.1 > What I'd like to do is to get an "Unknown OID" in the second case; > basically having read_objid() return a failure.

RE: Implementation details about snmptranslate.

2005-06-22 Thread Dave Shield
On Wed, 2005-06-22 at 15:09, Anuradha Bhakta wrote: > To our product which uses net-snmp, we have provided few CLIs for > configuring SNMP agent. OK - so those CLI applications would probably need the relevant MIBs. But the agent shouldn't need any of them - it can work purely with numeric OIDs q

Re: snmptranslate and read_objid()

2005-06-22 Thread Dave Shield
On Wed, 2005-06-22 at 16:31, Mihir Lala wrote: > > How would you define a failure? > > For example, consider: > > > > $ snmptranslate .1.3.6.1.2.1.1 > > $ snmptranslate .1.3.6.1.2.1.1.0 > > $ snmptranslate .1.3.6.1.2.1.1.1 > > $ snmptranslate .1.3.6.1.2.1.1.0.1.2.3 > It would be

Re: UCD versus Host Resources Values for Swap

2005-06-23 Thread Dave Shield
On Wed, 2005-06-22 at 21:35, Mohr James wrote: > The UCD MIB reports swap like this: > > UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 4003952 > > The Host-Resources MIB reports it like this: > > HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Swap Space > HOST-RESOURCES-MIB::hrStorageAllocationUnits.3

Re: with regards to smux agent development

2005-06-23 Thread Dave Shield
On Wed, 2005-06-22 at 18:58, Srinivasan Kandalam wrote: > Would like to develop a SMUX agent which is an extensible agent > to Net-SNMP Agent. Is there any particular reason you are aiming at the (obsolete) SMUX extension protocol, rather than the newer AgentX ? > Is there any build option for d

Re: How to configure agent to allow access for a particular community

2005-06-23 Thread Dave Shield
On Wed, 2005-06-22 at 22:28, Shufen Zhang wrote: > how can I configure the agent to allow access for a particular > community Using snmpd.conf > WITHOUT using snmpd.conf By hardcoding equivalent statements into the agent. Something like vacm_parse_simple("rocommunity", "public"); shou

Re: table problems

2005-06-23 Thread Dave Shield
On Wed, 2005-06-22 at 23:20, Chris Cunningham wrote: > I ran mib2c.create-dataset.conf on my MIB file and then slightly > altered it in a fashion similar to the example data_set. > row = netsnmp_create_table_data_row(); > netsnmp_table_row_add_index(row, ASN_INTEGER, &i, sizeof(i));

Re: Static link or share libraries

2005-06-23 Thread Dave Shield
On Thu, 2005-06-23 at 03:42, Finfin wrote: > I use mips-linux-gcc to compile snmp agent(snmpd). > The executable file is a binary file. > There are no commands to sure the linking way How did you run "configure" ? > When I compile the executable file ,Is the default flag with dynamic linkin

Re: snmpd doesn't send traps

2005-06-23 Thread Dave Shield
On Thu, 2005-06-23 at 13:29, Angel L. Mateo wrote: > I have this in the snmpd.conf file: > trap2sink traprecv.mydomain.com > informsink traprecv.mydomain.com You probably don't want both of those entries. That will send *two* copies of every trap. Just use one of them. >

Re: UCD versus Host Resources Values for Swap

2005-06-23 Thread Dave Shield
On Thu, 2005-06-23 at 14:09, Mohr James wrote: > > Those two values should probably match, yes. > > You don't say what architecture you are running on. > Oooops! Sorry! In this particular case, I am refering to a Solaris 7 machine. OK, checking the relevant code: The HostRes figure comes from:

Re: table problems

2005-06-23 Thread Dave Shield
] On Thu, 2005-06-23 at 14:28, Chris Cunningham wrote: > On 6/23/05, Dave Shield <[EMAIL PROTECTED]> wrote: > > > > > Try creating the initial row using the defaults you set up > > earlier - i.e.: > > > >row = netsnmp_table_data_set_crea

Re: table problems

2005-06-23 Thread Dave Shield
On Thu, 2005-06-23 at 15:25, Chris Cunningham wrote: > > There's one other suggestion I meant to make earlier. > > Try dropping the 'netsnmp_register_auto_data_table()' statement. > > See if that makes any difference. > > Again no luck. > Here's the module: > > #include > #include > #include

Re: Question about new TCP/UDP mibs

2005-06-24 Thread Dave Shield
On Fri, 2005-06-24 at 06:27, Mitsuru Chinen wrote: > Is there any plan to implement the tables in the new RFCs into > the agent side? (such as tcpConnectionTable, udpEndpointTable) We can add them to the wish-list, certainly. I suspect that actually implementing them will have to wait for someone

Re: SNMP newbie question: sysUpTime

2005-06-24 Thread Dave Shield
On Fri, 2005-06-24 at 09:39, Jeetendra Singh wrote: > 1. What is meant by "network management portion" in this context? The SNMP agent > 2. If I have > -a managed resource(for ex: device's port status), > -a subagent (which is monitoring that port), and > -an agentX mast

Re: snmpd doesn't send traps

2005-06-24 Thread Dave Shield
On Fri, 2005-06-24 at 11:38, Angel L. Mateo wrote: > I have now the following configuration: > > trap2sink traprecv.mydomain.com > informsink traprecv.mydomain.com You probably only want one of these two. > agentSecName internal > rouser internal > rocommunity internal Drop the "rocomm

Re: SNMP newbie question: sysUpTime

2005-06-24 Thread Dave Shield
On Fri, 2005-06-24 at 11:55, Jeetendra Singh wrote: > Consider that my agentX master agent is running for *days*. The > sysUpTime accordingly goes into days. I *now* enable my device's port > and the device-up trap is sent by my subagent to the manager via > master agent. > 1. What should be the v

RE: SNMP newbie question: sysUpTime

2005-06-24 Thread Dave Shield
On Fri, 2005-06-24 at 14:40, Peter P. Benac wrote: > Dave, > > I'd have to disagree with this. sysUptime is going to the > amount of time the entire system was up not a just a single port. Yes - that's correct. I'm sorry if I gave the impression otherwise (though I'm not quite sure how) > Las

RE: SNMP newbie question: sysUpTime

2005-06-24 Thread Dave Shield
On Fri, 2005-06-24 at 15:39, Peter P. Benac wrote: > Ohhh geesh never mind.. I just re-read your post. > What I get for trying to read before my morning caffeine fix!! That's OK. Reports of my infallability, though widespread, are erroneous :-) It's always worth correcting or challenging stateme

RE: UCD versus Host Resources Values for Swap

2005-06-27 Thread Dave Shield
On Thu, 2005-06-23 at 20:35, Bruce Shaw wrote: > It appears that we should be using the code from UCD-SNMP-MIB in both places > which is a Bad Thing, so I would be tempted to put it downstream somewhere > like agent/mibgroup/kernel_sunos5.c but that includes a whole bunch of stuff > we may not nec

Re: get bulk in v1

2005-06-27 Thread Dave Shield
On Sat, 2005-06-25 at 08:14, venkat raghavan wrote: > Dose any one know hot to stimulate get bulk operation in snmpv1 . A series of GetNext requests - each one using the results of the one before. Dave --- SF.Net email is sponsored by: Discov

Re: The problem: Snmpget can not get the variable information in mibs

2005-06-27 Thread Dave Shield
On Mon, 2005-06-27 at 07:31, LIAO, GUANGDENG wrote: > When I run the command as follows on MV: > > snmpget -v 1 localhost -c test ip.ipInReceives.0 > Output: > Error in packet > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: IP-MIB::ipInReceives.0 Check the ac

Re: cannot install net-snmp-users@lists.sourceforge.net in fedora core 1

2005-06-27 Thread Dave Shield
On Sun, 2005-06-26 at 07:36, pang seangloon wrote: > I am a newbie to this net-snmp. I want to install this > package because i want to use ethereal. Try installing a pre-installed RPM of the net-snmp package. Dave --- SF.Net email is sponsor

Re: Can I change the location of the snmpd.conf ?

2005-06-28 Thread Dave Shield
On Tue, 2005-06-28 at 07:34, Finfin wrote: > I have reference the FAQ "My new agent is ignoring the old snmpd.conf > file. Why?" > I want to put the snmpd.conf in the ${TARGET}/etc/config/ Run ./configure --prefix=/ and recompile Dave -

Re: IP Alias

2005-06-28 Thread Dave Shield
On Mon, 2005-06-27 at 22:12, Thomas Anders wrote: > Glenn MacGregor wrote: > > I am working off 5.1.1. Doesn't look like that version uses this method, is > > that > > correct? Can I use version 5.1.1? > > When Wes made snmptrapd's usmUserTable available under the "snmptrapd" > context in 5.2.x

Re: modify - hack enterprise OID #

2005-06-28 Thread Dave Shield
> C Wells wrote: > > I have several OS's I run netsnmp on that return the > > 255 enterprise OID. I would very much like to be > > able to distinguish them by creating an enterprise OID > > of my own making I presume you have applied for an enterprise number from IANA? Thomas Anders wrote: >

Re: Not install mibs file

2005-06-28 Thread Dave Shield
On Tue, 2005-06-28 at 08:03, Finfin wrote: > If I set the configuration >./configure--disable-mibs > Would it affetc the snmp agent work? It would mean you couldn't refer to MIB object names in the agent config files. But the agent itself can basically work fine without the MIB files

Re: reading AgentX sub-agent configuration parameters

2005-06-28 Thread Dave Shield
On Tue, 2005-06-28 at 01:39, Steve S. Law wrote: > I have a sub-agent that NEEDs to read some > configurable parameters specific to my application. > > (1) Where do I put those paramters? > In my sub-agent main program, I have > > init_subagent("my-agent"); > init_snmp("my-agent); Then they sho

Re: snmpd and RMON

2005-06-28 Thread Dave Shield
On Mon, 2005-06-27 at 23:35, Ignacio Irigaray - IIE wrote: > Anybody knows if the rmon mib is supported by the smnpd ??? > if it is supported, how is this module enable ?? Please see the FAQ entry Does the agent support the RMON-MIB Dave ---

Re: ucd-snmp-4.2.5 and sysObjectID

2005-06-28 Thread Dave Shield
On Tue, 2005-06-28 at 10:18, Subodh Bansal wrote: > We are using UCD-Snmp-4.2.5 API for our SNMP Agent. That's a *very* old version. You should give serious consideration to upgrading to the v5 line. > Currently, Agent's response to sysObjectID is '.1.3.6.1.4.1.2021.250.10'. > I want to get my o

Re: IP Alias

2005-06-29 Thread Dave Shield
On Tue, 2005-06-28 at 17:07 -0400, Glenn MacGregor wrote: > As far as I can tell, I can only use the context idea if I am > using snmp v3 clients, is this correct? No. If you use directives such as com2sec -Cn context1 sec1 default community1 com2sec -Cn context2 sec2 default co

Re: modify - hack enterprise OID #

2005-06-29 Thread Dave Shield
On Tue, 2005-06-28 at 08:03 -0700, C Wells wrote: > Indeed, sco, aix and tru64 all come with 255 and I > must be able to distinguish them using the > SNMPv2-MIB::sysObjectID.0 Well, the Net-SNMP sysOID value is defined using: #define SYSTEM_MIB 1,3,6,1,4,1,8072,3,2,OSTYPE (in 'inclu

Re: problem in Configuring in linux ?

2005-06-29 Thread Dave Shield
On Tue, 2005-06-28 at 22:43 -0700, mahua dutta wrote: > Hi I am trying to configure net-snmp in linux. I have > implemented my own mib. The following configuration file I am > using for running. > Warning: no access control information configured. > It's unlikely this agent

RE: Remove v3 user

2005-06-29 Thread Dave Shield
On Tue, 2005-06-28 at 15:03 -0700, Fong Tsui wrote: > FT>> When removing a v3 user, we need to remove the user from both > FT>> [config] files. > > DS> Delete the user from the usmUserTable (usmUserStatus.xxx = 6) > DS> When the agent next shuts down, it will re-write the persistent > DS> file *w

Re: snmpwalk

2005-06-29 Thread Dave Shield
On Wed, 2005-06-29 at 15:43 +0400, Лобанов Валерий wrote: > running $snmpwalk localhost -c public > I can see only SNMPv2-MIB variables. > > Something is wrong or I should pass some additional parameters to > snmpwalk to see variables from all MIBs? Please see the FAQ entry: Why can't I

Re: snmpd runs away on Solaris 8

2005-07-01 Thread Dave Shield
On Thu, 2005-06-30 at 09:25 -0700, Mbuna wrote: > If anyone does an snmp query against the box the snmpd > daemon stops responding and chews up 40-50% of a CPU > until it's killed off. I'd check the access control settings. If the agent receives an unauthorized SNMPv1 GETNEXT request (such as fro

Re: Syntax errors for TargetMIB's counters

2005-08-15 Thread Dave Shield
On Sat, 2005-08-13 at 18:44 +0530, Anuradha Bhakta wrote: > I am working on net-snmp 5.1 release. > > When I do a get on snmpUnavailableContexts.0 & snmpUnknownContexts.0, I > get proper values. But when I remove the instance part, ie when I do a > get operation on only 'snmpUnknownContexts', the

RE: Syntax errors for TargetMIB's counters

2005-08-15 Thread Dave Shield
On Mon, 2005-08-15 at 13:43 +0530, Anuradha Bhakta wrote: > Thanks a lot for the reply. > > I would like to pick only the changes that have happened for fixing this > bug Id from 5.2 release. It would be greatful, if you can let me know > pointers to it. The only file affected is agent/mi

Re: Does net-snmp support wildcard(*) for subtree family.

2005-08-15 Thread Dave Shield
On Mon, 2005-08-15 at 11:49 -0400, Alex Burger wrote: > However, if I defined the proxy using: > > proxy -v 1 -c public localhost:1161 .1.3.6.1.2.1.1 > > I would get the sysDescr from Net-SNMP instead of the MS agent. That's probably because the "internal" registration uses a longer OID than the

Re: Does net-snmp support wildcard(*) for subtree family.

2005-08-16 Thread Dave Shield
On Mon, 2005-08-15 at 18:53 -0400, Robert Story wrote: > AB> I would like to be able to proxy everything to the MS agent so to the > AB> client it looks like the MS agent, but I will be able to use SNMP v3, > AB> pass, pass_persist etc in Net-SNMP. I'll file a bug report. > > I think the fix her

Re: getcols operation

2005-09-12 Thread Dave Shield
On Fri, 2005-09-09 at 18:06 -0400, Robert Story wrote: > On Mon, 22 Aug 2005 16:51:08 +0200 Ali wrote: > AAS> Does net-snmp include support for the GETCOLS operation? > I know Dave Shield implemented some proposed EOS extensions a while back. > Dave, what happened to that code? W

Re: Netsnmp on Redhat9 VS AIX 5.2?

2005-09-13 Thread Dave Shield
On Fri, 2004-04-30 at 09:43 +0800, [EMAIL PROTECTED] wrote: > I have installed NetSnmp5.2 on AIX5.2, but when I compare it with > Redhat9 default Netsnmp. > It is different as following: > The configuration in snmpd.conf on Redhat and AIX are the same. > why the result is so different? Becaus

Re: SNMP ON SUSE 9 x64

2005-09-13 Thread Dave Shield
On Tue, 2005-09-13 at 05:40 +0100, BHARATKUMAR GERA wrote: > Has Anyone tested SUSE NET SNMP AT ALL? Well, Suse ship this themselves, so I presume they've tested it and are happy that it works. I seem to remember that we've occasionally received bug fixes from them. > "Gera, Bharat" <[EMAIL P

Re: RE : SNMP V3 support

2005-09-13 Thread Dave Shield
On Mon, 2005-09-12 at 08:40 +0200, LAMBERT Eric (EURIWARE) wrote: > does net-snmp needs the v3 of SNMP for the proxy SNMP feature ? No. > Or does it work with SNMP V2 or V1 ? Yes. Suck it and see. Dave --- SF.Net email is Sponsored by the

Re: NetSnmp on AIX Issue

2005-09-13 Thread Dave Shield
On Wed, 2005-09-07 at 12:09 +0800, [EMAIL PROTECTED] wrote: > bash-2.05b# pwd > /usr/local/sbin > bash-2.05b# ./snmpd > bash-2.05b# ps -ef|grep snmp > > And the snmpd is not started. check the /var/log/snmpd.log, there is > no a error. Try running ./snmpd -f -Le That should displa

Re: SNMP ON SUSE 9 x64

2005-09-13 Thread Dave Shield
On Tue, 2005-09-13 at 13:44 +0100, BHARATKUMAR GERA wrote: > My /etc/snmpd.conf is as below. snmpget command does not work after > that. Basically need to know if NET SNMP AGENTX is supported at all in > SUSE? It should be - there's no significant different between SuSE and RedHat in terms of st

Re: net-snmp 5.2.1 make test fails

2005-09-13 Thread Dave Shield
On Tue, 2005-09-13 at 09:13 -0400, Manju Ravikanthi wrote: > Make test failed…. > 49: 108 total, 0 passed, 108 failed.(no pid file(s) found) FAIL I believe this is due to the tests using an old (and now obsolete) command option for specifying the PID file. The warning message confuses the test h

Re: "Holes" in oid sequence.

2005-09-14 Thread Dave Shield
On Tue, 2005-09-13 at 09:15 -0700, Tom Cumming wrote: > Is it "legal" to define a MIB with holes in the oid numbering Yes. Relatively unusual, but perfectly legal. > to allow for features that are unknown today to be added > at a later date??? Another way this can arise is when dropping obsole

Re: Netsnmp on Redhat9 VS AIX 5.2?

2005-09-14 Thread Dave Shield
On Wed, 2005-09-14 at 10:10 +0800, [EMAIL PROTECTED] wrote: > Thanks for your feedback, I can try and do some test on my AIX box. > But I am new to net-snmp, even I don't know how to start. Probably the best starting point would be to see which HostRes modules do/don't compile on AIX. Try the f

Re: What is the proper behavior for a GET when MFD_SKIP is returned?

2005-09-14 Thread Dave Shield
On Tue, 2005-09-13 at 08:38 -0700, Tom Cumming wrote: > I am writing an agent using 5.2.1 and mib2c/mfd. If my agent > receives a GET request, but the column has not been implemented yet, I > return MFD_SKIP. If I use snmpget to kick off a GET request, the > *_interface.c code returns ASN_PRIV_R

Re: Configuration for proxying to a subtree

2005-09-14 Thread Dave Shield
On Wed, 2005-09-14 at 14:56 +0530, Patil, Suresh (Suresh) wrote: > If I modify the proxy command in snmpd.conf to : >proxy -v 2c -c hostcommunity remotehost1 .1.3.6.1.2.1.1 > > Now if I reissue the above snmpget command, I get the sysName oid > information from the "localhost" instead of "

Re: RV: snmptrapd & NOTIFICATION-LOG-MIB support

2005-09-14 Thread Dave Shield
On Wed, 2005-09-14 at 11:04 -0400, Ivan Pozo wrote: > From the documentation I know the snmptrapd has the ability to > register the traps in the NOTIFICATION-LOG-MIB (in the nlmLogTable and > the nlmLogVariableTable), but when I send a trap to the snmptrapd this > is not registered. > I know thi

Re: "Holes" in oid sequence.

2005-09-15 Thread Dave Shield
On Wed, 2005-09-14 at 16:26 -0400, Robert Story wrote: > On Wed, 14 Sep 2005 09:01:50 +0100 Dave wrote: > DS> On Tue, 2005-09-13 at 09:15 -0700, Tom Cumming wrote: > DS> > Is it "legal" to define a MIB with holes in the oid numbering > DS> > DS> Yes. > DS> Relatively unusual, but perfectly legal.

Re: iterate option

2005-09-15 Thread Dave Shield
On Wed, 2005-09-14 at 12:55 -0400, Robert Story wrote: > Soori> I request you to suggest other helpers to use ? > > Well, the cache helper can be added with the iterator helper > to only read in the file every N seconds, Or "on demand" - triggered by receiving a request for that table (and the

<    5   6   7   8   9   10   11   12   13   14   >