How to assign a value to COUNTER64 type variable?

2004-08-05 Thread Jim Su
Hi Greeting: I have several MIB objects are Gauge64 type. According to the mib2c created C codes the actual data type in C for Gauge64 is ASN_COUNTER64. To assign the return value of the Gauge64 type variables in the var_() is not straight forward like other types of objects. I search

creating and maintaining View-based Access Control entries on a remote entity.

2004-08-05 Thread Tina Agarwal
Hi Dave, I am successful in creating views with the help of examples given in the man page at the site. But Dave, I am still not clear what is the requirement of creating and maintaining View-based Access Control entries on a remote entity. Can you please explain me why is it required exactly..

SMUX problem

2004-08-05 Thread 차정호
Hi! I have encontered some problems with the SMUX interface when I try to create new table entry using the "snmpset" request. I give you some cases below. First case is ok. But second one is not ok. I want both cases to result in same result. Please have a look and tell me how to overcome it. --

Maximum valid index in header_simple_table()

2004-08-05 Thread Jim Su
Hi Greeting: I still don't understand the purpose of setting the maximum valid index parameter in the header_simple_table API. The AGENT.txt file said "the maximum index value parameter does not have to be a permanently fixed constant. It specifies the maximum valid index at the tim

Questions on "Extending the Net-SNMP agent"

2004-08-05 Thread Rachel Wang
Title: Questions on "Extending the Net-SNMP agent" I have net-snmp 5.0.9 running on Red-hat Linux (kernal version 2.4.20). I am trying to find out how to extend the agent to support my own MIB definitions. The only tutorial I find is "Extending the UCD-SNMP agent" for 4.x. Here are my questi

Re: MIBs question

2004-08-05 Thread Niels Baggesen
On Thu, Aug 05, 2004 at 10:23:58AM -0600, Carlos Cantu wrote: > Preferably I'd like to configure the agent to not return these > tables at all. ./configure --with-mib-modules=host --with-out-mib-modules=host/hr_swinst /Niels -- Niels Baggesen - @home - Århus - Denmark - [EMAIL PROTECTED] The pu

Pass through question

2004-08-05 Thread FirstName LastName
I have two pass through scripts (see below), and probably will be adding more later. pass .1.3.6.1.4.1..1.1 /usr/share/snmp/pass_scr/script1.py pass .1.3.6.1.4.1..1.3 /usr/share/snmp/pass_scr/script3.py An snmpwalk works perfectly within enterprises..1.1 or enterprises..1.3, but

segmentation fault

2004-08-05 Thread Victor
I'm getting a segmentation fault while executing this test code. I guess this means that it's not a good idea to mix sync & async snmpget calls. Is this a bug or just plain malpractice? -- Victor Gil #!/usr/bin/perl use SNMP; use strict; use diagnostics; my $session = new SNMP::Session( D

hrDeviceIndex

2004-08-05 Thread Carlos Cantu
Getting an hrDeviceIndex.1280 = 1280 with an hrDeviceType of hrDevicePrinter. I'm guessing this is being generated by the net-snmp agent. But shouldn't there also be an entry in the prtGeneral table subscripted by 1280? And I'm even curious why that entry is there. We are a printer, but I'm han

MIBs question

2004-08-05 Thread Carlos Cantu
Is there any way to make the hrSW table less comprehensive? My last dump of the host resources table had the software OIDs count at over 2000 instances. I know this is a mandatory table, but it makes walking the MIBs harder when we're really only interested in the hrDevice, hrSystem and hrStorag

Re: Merge changes?

2004-08-05 Thread Dave Shield
> After I have implemented the changes in the template code generated the I > realise that I need to add something to the MIB. > Can I just make the change to the XX-MIB.txt file and then make the changes > to the .c and .h files and rebuild? Yes - that's probably the most sensible, particularly

Merge changes?

2004-08-05 Thread Gary Clark
Hello, After I have implemented the changes in the template code generated the I realise that I need to add something to the MIB. Can I just make the change to the XX-MIB.txt file and then make the changes to the .c and .h files and rebuild? Or are there additional bindings needed? Thanks, Garyc

cool totally cool

2004-08-05 Thread Gary Clark
Hi, I was advised to stick with the current approach of generating template code and filling the code out to get persistence to work. Basically I can save the mib to a persistence file and reload the persistence into the mib. When set requests are performed the agent updates the mib and the persis

Re: snmptable query

2004-08-05 Thread Dave Shield
> [apps]$ ./gettable > AMIT: 1.3.6.1.2.1.7.5 > Was that a table? .iso.3.6.1.2.1.1.3.6.1.2.1.7.5.1.1 Try ./gettable .1.3.6.1.2.1.7.5 i.e. with a leading '.' for the OID. This ensures that the tools regard this as a full numeric OID, rather than a partial one (implicitly rooted at "

Re: subagent program works with TCP not over UDP

2004-08-05 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. T

How to create View ?

2004-08-05 Thread Sanjay Madan
Hi,   Can anybody help me to explain how to add view by using snmpvacm command. I'm executing below command: snmpvacm -v2c -c public 10.254.24.245 createView [-Ce] system 1.3.6.1.2.1.1  7 I am entering 7 as mask . Is that O.K? Am I wrong somewhere?   WIth Regards;Sanjay Madan(Sr. Software Eng

Re: subagent program works with TCP not over UDP

2004-08-05 Thread Dave Shield
> I am using NET-SNMP version: 5.0.6 > I have written a program for SNMP subagent to connect > to master agent for serving get/set requests. What sort of "subagent" is this? Are you using AgentX or something else? > when I use tcp it works fine.. > but when use udp to conne

subagent program works with TCP not over UDP

2004-08-05 Thread Anantha Krishna Bhat
Hi, I am using NET-SNMP version: 5.0.6 I have written a program for SNMP subagent to connect to master agent for serving get/set requests. when I use tcp it works fine.. but when use udp to connect to master agent.. I can register the Object handler but when I do "snmpget", request is comming to ma

RE: Magic number and the #define

2004-08-05 Thread Jim Su
Hi Dave: Thanks! It's wonderful! The more I tried and traced (of course with your input) the more I understand the mechanism. Yes, your input cleared my doubt. And there is no need to separate the #define for two tables. Thanks for the additional illustration for some special cases. I think

Re: Table leaves have extra .0 's reported by snmpwalk

2004-08-05 Thread Dave Shield
> | | +--udpEthInLinkTable(3) > | | | | > | | | +--udpEthInLinkEntry(1) > | | | | Index: udpEthInLinkTable ? > | | +--udpEthOutLinkTable(4) > | | | > | | +--udpEthOutLinkEntry(1) > | || Index: udpEthOutLink

Re: snmptable problem

2004-08-05 Thread Dave Shield
> Can any one tell what's wrong with this command > > [EMAIL PROTECTED] amit]$ snmptable -c public 127.0.0.1 at.atTable > snmptable: No securityName specified You're trying to use community-based authentication, but the v5 commands default to using SNMPv3 Try snmptable -v 1 -c public 127.0.

Re: Help SNMP module

2004-08-05 Thread Dave Shield
> Help, > Has anyone install SNMP module. I have download this package from > http://search.cpan.org You really need to use the version of the perl module that matches the Net-SNMP suite which you are using. The error that you mention has been fixed in the current releases. Get the latest source

Re: groups, users and views

2004-08-05 Thread Dave Shield
> Can anybody please tell me how to include groups, users, views in > net-snmp? Please see the FAQ entry: I don't understand the new access control stuff - what does it mean? > In which MIB can I find the support for these? SNMP-VIEW-BASED-ACM-MIB >

snmptable problem

2004-08-05 Thread Amit Singh CHANDEL
Can any one tell what's wrong with this command [EMAIL PROTECTED] amit]$ snmptable -c public 127.0.0.1 at.atTable snmptable: No securityName specified I have installed red hat 9 with net-snmp-5.0.6 version. -- Amit Singh Chandel Associate Software Engineer [EMAIL PROTECTED] ST

Help SNMP module

2004-08-05 Thread Jack A. Kanimea
Help, Has anyone install SNMP module. I have download this package from http://search.cpan.org Every time I try to complie it gives the error below ___ [EMAIL PROTECTED] SNMP-4.2.0]# perl Makefile.PL WARN

Re: Magic number and the #define

2004-08-05 Thread Dave Shield
> I ran the mib2c to generate C codes. The tool defines the table entries > for two tables all together. The number of the second table entries > continues from the last entry of the first table. So the actual #define > for table entry of table one begins from 1 to 20 and for table entry of > table

Table leaves have extra .0 's reported by snmpwalk

2004-08-05 Thread Mark Hansen
Hi, I have implemented an SNMP agent with the following 2 tables (shown using snmptranslate): +--udpEth(3) | | | | | +-- -R-- INTEGER numUdpEthInLinks(1) | | +-- -R-- INTEGER numUdpEthOutLinks(2) | | | | | +--udpEthInLinkTable(3) | | | |