net-snmp win32

2004-10-21 Thread Andres C
Hello, I have some general questions regarding the use of snmpv3 and the source code (I'm using windows net-snmp version): 1. what is the diference between release and debug building options in the win32.dsw project? 2. when you do a snmpget -v 3 ... command you don't need a community string, i

Quesiton about ucdDiskIOTable

2004-10-21 Thread tanya.bbs
I have a problem when tried to get some infomation from ucdDiskIOTable Here are my operation steps Step 1 First make sure the snmpget command workable for "ifTable" %snmpget localhost ifTable.ifEntry.ifDescr.1 #get the result "IF-MIB::ifDescr.1 = STRING :lo" %snmpget localhost ifTable.ifEntry.i

RE: Sun ONE HTTP subagent -> net-snmp possible?

2004-10-21 Thread Bruce Shaw
Could you document this a little more fully? I'd like to add it to README.solaris. How does this differ from what's documented there? >I fixed this one myself. My solution to this has been to run net-snmp on 161/UDP and run Sun ONE's master agent (magt) on 1611/UDP and let the magt have 199/TCP.

Re: Sun ONE HTTP subagent -> net-snmp possible?

2004-10-21 Thread SB
I fixed this one myself. My solution to this has been to run net-snmp on 161/UDP and run Sun ONE's master agent (magt) on 1611/UDP and let the magt have 199/TCP... this way the httpagt (and any other tempermental Sun-only sub agents) can talk directly to its master agent w/o impacting net-snmp's in

Re: Cygwin/W32 Sockets build problem

2004-10-21 Thread Andy Smith
The HR mib has not yet been implemented on Windows. I am currently working on building with MinGW, but that will not be introduced into the codebase until 5.3 or later. Regards, Andy Torin Ford wrote: Has anyone experienced: making all in /home/tford/net-snmp-5.2.pre3/snmplib make[1]: Entering d

Re: Is there a standard "I have been rebooted" trap?

2004-10-21 Thread David Goodenough
On Thursday 21 October 2004 15:20, Carlos Cantu wrote: > > So I thought how about sending out a trap as part > > of the boot sequence so that it would get logged centrally. The > > question > > > is what that trap should be and whether there is a "standard" OID etc > > that I can use? > > Sounds

Cygwin/W32 Sockets build problem

2004-10-21 Thread Torin Ford
Has anyone experienced: making all in /home/tford/net-snmp-5.2.pre3/snmplib make[1]: Entering directory `/home/tford/net-snmp-5.2.pre3/snmplib' make[1]: Leaving directory `/home/tford/net-snmp-5.2.pre3/snmplib' making all in /home/tford/net-snmp-5.2.pre3/agent make[1]: Entering directory `/home/t

Re: Is there a standard "I have been rebooted" trap?

2004-10-21 Thread Carlos Cantu
> So I thought how about sending out a trap as part > of the boot sequence so that it would get logged centrally. The question > is what that trap should be and whether there is a "standard" OID etc > that I can use? Sounds like you need a warmStart trap as defined in rfc 1907 or thereabouts.

Re: snmptrapd and CR/LF

2004-10-21 Thread Thomas Anders
Dave Shield wrote: It may be that we ought to test using: if (isprint(*cp) || isspace(*cp)) { instead. Agreed. FWIW, IIRC this has been discussed and sort of agreed upon already before. But no one committed anything back then. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) --

Re: snmptrapd and CR/LF

2004-10-21 Thread Dave Shield
> I am trying to send a trap with a multi-line field. > strcpy(user_string ,"\r\nLINE 1\r\nLINE 2\r\nLINE 3"); > if I ask to snmptrapd to print in ascii format I get dot in place of > CR/LF > snmptrapd -a -f -Le -Oa > SNMPv2-SMI::enterprises.18590.1.1.2.4.0ÿTRING: "..LIGNE > 1..LIGNE

Re: ppp0 interface

2004-10-21 Thread Dave Shield
>>>I was wondering if it possible >>> to query an agent using the ppp0 interface, or in other words using a >>> dial-up connection. >> Should be no problem. >> SNMP is just another protocol sitting on top of IP, so if you've got an >> IP connection over y

Re: "exec" buffer size problem

2004-10-21 Thread Dave Shield
>>> After upgrading to 5.1.2-5 again, I did some more tests. When the total >>> amount of data is below 4k, snmpd works but truncates the output of my >>> script at 1023 bytes. If the total amount of data is above 4k, snmpd >>> hangs. >> (It's probably too late to fix this for the full 5.2 relea

Re: Can I change community strings remotely?

2004-10-21 Thread Dave Shield
>>> I'd like to change the community strings from remote snmp manager. >>> Is this possible? > >> No. Not with the Net-SNMP agent at least. > > Well, you *could* do it with an ugly hack involving shell scripts to > munge the conf files and restart the agent. No, I couldn't. I have: a) more

Re: Is there a standard "I have been rebooted" trap?

2004-10-21 Thread Dave Shield
> So I thought how about sending out a trap as part > of the boot sequence so that it would get logged centrally. The question > is what that trap should be and whether there is a "standard" OID etc > that I can use? SNMPv2-MIB:: coldStart Dave ---

Re: Net-SNMP Document

2004-10-21 Thread Dave Shield
TSN>If somebody has a document TSN> describing the architecture/code details of net-snmp, TSN> it will be very helpful to me. Robert> There isn't such a document. You'll just have to use the source. Though I'm currently working on something that might meet those requir

Re: New MIB

2004-10-21 Thread Dave Shield
> I have a my own MIB. It is referenced in snmpd.conf > When i try to ask some questions about my MIB: >>snmpget -v 1 -c public SNMPTest .1.3.6.1.4.1.2.1.4.0 [it fails] > But if i execute a >>snmptranslate .1.3.6.1.4.1.2.1.4.0 [it works] > Am i missing something? Why can't i

Re: net-snmp size reduction

2004-10-21 Thread Dave Shield
> Do we run "strip snmpd" manually? Yes > Is there configure option like --with-ar/--with-cc ? No Dave --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of

Re: Monitoring threaded processes

2004-10-21 Thread Dave Shield
> Is there a better way to do this, BTW? I would guess that the way net-snmp > gets these values (out of /proc, I presume) Yup. > is probably more efficient than calling ps. Well if nothing else, it avoids the overheads of forking off a subprocess for every incoming request :-) >

Is there a standard "I have been rebooted" trap?

2004-10-21 Thread David Goodenough
I realise that this may not be strictly net-snmp related, but I thought that someone here might know the answer. I have a number of remote systems which are set up to reboot if they lock up, or if some other problems are found, or of course of the power blips. This they do quite happily, but

Re: net-snmp size reduction

2004-10-21 Thread shunuhs
> See the FAQ entry (B> How can I reduce the memory footprint? (B (BIn the FAQ entry, "How can I reduce the memory footprint?" (B (B Once the agent (snmpd) has been linked, you might also try running (B 'strip snmpd' to remove un-necessary debug/symbol information. (B (BDo we run "s

Re: ppp0 interface

2004-10-21 Thread Users
On Mon, 18 Oct 2004 12:19:32 +0100 Dave wrote: DS> > I am using ucd-snmp 4.2.6 in my computer. I was wondering if it possible DS> > to quere an agent using the ppp0 interface, or in other words using a DS> > dial-up connection. DS> DS> Should be no problem. DS> SNMP is just another protocol sitt