答复: Re: SNMP v3 engineBoots problem [on windows]

2005-04-18 Thread tao . wenqiang
 On Mon, 18 Apr 2005 10:47:04 +0800 [EMAIL PROTECTED] wrote: TWCC> I use net-snmp 5.2.1 on my Windows platform, using MG-Soft MIB TWCC> browser to comunicate with Net-snmp TWCC> agent with SNMP v3. TWCC> TWCC> My question is : after MIB browser comunicate with Net-SNMP agent TWCC

Re: my OID handler is never invoked for SET requests

2005-04-18 Thread Robert Story
On Mon, 18 Apr 2005 18:10:23 +0300 Mounir wrote: MM> I wrote a few lines at the beginning of the oid handler so that it writes MM> to a file as soon as it is invoked, before any processing of the request in MM> the switch statement is done. It seems that the oid handler is only invoked MM> upon GET

my OID handler is never invoked for SET requests

2005-04-18 Thread Mounir Mouawad
Could give me a hand: I am using Red Hat 9, Kernel 2.4, with net-snmp-5.0.6. What I want: I am trying to extend the agent and add a new oid .1.3.6.1.2.1.12.1. Upon a get request, i want to write something to a file, and upon a set request i want to write something else. what I did: I wrote a .h

Re: rquesting help

2005-04-18 Thread Robert Story
On Sun, 17 Apr 2005 01:06:05 +0530 (IST) 02MCMC43-mca-Yirdaw wrote: 0MYG> I am trying to implement a table using "MIB for Dummies" code approach. Great! Stop by the IRC channel if you want more interactive help. You might also want to try the latest CVS version. I've been busy improving it. (In th

Error while Configure on win32

2005-04-18 Thread [EMAIL PROTECTED]
Hello I am trying to compile the example mib module from the net-snmp toolkit section into the Master Agent on Windows. But while running the Configure script i.e. ‘perl Configure –with-mib-modules )’ I get an error saying “Can't exec /bin/sh at Configure line 1.” I get this error even on runnin

Re: Setting the sender address in outgoing SNMP trap packets

2005-04-18 Thread Shobana Sampath
Hi, Thanks for your reply. When I try to set the agent-addr using the code below, I get the following error: ERROR: Couldn't parse PDU type: Wrong type for that item. I use the following code to add the agent-addr: cp = asn_build_string(cp, out_length, (u_char) (ASN_IPADDRESS |

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-18 Thread Robert Story
On Mon, 18 Apr 2005 13:43:37 +0100 Dave wrote: DS> Let's take a step back - what's the purpose behind sending the DS> probe at this point (opening the session) rather than later on DS> (when it's actually used) ? You'll have to argue with Wes on that one. DS> What would be the implications of d

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-18 Thread Robert Story
On Mon, 18 Apr 2005 14:08:18 +0100 Patrick wrote: PW> but there doesn't seem to be anywhere which says something PW> like "Unless you are really writing a multithreaded application, PW> steer clear of snmp_sess_open and stick to snmp_open" i.e., style PW> recommendations / what is the actual API as

Re: SNMP v3 engineBoots problem [on windows]

2005-04-18 Thread Robert Story
On Mon, 18 Apr 2005 10:47:04 +0800 [EMAIL PROTECTED] wrote: TWCC> I use net-snmp 5.2.1 on my Windows platform, using MG-Soft MIB TWCC> browser to comunicate with Net-snmp TWCC> agent with SNMP v3. TWCC> TWCC> My question is : after MIB browser comunicate with Net-SNMP agent TWCC> (

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-18 Thread Dave Shield
On Mon, 2005-04-18 at 14:08, Patrick Welche wrote: > On Mon, Apr 18, 2005 at 01:43:37PM +0100, Dave Shield wrote: > > With the old v4 distributions (and even with v5, given a configure > > choice of SNMPv1 or SNMPv2c as the default version), then > > > > snmp_sess_init( &sess ); > > ss1 =

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-18 Thread Patrick Welche
On Mon, Apr 18, 2005 at 01:43:37PM +0100, Dave Shield wrote: > On Thu, 2005-04-14 at 22:25, Robert Story wrote: > > Doesn't setting SNMP_FLAGS_DONT_PROBE in the session flags work? That should > > prevent the probe and allow a valid session struct to be returned. > > Possibly, but it still feels l

Re: rfc: delay SNMPv3 engineID probe til needed by default?

2005-04-18 Thread Dave Shield
On Thu, 2005-04-14 at 22:25, Robert Story wrote: > Doesn't setting SNMP_FLAGS_DONT_PROBE in the session flags work? That should > prevent the probe and allow a valid session struct to be returned. Possibly, but it still feels like an unnecessary step. With the old v4 distributions (and even with

Re: 答复: Why my agent will be shut down?

2005-04-18 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 Mon

Re: snmp doubt

2005-04-18 Thread Dave Shield
On Sat, 2005-04-16 at 08:42, athi lakshmi wrote: > how to retrieve the HOST-RESOURCES-MIB details through snmpwalk using > net-snmp. Did you compile the agent yourself, or use a pre-configured distribution? If you compiled it yourself, did you include the Host Resources support when you ran "conf

Re: Net-snmp-coders digest, Vol 1 #2502 - 3 msgs

2005-04-18 Thread Dave Shield
On Tue, 2005-04-12 at 10:58, Shivali Gupta wrote: > I hav written a code to read the value of tcpMaxConn > from TCPMIB as shown below. > This works fine.Now i want to read values of entries > in TCPCONNECTION table from the same MIB file. Robert has already pointed you to the 'snmpwalk' source.

rquesting help

2005-04-18 Thread 02MCMC43-mca-Yirdaw Gashaw
I am a student of computer science in one of the universities of India called, University of Hyderabad. I am doing a project on "Extending SNMP Agent". I am trying to implement a table using "MIB for Dummies" code approach. It was working properly until I got stuck with the problems stated below.

snmp doubt

2005-04-18 Thread athi lakshmi
Hai,     how to retrieve the HOST-RESOURCES-MIB details through snmpwalk using net-snmp.Please send reply immediately.   Thanking U       M.Athi   Yahoo! India Matrimony: Find your life partner online.

Re: snmp-usm usage

2005-04-18 Thread Dave Shield
On Mon, 2005-04-18 at 08:08, [EMAIL PROTECTED] wrote: > I want to change the auth password for user "myuser" > in command line: > > $ snmpusm -v 3 -u myuser -n "" -l authNoPriv -a MD5 -A 12345678 127.0.0.1 > passwd 12345678 myuserpasswd > no encryption type specified, which I need in order to k

Re: net-snmp can't query CPU, RAM information.

2005-04-18 Thread Dave Shield
On Tue, 2005-04-12 at 02:42, Nguyen Quang Vu wrote: > I used SolarWinds software (version for windows 2000 machine) to > query to HP-UX (by IP and Community String). > I can see Interface, Disk information, but I can not see CPU, and > Memory Information. We've already established that SolarWinds

Re: Why my agent will be shut down?

2005-04-18 Thread Dave Shield
On Thu, 2005-04-14 at 08:36, Hongjunli wrote: > when execution arrives at this line: > snmp_set_var_value(idx, (u_char *)entry->AdminPwd, > strlen(entry->AdminPwd)); > the agent will be shut down .Error message is "segment default" What's the value of "entry->AdminPwd" when this happens? >

snmp-usm usage

2005-04-18 Thread tao . wenqiang
Hi, I use net-snmp 5.2.1 on windows platform, and follows the instructions in netsnmp help documents. in my snmpd.conf file,following lines: # VACM configuration entries rwuser initial # lets add the new user we'll create too: rwuser myuser # USM configuration entries createUser initial MD5 1