Re: Is there a netsnmp_register_string?

2004-05-28 Thread Dave Shield
But I need to register a string. Searching the documentation I haven't found a function looking like netsnmp_register_string_instance and I coudn't find an example explaining how to register a string using the generic netsnmp_register_instance Have a look at

Re: Is there a netsnmp_register_string?

2004-06-01 Thread Dave Shield
The code appears to be ok, but the string isn't registered: $ snmpget -v2c -c public localhost 1.3.6.1.4.1.10.1.2 SNMPv2-SMI::enterprises.10.1.2 = No Such Instance currently exists at this OID Is this the same OID that you gave in the netsnmp_create_handler_registration() call?

Re: Issues while moving the configuration from file to Database

2004-06-01 Thread Dave Shield
I have observed that net-snmp does not support snmpCommunityTable of RFC 3584(SNMP-COMMUNITY-MIB), though the data related to this is maintained in local memory. Is there any particular reason that this is not supported. Because no-one has implemented this particular MIB. The equivalent

Re: Redirection?

2004-06-01 Thread Dave Shield
I find that several of the MIBs I'm implementing provide the same or similar information in different groupings. Is there a way to tell snmpd, When you get a request for .8.7.56.45.4, just return the value for .2.6.5.7.9? It's not really possible to get the agent to do this sort of

Re: Redirection?

2004-06-02 Thread Dave Shield
Let me try to strain this analogy to the braking point: if I went to a party where you and some of your friends were hanging out, I might ask one of them, Can you tell me where William Buckley is? and they might say, Bill is over there. Actually, if I can correct that analogy slightly. If

Re: about net-snmp

2004-06-04 Thread Dave Shield
Dose the net-snmp and ucd-snmp have source code that I can development them on the windows OS? Thanks a lot!! Yes. Dave --- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile,

Re: Enabling net-snmp for managers on other machines

2004-06-07 Thread Dave Shield
I can run all commands from my local machine, but from remote machine, the port 161 is not discoverable. I know, this is more of linux (xinetd) mgmt. question - was wondering, if anyone knew, what I need to anable to allow others to be able to access this port? From the FAQ: Requests

Re: dlmod

2004-06-07 Thread Dave Shield
I'm starting snmpd daemon, then creating a new row in the dlmod table: # /usr/bin/snmpset UCD-DLMOD-MIB::dlmodStatus.1 i create UCD-DLMOD-MIB::dlmodStatus.1 = INTEGER: create(6) But, record in table is not created: My experience is that the dlmodTable is incredibly fussy about how

Re: Patch(es) for FreeBSD 5.2.x

2004-06-10 Thread Dave Shield
What are all the patches for FreeBSD 5.2.x ? Is there a place/link that contains all the patches available for FreeBSD 5.2.x ? If you can wait until Friday, the plan is to produce a '5.1.2.pre2' pre-release source tarball, which will include all of the patches that we have so far. It would be

Re: Not getting all I asked for

2004-06-10 Thread Dave Shield
My client is interacting with the snmpd process which needs to get all of these values from my subagent. Starting snmpd with -Dagentx shows each variable being handled in the agentx protocol and putting snmp_log() calls in my MIB implementation shows that each value is retrieved by the

Re: snmpd.conf problem

2004-06-10 Thread Dave Shield
Have you then installed this file to the final destination? Typically either '/etc/snmp/snmpd.conf' or '/usr/local/etc/snmp/snmpd.conf' (depending on how the agent was compiled) Doesn't that usually go in /usr/local/share/snmp? $ man snmpd.conf NAME

Re: Problem with snmp getnext in table

2004-06-14 Thread Dave Shield
I have a table which has got 2 indices and the following is the scenario: oid of table: x oid of tableEntry: x.1 It has 6 columns (assume names A, B, C, D, E, F) with oid extensions as 1, 2, 3, 4, 5, 6 with A and B as the indices. What type of values are 'A' and 'B' ? I

Re: A small problem in usage of method snmp_varlist_add_variable()

2004-06-15 Thread Dave Shield
DFP In the example notification.c, the definition of the trap is included DFP at NET-SNMP-EXAMPLES-MIB: DFP DFP netSnmpExampleNotification OBJECT-TYPE DFP SYNTAX SnmpAdminString DFP MAX-ACCESS accessible-for-notify DTS Actually that definition is wrong. DTS This is the definition

Re: Problem in usage of mib2c

2004-06-15 Thread Dave Shield
Dave It looks as if the main CVS branch has rather more robust argument Dave parsing code, which *does* report on unrecognised options. Dave Is it worth applying this approach to the 5.1.2 code as well, Dave or would this count as a new feature ? Wes Though I agree it's a bug, its on the

Re: agentx communication, cores

2004-06-17 Thread Dave Shield
My list is ordered, but there seems no way for the iterator to use this information. Note that with 5.1 and above, you can indicate this when registering the table initially, and the iterator will cut short the searching appropriately. Try netsnmp_iterator_info *iinfo =

Re: Questions about deleting a table row by the agent

2004-06-17 Thread Dave Shield
[ Firstly, can you please *NOT* send the same request multiple times. The support for this package is provided in our spare time, and paid employment must take priority. Asking the same question three times in less than three hours is

Re: 5.1.2 pre2 on FreeBSD (FEEDBACK)

2004-06-17 Thread Dave Shield
I download the package, unzip and un-tar on Freebsd 5.2.x release. Here are some of the errors I am still getting when running configure command. The output you list is actually a series of warnings, rather than actual errors. Does the configure script run to completion, or does it fail

Re: Counter64 support in net-snmp 5.1.1

2004-06-17 Thread Dave Shield
Anyone, let me know , whether Counter64 variables has been supported in net-snmp 5.1.1 release? Yes. Counter64 variables have been supported since approx. v3.4 The main thing to note is that you should use struct counter64 to hold such values, rather than a 64-bit integer variable, and

Re: Problem in libnetsnmp.so

2004-06-18 Thread Dave Shield
I'm getting these errors while doing make of the net-SNMP:- undefined reference to `EVP_DigestInit' undefined reference to `EVP_DigestFinal' undefined reference to `EVP_md5' undefined reference to `HMAC' undefined reference to `EVP_sha1' undefined reference to `des_cbc_encrypt'

Re: SNMPv3 support.

2004-06-18 Thread Dave Shield
Somebody can help me about how to find documentation regarding SNMPv3 support by UCD-SNMP agent? Have you read README.snmpv3 and the man pages 'snmpd.conf(5)' and 'snmpcmd(1)' ? Dave --- This SF.Net email is

Re: problem in Installing net-snmp-5.1.1 under RH9

2004-06-21 Thread Dave Shield
in the /usr/lib there are two files begin with libelf, their name are [EMAIL PROTECTED] root]# cd /usr/lib [EMAIL PROTECTED] lib]# ls libelf* libelf-0.76.so libelf.so.1 Try 'ls -l libelf*' You'll see that libelf.so.1 is actually a symbolic link to libelf.so As Robert said, what's missing

Re: Problem with installing the Perl5 extension module

2004-06-21 Thread Dave Shield
I wanted to use mib2c and saw that installing of perl module is necessary . I am using ucd-snmp-4.2.2 ( though wanted to use ucd-snmp-4.2.1 could not find it for download ) . Both of these releases are fairly old now. The most recent version of the 4.2.x line is 4.2.6 If you're not in a

Re: MAC address not retrieved by Win32 client

2004-06-21 Thread Dave Shield
However, I noticed that MAC (physical) addresses (OID .1.3.6.1.2.1.2.2.1.6.2, etc) were NOT retrieved by the tool. It would be a lot easier to advise you as to the cause of this problem if you'd included some indication as to what you'd actually tried. It might be that you're asking for

Re: MAC address not retrieved by Win32 client

2004-06-21 Thread Dave Shield
Here are more details: If I will run `snmpwalk` from my Linux machine, I can definitely see the line: RFC1213-MIB::ifPhysAddress.2 = Hex-STRING: 00 90 73 00 02 F5 Is that the same box as the agent is running on, or a different one? It's worth checking you can see things from a remote

Re: problem in Installing net-snmp-5.1.1 under RH9

2004-06-21 Thread Dave Shield
I have done what the FAQ told me which is same as that Robert said. but make action doest work yet. OK - what does ls -l /usr/lib/libelf* show? Dave --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn

Re: problem in Installing net-snmp-5.1.1 under RH9

2004-06-22 Thread Dave Shield
# ls -l /usr/lib/libelf* -rwxr-xr-x . /usr/lib/libelf-0.76.so lrwxrwxrwx . /usr/lib/libelf.o - libelf.so.1 lrwxrwxrwx . /usr/lib/libelf.so.1 - libelf-0.76.so There's the problem then. You still don't have a shared library libelf.so You've got what looks like an object

Re: noSuchName returned when requesting for hrStorage

2004-06-22 Thread Dave Shield
When I try to query the agent on entries specified in HOST-RESOURCE-MIB, I got the following inconsistent results: If I query for 1.3.6.1.2.1.25.1.1 (hrSystemUpTime), the agent returns the right result. If I query for anything else defined in the MIB, I got noSuchName result.

Re: problem in Installing net-snmp-5.1.1 under RH9

2004-06-22 Thread Dave Shield
thank u too, I have posted another message, Yes - you've posted six copies of the damn thing. Bombarding the list like this is *NOT* the most sensible way to ask for assistance! when I make test, almost all failed. why? 41:testing 1st CPU on Solaris using HOST-RESOURCES...SKIPPED

Re: send Trap

2004-06-22 Thread Dave Shield
send_easy_trap(SNMP_TRAP_ENTERPRISESPECIFIC, 1); but my subagent mean : send_trap: Unknown PDU type Which version of the Net-SNMP suite are you using? There was a problem with sending traps from subagents, but the most recent releases (5.0.9, and 5.1.1) should both work correctly. Dave

Re: Enabling DES encryption

2004-06-22 Thread Dave Shield
./configure --with-default-snmp-version=3 \ --with-openssl=/usr/bin/libssl.so.9.6\ --with-security-modules=usm That doesn't look right. $ ./configure --help | grep openssl --with-openssl=PATH Look for openssl in PATH/lib. I'd

Re: send Trap

2004-06-22 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.

Re: Which handler to use for DisplayString type

2004-06-22 Thread Dave Shield
If I am to call netsnmp_create_handler_registration for a scalar of type DisplayString, what is the instance handler that this scalar should be registered with? If you're registering a scalar object, then use netsnmp_register_scalaer() rather than

Re: does net-snmp-5.1.1 have the function of SNMP proxy agents?

2004-06-23 Thread Dave Shield
if net-snmp-5.1.1 has, then how to configure it to work as a SNMP proxy agents? Have you actually tried looking at the documentation? Like the man page for 'snmpd.conf' ? There's a whole section there on proxy. --- This SF.Net email

Re: mib2c

2004-06-23 Thread Dave Shield
When I was trying to run mib2, got the following error. What am I doing wrong? ERROR: You don't have the SNMP perl module installed. Well this is just a guess, you understand, but one possibility is that you haven't installed the SNMP perl module. Given that 'mib2c' is written in perl,

Re: mib file problem

2004-06-23 Thread Dave Shield
I am using ucd-snmp 4.2.6 in my computer. I created a new MIB module in order to cover my companies management needs. But although the module works perfect in my computer, I cannot make it work in any other machine. Sounds like access control. Can you see *anything* from the remote

Re: mib2c

2004-06-23 Thread Dave Shield
How do I use net-snmp to get the in-octets and out-octets from a Router ? snmpwalk -v 1 -c public router ifInOctets or snmpwalk -v 1 -c public router ifOutOctets (or whatever the appropriate settings are for your router). To monitor this over a period of time, and draw

Re: QoS modules

2004-06-23 Thread Dave Shield
I try to compile net-snmp with QoS modules, but got errors when compiling the source. And I got the patch QoS modules from http://x-ray.prokon.cz/data/snmp/. I suggest you contact the authors of that code. They're more likely to know what the problem is, and be in a position to fix it.

Re: Query in SNMPv3

2004-06-23 Thread Dave Shield
How to decrypt the passwd key of an a usmuser that had been encrypted if the application requires to do so...?? Nope - you can't do that. SNMPv3 authentication doesn't work that way. The password is used to generate a (localised) key which is then used to generate a digital checksum for each

Re: mib file problem

2004-06-23 Thread Dave Shield
No it is not the access because I can get other information from the remote machine such as sysLocation,UpTime etc. But can you see anything *outside* the system group? What if you do: snmpgetnext ip for example? See the FAQ entry: I can see the system group, but

Re: Which handler to use for DisplayString type

2004-06-23 Thread Dave Shield
However, I still need to specify the name of the instance handler in netsnmp_create_handler_registration. So, I did not quite get, how I can do *without* specifying the netsnmp_scalar_helper_handler by name in netsnmp_create_handler_registration. Also, if I specify the

Re: Which handler to use for DisplayString type

2004-06-23 Thread Dave Shield
The following is the snippet where all the ***actions*** are: my_handler[i] = netsnmp_create_handler_registration( //apFrameId, netsnmp_instance_int_handler, apFrameId, netsnmp_scalar_helper_handler, apFrameId_oid,

Re: Thanks : Re: send_easy_trap

2004-06-23 Thread Dave Shield
Is this the struct you mean: struct variable_list {} Yes - that's the one. last question about the varbind list , can you give an example how such a varbind list looks like ? Try running mib2c -c mib2c.notify.conf SIP-SER-MIB::sipserMaxUsersTrap That should generate an

Re: hrStorageIndex values changed from 5.0.9 to 5.1.1

2004-06-28 Thread Dave Shield
5.1.1 hrStorageEntry.hrStorageDescr.2 = STRING: Real Memory hrStorageEntry.hrStorageDescr.3 = STRING: Swap Space 5.0.9 hrStorageEntry.hrStorageDescr.101 = STRING: Real Memory hrStorageEntry.hrStorageDescr.102 = STRING: Swap Space Yes - that's correct. The old arrangement put an

Re: no snmpd binary

2004-06-28 Thread Dave Shield
Iam using ucd-snmp-4.2.6 . When I do a 'make' in the agent directory I get the following error message - /usr/bin/ld: cannot find -lelf Yes - recent versions of RedHat don't seem to include the version-independent softlink for libelf.so (or at least, only in a relatively obscure

Re: problems with snmptrapd

2004-06-28 Thread Dave Shield
I encountered the broken pipe error during my tests. the snmptrapd.conf file only contains the line traphandle default /bin/pwd A couple of quick tests seem to indicate that this error is being generated because /bin/pwd doesn't actually read from standard input (and may well close it

Re: FW: snmpset not working

2004-06-30 Thread Dave Shield
Mike The community name you are using for the read only and read write Mike access should be different in order to be able to use the snmpset Mike command. That's a slight simplification, but does touch on the heart of the problem. In particular, you're mixing two different styles of access

Re: Deregistration of a MIB -- Any API?

2004-06-30 Thread Dave Shield
I am not able to grep that API in 5.1.1. Any idea on the file name that I need to look into. agent/agent_handler.c It simply takes the netsnmp_handler_registration structure created in the initialisation routine. Dave --- This

Re: Deregistration of a MIB -- Any API?

2004-06-30 Thread Dave Shield
At this stage, it will be tough for me to migrate to the other version. Till then, is there any other alternative that works with 5.1.1 release? I listed the full code of the missing routine. Just paste it into the 5.1.1 agent_handler.c file Dave

Re: FW: FW: snmpset not working

2004-07-01 Thread Dave Shield
When I try to give snmpget ,like the following command snmpget -v 2c -c public 10.116.20.5 ip.ipForwarding.0 I am getting the result as follows .1.3.6.1.2.1.4.1.0 forwarding and I am not getting the value of the forwarding as either 1 or 2 Yes, in fact you are. Look at the

Re: Deregistration of a MIB -- Any API?

2004-07-01 Thread Dave Shield
I could not find the fuunction pasted in your response. Eh? But you included the whole of that response (including the function code) in your message of Wed, 30 Jun 2004 19:05:32 +0530 The one where you said Thank you Shall I download 5.1.1.pre2 and get the function? Is it available in that

Re: Problem in snmpget.. For IP-MIB

2004-07-01 Thread Dave Shield
Sigh Please *don't* post the same problem twice. Particularly not under different subject lines. You need to use the '-Oe' flag. Dave --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las

Re: net-snmp SC test failures and queries

2004-07-01 Thread Dave Shield
Vic Also, the EGP group seems included on the MIBs, how come the Vic objects are not implemented by net-snmp? `configure --help` does Vic not list any info on how to enable this group. What's NET-SNMP's Vic status on EGP? Wes Well, we only implement things that people have given us code for :-)

Re: Table iterator: get_next_data_point

2004-07-09 Thread Dave Shield
The data I am accessing is in a shared memory area. It is already ordered but might have gaps in it (ie. some rows might be missing). The gaps are no problem, but the iterator helper doesn't assume that the list is sorted properly, so will look through the whole thing for each individual

Re: problem in configuring agent for SNMPv3 protocol

2004-07-13 Thread Dave Shield
when I give the version as -- trapsess -v 2c localhost:9001 then the snmptrapd receive all the traps, but with -v 3 it doesn't receive anythingnot even the Cold Start trap from agent. You need to specify *all* the SNMPv3 settings in the trapsess line - i.e. the username, security level

Re: Range for an object of type OBJECT IDENTIFIER

2004-07-13 Thread Dave Shield
How to define a fixed length OBJECT IDENTIFIER type of object in the MIB? Does SMIv2 allows SIZE tag for an object of type OBJECT IDENTIFIER? I don't think so, no. The only mention of SIZE in RFC2578 is in relation to OCTET STRING values. (Apart from one place where it explicitly states that

Re: Getbulk

2004-07-14 Thread Dave Shield
On more thing, GetBulk will start with the object ID A and ends with OID F. Am I right? or it traverses the whole MIB for which the related OID(s) are given? I'm not quite sure what you mean by that. The result of the GETBULK is simply a concatenation of the equivalent

Re: libnetsnmpagent

2004-07-14 Thread Dave Shield
Anyone ever see: relocation error: /usr/lib/libnetsnmpagent.so.5: undefinded symbol: hosts_ctl ? Is this a library/agent that you've compiled yourself, or a pre-installed version? I've got a vague recollection that this can be triggered by mixing a pre-installed version with

Re: libnetsnmpagent

2004-07-14 Thread Dave Shield
Is this a library/agent that you've compiled yourself, or a pre-installed version? It's possible. Yet on this system there should only be one instance of net-snmp. It's a dual-boot machine that boots into two flavors of SuSE. But they shouldn't share any files since they are on their

Re: few more questions related to SNMPv3

2004-07-14 Thread Dave Shield
1) I create the following entries: ---in /var/ucd-snmp/snmpd.conf createUser userSoni MD5 lightlight DES Which version of the code are you using? The v5 line would normally look in /var/net-snmp/snmpd.conf instead [Minor point - don't repeat a phrase like that. The way that SNMP

Re: MIB Parse Error

2004-07-15 Thread Dave Shield
I get the following error message from the net-snmp library: Unlinked OID in COMPANY_MIB: VariableName ::= { company 21 }. A minor point, but MIB variable names really ought to start with a lower case letter. Initial upper case tokens are reserved for type names, and similar built-in

Re: libnetsnmpagent

2004-07-15 Thread Dave Shield
hosts_ctl sounds like part of the libwrap mechanism. [possibly] provided by the tcp_wrappers RPM. Do you have that installed? Don't know. Did an 'rpm -qa' and don't see anything called tcp_wrappers. Only tcpd.. and net-tools.. look like they'd be worthy candidates -- but probably

Re: MIB Parse Error

2004-07-15 Thread Dave Shield
My curiosity was to know what the orphan node in the MIB tree means, and when does a node become an orphan node? An orphan is a child without any parents, so an orphan node is a node without a parent node. i.e. variableName ::= { company 21 } where there isn't a valid definition of

Re: CPU and Memory Information

2004-07-15 Thread Dave Shield
For example, i am using Linux (Debian) and i tried to get the total available memory on my host: 1) apt-get install snmp (NET-SNMP Tools - get, next commands and so on)...OK 2) apt-get install snmpd (NET-SNMP Agent)...OK 3) snmpget -c public -v 2c host .1.3.6.1.4.1.2021.4.11

Re: Searching for MIB-II TCP values

2004-07-16 Thread Dave Shield
does anybody know where the agent reads the MIB-II TCP values tcpRtoMin tcpRtoMax tcpMaxConn from ? $ cat /proc/net/snmp : Tcp: RtoAlgorithm RtoMin RtoMax MaxConn Tcp: 1 200 12 -1 . See

Re: Problem in MIB Loading...

2004-07-19 Thread Dave Shield
Dave i have attached the output file with the mail also. Thanks, that's useful: parse-mibs: Scanning directory /home/fawad/.snmp/mibs parse-mibs: The index is good parse-mibs: Scanning directory /usr/local/share/snmp/mibs parse-mibs: The index is good parse-mibs: Module 0 RFC1155-SMI is

Re: Problem in MIB Loading...

2004-07-19 Thread Dave Shield
Before loading the MIB its implementation is must or we can just load MIB with out implementation? No - loading the MIB, and implementing it are two completely separate tasks. It's perfectly possible to implement a MIB without loading it, or to query an implemented MIB without loading it (as

Re: Problem in MIB Loading...

2004-07-19 Thread Dave Shield
[Cc:ed back to the mailing list] I got the problem :). The problem was with my TOPO-MIB file. looks again Argghhh!!! Yup - finally spotted it. DEFINITION rather than DEFINITIONS Grrr. Which just shows that it's always worth running a MIB file through a proper MIB validation

Re: host resources mib problem

2004-07-19 Thread Dave Shield
Try: snmpwalk -v 2c -c (my rwcommunity name) -m ALL localhost .1.3.6.1.2.1.25.3 and see what you get. If that works do: snmpwalk -v 2c -c (my rwcommunity name) -m ALL localhost system But as Holger says, that *won't* give you the Host-Resources-MIB, since none of that is under

Re: Bind Exception - snmptrapd

2004-07-20 Thread Dave Shield
Without snmptrapd running, my java trap generator works fine but it produces java.net.BindException with snmptrapd. I guess snmptrapd and my app can't use the same port. Could you give me a hint how I could make work both snmptrapd and my trap generator using the same 162 port? Is your

Re: script called by traphandle getting executed twice

2004-07-20 Thread Dave Shield
It seems that any script that I put in a traphandle line in the snmptrapd.conf file gets called twice when I send a trap to test it. The two most likely causes that spring to mind are either the trap is being received twice, or the config file is being read in twice. Try running

Re: example-demon can't SET integer

2004-07-20 Thread Dave Shield
When I perform snmpset -c public -v 2c localhost NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0 = 5 I get the following error Error in packet. Reason: notWritable (that object does not support modification) How have you configured the access control for the agent? Can you

Re: Basic config for Debian package of net-snmp

2004-07-20 Thread Dave Shield
I went through the /etc/snmp/snmpd,conf file and filled in the bits that it indicated for basic operations (or so I thought). But what did you change? In particular, what access control settings do you now have? See the FAQ entry: How do I configure access control?

Re: I've been getting buried in traps since 5.1.1

2004-07-21 Thread Dave Shield
# snmpd.conf (names changed to protect the guilty) trapsink foobar1z sandy trap2sink foobar1z sandy informsink foobar1z sandy trapcommunity sandy Is the above overkill? Yes. From the FAQ: Where are these traps sent to? - A configuration block

Re: libwrap

2004-07-21 Thread Dave Shield
I see USE_LIBWRAP is defined in ucd-snmp, but undefined in net-snmp. Or at least it's defined in ucd-snmp-config.h, but not in acconfig.h. Forget about 'acconfig.h' - that's used as part of constructing the configure system. What's relevant are the two xxx-snmp-config.h files - the

Re: PERL problem with mib2c

2004-07-21 Thread Dave Shield
When performing the following $ mib2c etherStatsEntry I then see the following: running indent on etherStatsEntry.c [snip error] Well, if it's getting as far as running indent, then it should have generated all of the code first. Failing to indent is cleanly won't make any

Re: snmpd does not send traps

2004-07-21 Thread Dave Shield
in snmpd.conf i have: proc rpc.mountd 1 1 trapsess -Ci -c public -v 2c snmp rouser trapsender noauth agentSecName trapsender monitor -r 10 -o prNames -o prErrMessage process table prErrorFlag != 0 the snmpd does not send trap then i stop the mountd daemon and check with snmpwalk i see

Re: HP Health Agents for Proliant on Linux

2004-07-21 Thread Dave Shield
These SNMP agents from HP have the disadvantegous feature(?) that their MIBs are not separately supplied, but somehow hardcoded compiled into the agents binaries. Yes - that's pretty standard for most agents. So I cannot simply add the MIB files to the mibs directory, (as written in the

Re: configuration of net-snmp on linux redhat 8.0

2004-07-21 Thread Dave Shield
Sorry for the delay in responding to this request. Hello, I fell out of order as regards the configuration of the net - snmp snmpconf, for it if you have helps on this subject, do not hesitate of me I'm not sure whether this is still relevant, but it's not particularly clear exactly what you

Re: an 'snmptrap' question

2004-07-21 Thread Dave Shield
[ Sorry for the delay in responding to this ] Does anyone know how to specify an originating agent IP address while sending a v2c trap by using 'snmptrap' command? You could try appending a varbind snmpTrapAddress.0 = {IP-address} to the v2 trap varbind list. This should be

Re: init_agent crash

2004-07-21 Thread Dave Shield
Calling init_agent() twice on PPC crashes netsnmp. Just posting here to find out if there is a double- init issue with init_agent(), I suspect this is something that probably hasn't really been looked at before. In general, we wouldn't normally call this routine twice. And even

Re: how to configure snmpd.conf

2004-07-21 Thread Dave Shield
[ Sorry for the delay in responding to this ] Could you help me about how to configure snmpd.conf (set the file) That's a fairly general sort of question. If you're still interested in this, it would be useful to know what in particular you're wanting to do. Dave

Re: Building on OSF/1 v4.0

2004-07-21 Thread Dave Shield
Sorry for the long delay in responding to this. I have some older hardware I'd like to run net-snmp on, but I'm having build problems. Has anyone built the 5.1 release on an Alpha running OSF/1 v4.0? Not a system I know anything about, I'm afraid (But it looks as if nobody else does

Re: More perl issues.

2004-07-21 Thread Dave Shield
Here's the code snippet... my $snmpGrab = 'sysDescr.0'; my $snmpCount = 1; my $var = $session-bulkwalk(0, $snmpCount, $snmpGrab); print $$var[0]-val . \n; Which is simple, straightforward, pretty much grabbed exactly from example code. I'm not quite sure where that example code

Re: snmpv3 error

2004-07-21 Thread Dave Shield
I added this line in the snmpd.conf file, but know I am receiving the following reply when I am trying to make a get request: snmpget: Unsupported security level What is the exact snmpget command you are using? Dave --- This SF.Net

Re: Traphandle Broken pipe

2004-07-21 Thread Dave Shield
snmptrapd: token = '/bin/bash/ /usr/local/bin/handle-config2-trap.sh' ^^ There appears to be a trailing slash that shouldn't be there. Dave PS: Please - no HTML mail. Thanks --- This SF.Net email is

Re: Problems with oid translation

2004-07-22 Thread Dave Shield
snmptable does work (when oid is a table, of course): C:\snmptable -v 1 -c public 192.168.1.2 ciscoMemoryPoolTable [snip] But snmpwalk/get doesn't work: C:\snmpwalk -v 1 -c public 192.168.1.2 ciscoMemoryPoolTable snmpwalk: Invalid object identifier: ciscoMemoryPoolTable.

Re: hallo,does the net-snmp-5.1.1 support RFC3411-3418?

2004-07-22 Thread Dave Shield
it seems the FAQ is not up to date, the faq does not declare the support the range from RFC3411 to RFC3418. In fact, the CVS version of the FAQ has already been updated to reflect the latest versions of the SNMPv3 specifications, and this FAQ will be included in the next release (5.1.2) which

Re: WRB - Problems compiling a .c produced by mib2c.

2004-07-26 Thread Dave Shield
gcc -g -O2 -Dlinux -x c ieee802dot11_oldapi.c I get errors having this form: var_ieee802dot11 undeclared here (not in a function) initialiser element is not constant (near initialisation for 'ieee802dot11_variables[0].findVar') And what does the relevant code look like? What is

Re: Perl Problems - make test

2004-07-26 Thread Dave Shield
As it happens, there are nine separate postings to the users list that reference the string PerlIO_fprintf and dating from April 2003 up to the my posting just a few days ago. Which version of the code are you using? The use of the 'PerlIO_fprintf' call was removed some time before the 5.1

Re: Version 9 and linux red hat installation problem

2004-07-27 Thread Dave Shield
I then grabbed the package Tk800-804.027.tar.gz. Performed the necessary gunzipped and untar. Rebuilt the TK and performed make install. All went a charm. Then I tried again: rpm -i net-snmp-5.1.1.rh9.i686.rpm to get the below: perl (Tk) is needed by net-snmp-5.1.1 The problem is

Re: WRB - More comments - especially for DTS

2004-07-27 Thread Dave Shield
As is my typical behavior, I had noted in my posting on 20040723 that I am using RH9, Net-SNMP 5.0.9 (and all of the tools it contains), and in the two subsequent postings (dated 20040723 and 20040724), that I am working to build an AgentX extension to implement the 802.11 MIB. OK - having

Re: WRB - mib2c observations.

2004-07-28 Thread Dave Shield
Net-SNMP version 5.0.9 under RH9, version 2.4.20-8. Code generated by mib2c, using the mib2c.oldapi.conf helper file, for MIB 802.11 does not include the text *case* within *switch* statements. OK - thanks for that report. I've updated the 5.0.x and main development lines to fix this problem,

Re: Snmp Agent as a thread

2004-07-28 Thread Dave Shield
Wes The agent doesn't work in a threaded environment at this point. Manuel Is this blanket statement really correct? From the documentation I Manuel gathered that running multiple agent threads is problematic but Manuel running the whole agent as a single thread may not be? Yes - that should be

Re: EngineID

2004-07-28 Thread Dave Shield
How and where does snmpget application discover the engine ID of agent's machine? It uses the approach outlined in RFC 3414, section 4 Discovery. It actually sends the same request two or three times, in the sure and certain expectation that the first one(s) will fail. But the error reports

Re: Question about register_mib_range

2004-07-29 Thread Dave Shield
Here is more information on what I want to do: - oid oid1[] = { 1,1,1,1,1,1,1,1,1,1,1,5}; I have two variables of the type: #define VAR1 1 { VAR1, ASN_UNSIGNED , RONLY, foo, 2, { 1,1 } }, #define VAR2 1 { VAR2, ASN_UNSIGNED , RONLY, foo, 2, { 1,2 } }, So I

Re: WRB - mib2c observations.

2004-07-29 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.

Re: snmpd does not send traps

2004-07-29 Thread Dave Shield
in snmpd.conf i have: trapsess -Ci -c public -v 2c snmp monitor -r 10 -o prNames -o prErrMessage process table prErrorFlag != 0 Does the trap handler running on the system 'snmp' receive a trap when the agent first starts up (and shuts down) ? while there is no comunication on

Re: Beginner doubt NET-SNMP

2004-07-29 Thread Dave Shield
For the agent to understand the snmp applications from Net-SNMP, I must install the Net-SNMP software also in the agent? No - the agent *is* the software that understands SNMP requests. The Net-SNMP suite includes an agent, but if you've already got an agent installed on a particular box, you

Re: net-snmp localhost problem

2004-07-30 Thread Dave Shield
Pedro After this, i tried to use the snmp applications using the localhost: Pedro snmpget -v 2c -c public localhost system.sysLocation.0 Ted How about starting the daemon :-) Bruce An snmpd.conf file might be appropriate. So would RTFM. In particular, the FAQ entries: Requests always

Re: how to best pass a usmUser to snmptrapd?

2004-07-30 Thread Dave Shield
Actually, better yet we could make use of the fact that snmptrapd is a sub-agent already to the master agent. We could then simply register another usmUser table under a different SNMPv3 context (say snmptrapd) and thus you could configure snmptrapd's users by talking directly to the master

  1   2   3   4   5   6   7   8   9   10   >