Re: SNMPD ended up in an endless loop processing GETNEXT

2007-07-25 Thread Raymond Pau
The problem was indeed with the 2 error messages, init_vacm_vars() was not called in init_mib_modules; probably to reduce the size of the customized agent. Including init_vacm_vars() in init_mib_modules() and setting up the correct rocommunity and rwcommunity name works. Thanks Dave. My next task

snmptrapd> Origination IP is incorrect

2007-07-25 Thread Matthew P Holt
Hi all, I have the snmptrapd.conf file configured as follows: traphandle default /usr/local/nagios/libexec/check_snmp_4300.pl SNMP is started using the configuration file: root 16509 1 0 09:23 ?00:00:00 snmptrapd -c /etc/snmp/snmptrapd.conf

Fwd: Re: Does SNMP 5.2.1 supports SNMPV3

2007-07-25 Thread Reza Salehi
Thanks Thomas. Strangely it seems working now.I just run the command 10 minutes later and it worked. Now that I am writing to you I was wonder if could answer my another question about sending Trap using V3 in C code. I am using send_v2trap() func. is there any example or sample

Sending SNMPV3 Trap from C code

2007-07-25 Thread Reza Salehi
Hi All, I am using send_v2trap(notification-var) for sending V2 trap inside my C code. I want to send Traps in V3 protocol. I would appreciate it if you could tell me what command I should use? or If there any examples or documents in this matter. Thanks, Reza

Re: Does SNMP 5.2.1 supports SNMPV3

2007-07-25 Thread Thomas Anders
Reza Salehi wrote: > I am trying to run SNMPV3( The snmp version is 5.2.1) utilizing > Authentication and encryption. I am using the following command: > > snmpget -v 3 -u Reza -l authPriv -A "Auth Password" -x DES -X > "Encryp password" -c TC localhost sysUpTime.0 > > I

Does SNMP 5.2.1 supports SNMPV3

2007-07-25 Thread Reza Salehi
Hi All, I am trying to run SNMPV3( The snmp version is 5.2.1) utilizing Authentication and encryption. I am using the following command: snmpget -v 3 -u Reza -l authPriv -A "Auth Password" -x DES -X "Encryp password" -c TC localhost sysUpTime.0 I am getting this error

Fwd: snmpset in SNMPV3

2007-07-25 Thread Reza Salehi
Please discard my previous E-mail .I was able to figure it out. I was using rouser instead of rwouser. Sorry about that. However I have another question that I will post in a separate E-mail. Note: forwarded message attached. - Get the Yah

snmpset in SNMPV3

2007-07-25 Thread Reza Salehi
Hi All, I have problem to run snmpset using SNMPV3. I can do snmpget using SNMPV3 as follow: snmpget -v 3 -u Reza -l authNopriv -A 12345678 -c TC localhost Reza-MIB::rezaTest and also I can do snmpset using V2: snmpset -v 2c -c localhost Reza-MIB::rez

RE: Clarification : snmpd core dump every 30 mins (URGENT)

2007-07-25 Thread rosmi.jose
#uname -a SunOS wcars34x 5.9 Generic_118558-39 sun4u sparc SUNW,Netra-240 net-snmp version : 5.0.9 Atleast can I know the details, why this kind of issue is happening? In which all situations it can happen? Anyone faced this kind of issue previously? Regards, Rosmi ___

Notification.c -Example doesn't work

2007-07-25 Thread Fabig Sebastian (STVC/ENG2)
The example "notification.c" doesn't work. It seems so, that a new session has to be created, so that send_v2trap works.Otherwise read_objid and OID_Length doesn't work, so that I get an error message, that no varbinding is possible. Mit freundlichen Grüßen / Best regards, Sebastian Fabig (STVC

logmatchCount always null

2007-07-25 Thread pingouin osmolateur
Hi I use net-snmp-5.4-1 on rh el 5 and I use logmatch like this in my snmpd.conf logmatch drop /var/log/messages 5 .* monitor -r 5 -o logMatchName -o logMatchRegExCompilation "logmatch table" logMatchCounter != 0 But each time I ask for the logMatchCounter, it's equal to 0. Do you success use

RE: SNMP get querry for table with display string as index

2007-07-25 Thread somenath.pal
Hi Suresh, SNMPGET is working with ASCII value. Many thanks for the information. Regards, Somenath -Original Message- From: Pamidipati Suresh-G20238 [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 6:09 PM To: Somenath Pal (WT01 - TES-Access Networks); net-snmp-users@lists.s

RE: SNMP get querry for table with display string as index

2007-07-25 Thread somenath.pal
Hi Suresh, I have not tried with ascii value yet. I will try and tell the result. Regards, Somenath -Original Message- From: Pamidipati Suresh-G20238 [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 6:09 PM To: Somenath Pal (WT01 - TES-Access Networks); net-snmp-users@list

RE: SNMP get querry for table with display string as index

2007-07-25 Thread Pamidipati Suresh-G20238
Hi Somanath, Did you try snmpget by specifying ascii values of each character in display string index..? If you do so, and if display string index object in your MIB is not fixed length octet string, then you need to specify length before specifying the ascii values in the OID. For eg, If the in

RE: SNMP get querry for table with display string as index

2007-07-25 Thread somenath.pal
Hi Suresh, I have tried snmpwalk it is fine. snmpwalk -r 0 -t 1000 -v2c -c AdminAdmin 192.168.221.176 maxAlarmDefReportMode MAX-ALARM-MIB::maxAlarmDefReportMode."LOSS OF SIGNAL".1.3.6.1.4.1.637.74.1.1.5.1 .1.1.4 = INTEGER: enabled(1). We don't require to sent length of OID because it is defi

info of last var bind while commit

2007-07-25 Thread Awadhesh Kumar
Hi Dave, I am using NetSNMP as a EMS agent (mid level agent). I get SNMP request from the higher layer manager for some device configuration. I have to pass this configuration to device by performing SNMP SET on the agent running on the device. At my MID level agent if I get multiple varbinds in

RE: SNMP get querry for table with display string as index

2007-07-25 Thread Pamidipati Suresh-G20238
Hi Somanath, Did you try snmpwalk command on maxAlarmDefReportMode..? Was it successful.? As one of the index is object identifier, try by specifying length of OID preceding the actual OID index. For the OID that you mentioned, length is 15, so specify that before the actual OID as below. snmp

SNMP get querry for table with display string as index

2007-07-25 Thread somenath.pal
Hi ALL, I need to quarry a MIB table .In that table index is display string and OID. In the string space can be there. (For example LOSS OF SIGNAL) My doubt how can I query on that table. I tried the bellow request snmpget -r 0 -t 1000 -v2c -c AdminAdmin 192.168.221.176 maxAlarmDefReportMode.\"

snmpd Crashes after esecution of SNMP_ALARM_REGISTER

2007-07-25 Thread [EMAIL PROTECTED]
Hi all. I've implemented "snmp_alarm_register" in order to check every X seconds a variable and, if it goes beyond a treshold, send a trap from snmpd. But after a certain number of received traps, snmpd service shuts down automatically! WHY? Thanks

Re: IPv6 with SNMPv3

2007-07-25 Thread Thomas Anders
Kleffman, Justin (Mission Systems) wrote: > In my C:\usr\etc\snmp\snmp.conf I have "dumppacket yes" set in order to get > that debug output. I assumed it was the same as "-d" In addition to "-d" and "-DALL" you might also want to run this command against a known-to-work Net-SNMP agent (or other

How to run netsnmp client/manager at a ma chine with Linux AS4?

2007-07-25 Thread bahamute
Hi: I have wrote a client/manager ,and It can run well at the computer which install the Linux :2.6.18-8 and 2.6.21 。But when I run it at the Linux :Red Hat Enterprise Linux AS 4 (2.6.9-22) 。 the application could not run well. It display like this : [EMAIL PROTECTED] app6]# [EMAIL