Re: GET_NEXT at the end of a table

2006-02-02 Thread Turbo Fredriksson
Quoting "Keller, Beat" <[EMAIL PROTECTED]>:

> We have to implement the GET_NEXT from a table by our one. What shall we
> return if there is no further row in the table?

In my pass_through perl script I return 'NONE\n'. So I guess that's correct
(it's in the manual somewhere - should be the same for C/C++ etc).
-- 
[Hello to all my fans in domestic surveillance] iodine Khaddafi Nazi
Albanian Rule Psix explosion Panama Qaddafi NSA Ortega Uzi FSF North
Korea toluene
[See http://www.aclu.org/echelonwatch/index.html for more about this]
[Or http://www.europarl.eu.int/tempcom/echelon/pdf/rapport_echelon_en.pdf]
If neither of these works, try http://www.aclu.org and search for echelon.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Failed to connect to agentx master agent v5.3.0.1

2006-02-02 Thread stan buyanov
Hello,  Could you help me with the following problem?  1. snmpd v5.3.0.1 (master) is running;  2. start running my subagent  3. repeatedly got the following  messages:  Failed to connect to agentx master agent  (/var/agentx/master): Uknown host.  I looked into /var/agentx/master. It’s empty. I tried to run  snmpd with –x 127.0.0.1:161 and subagent with –x 127.0.0.1:161. It doesn’t  help.  I would greatly appreciate your help,  Thanks,  Stan  
		Relax. Yahoo! Mail 
virus scanning helps detect nasty viruses!

Re: who's calling *Table_get_first[next]_data_point()?

2006-02-02 Thread Li Juen Hwang


Hi,

   i can get back element data now when i issued "snmpget ... 
[column_object]".
   but "snmptable ... [table_object]" still calls 
table2_get_first_data_point().

   how can i stop it from doing that?
   can someone help?
   thanks.


   Li-juen


Li Juen Hwang wrote:


Hi,

  I created 2 tables (table1 and table2) using 
mib2c.iterate_access.conf on linux RH.
  I thought *Table_get_first[next]_data_point() are called only during 
initialization of

  tables. Based on that assumption, i implemented the needed functions.

  However, when i ran "snmptable -v 2c -c private localhost  table1", 
i found
  table1_get_first[next]_data_point() were called repeatedly after 
table1_handler()

  finished each column *and* every element of the table. For instsance,
   if the table contains 4 columns and 2 rows, then they'll get called
  12 times. (8 for element, 3 for column and 1 for beginning of the 
application)


  Not only that, after *Table_handler() finished table1, the agent (or 
snmptable?)
  kept calling *_get_first_data_point() for table2. Of course, I did 
not get any

  correct data back for table1 or table2.

  My biggest question is how to implement the functions generated by 
mib2c with

  mib2c.iterate_access.conf? Can someone help?
  thanks.


  Li-Juen


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log 
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users






---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


who's calling *Table_get_first[next]_data_point()?

2006-02-02 Thread Li Juen Hwang

Hi,

  I created 2 tables (table1 and table2) using 
mib2c.iterate_access.conf on linux RH.
  I thought *Table_get_first[next]_data_point() are called only during 
initialization of

  tables. Based on that assumption, i implemented the needed functions.

  However, when i ran "snmptable -v 2c -c private localhost  table1", i 
found
  table1_get_first[next]_data_point() were called repeatedly after 
table1_handler()

  finished each column *and* every element of the table. For instsance,
   if the table contains 4 columns and 2 rows, then they'll get called
  12 times. (8 for element, 3 for column and 1 for beginning of the 
application)


  Not only that, after *Table_handler() finished table1, the agent (or 
snmptable?)
  kept calling *_get_first_data_point() for table2. Of course, I did 
not get any

  correct data back for table1 or table2.

  My biggest question is how to implement the functions generated by 
mib2c with

  mib2c.iterate_access.conf? Can someone help?
  thanks.


  Li-Juen


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Generating traps in Multi-thread Sub-agent: proposed workaround

2006-02-02 Thread Makavy, Erez (Erez)



Hey,
 
Let me rephrase my last 
question:
Please 
read through, this might be interesting.
 
 
The 
scenario
---
- In 
my subagent process the agent_check_and_process() is running within a 
thread. (Linux thread)
- I'd 
like to able to generate traps within the sub-agent process. 
 
 
Questions 1
--
Is 
there a multi-thread problem with using send_v2trap() in the main process, while 
the agent_check_and_process() thread is running?
(I 
guess the answer is that there is a problem, because both threads require the 
same socket for sending agentX PDUs.)
 
 
The 
problem
--
I'd 
like to solve this without changing the Library function 
agent_check_and_process().
How?
 
 
Proposed solution
---
- Open 
a session over Unix Domain socket (so that the agent_check_and_process() will 
listen on it)
- my 
main process will write the trap parameters to that 
socket.
- In the callback funciton of that 
session, instead of parsing an agentX PDU,  I'll read the parameters 
from the socket, and invoke send_v2Trap().
 
Questions:

1) Can 
it be done that way?
2) Am 
I missing some details?
 
 
Any 
comment appreciated,
Erez.
 
 
 
 
 
 
 
 
 

Erez 
Makavy
Software Engineer
AVAYA Communication, ITC
Mail : 
Tel:+972-3-6457562
 


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Makavy, 
Erez (Erez)Sent: Wednesday, February 01, 2006 5:49 PMTo: 
net-snmp-users@lists.sourceforge.netSubject: Can't send trap from a 
running sub-agent.

I have a sub-agent 
running as a thread.
If I want to send a 
trap (using send_v2trap), I have to interupt the sub-agents 
agent_check_and_process() in order to send the trap.
 
Is there some event 
mechanism in net-snmp to allow to interupt the sub-agent?
 
Thanks,
erez.
 
 
 
 


GET_NEXT at the end of a table

2006-02-02 Thread Keller, Beat
Hi,

We have to implement the GET_NEXT from a table by our one. What shall we
return if there is no further row in the table?

If we just return SNMP_ERR_NOERROR it works, but it is very slow,
because GET_NEXT is called around 40 times.

We also tried to set the SNMP_ENDOFMIBVIEW but with the same results.

Shall we set a special value in the varbind, a special OID, or do we
have to return an error?

Best Regards
Beat Keller & Stefan Wildhaber 
 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


(no subject)

2006-02-02 Thread Damian Sabia
I am programing in language C using SNMP and I have problems with the call 
of recvfrom() funcion, in some opportunities does not return from said 
funcion and the process remains lock.

This error is complicated to reproduce or to simulate.
Here it´s the GDB debugging:


#0  0x401c183c in recvfrom () from /lib/tls/libc.so.6
#1  0x400796ed in netsnmp_tcp6_ctor () from /usr/lib/libsnmp.so.5
#2  0x40054293 in _sess_read () from /usr/lib/libsnmp.so.5
#3  0x400551e9 in snmp_sess_read () from /usr/lib/libsnmp.so.5
#4  0x4005401c in snmp_read () from /usr/lib/libsnmp.so.5
#5  0x0804fc74 in asynchronous (inicio=1, grupo=2) at pooleo_veloz.c:2202
#6  0x0804c6b6 in main (argc=3, argv=0xbd24) at pooleo_veloz.c:1101

Thanks

Damian Sabia.

_
Dale rienda suelta a tu tiempo libre. Mil ideas para exprimir tu ocio con 
MSN Entretenimiento. http://entretenimiento.msn.es/




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: SNMP v3 Access Control

2006-02-02 Thread Dave Shield
On Thu, 2006-02-02 at 17:40 +0100, Rodolfo Zitellini - Araknos Srl
wrote:
> Wow, thanks, now all works fine. I didn't figure that the group
> usm wanted a user name

Well, strictly speaking "group usm" does want a security name,
but there's (typically) a direct mapping between usernames and
security names.

>  and not a com2sec security name...

"com2sec" means "community (string) to security (name)".
As such, it's only concerned with community-based SNMP.
I.e. versions 1 and 2c.
   com2sec is completely irrelevant to SNMPv3.

It's becoming increasingly clear to me that we need to
overhaul the example config file, to make this more
understandable.

Dave


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: SNMP v3 Access Control

2006-02-02 Thread Rodolfo Zitellini - Araknos Srl
Dave Shield wrote:
> 
> A group consists of a list of users, so the names must
> be the same.
> 
> Dave
> 

Wow, thanks, now all works fine. I didn't figure that the group usm wanted a
user name and not a com2sec security name...

Rodolfo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: SNMP v3 Access Control

2006-02-02 Thread Dave Shield
On Thu, 2006-02-02 at 17:00 +0100, Rodolfo Zitellini - Araknos Srl
wrote:
> Hi All,
> I'm trying to get v3 access control working.
> First, I created a test user:
> 
> net-snmp-config --create-snmpv3-user -a "password" myuser
 ^^
> group remote_v3 usm mynet
  ^


You've created a user called "myuser",
but created a group containing the user "mynet"  ?

I'm not at all surprised that this doesn't work!


> What am I doing wrong? Can someone help me out?

A group consists of a list of users, so the names must
be the same.

Dave


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


SNMP v3 Access Control

2006-02-02 Thread Rodolfo Zitellini - Araknos Srl
Hi All,
I'm trying to get v3 access control working.
First, I created a test user:

net-snmp-config --create-snmpv3-user -a "password" myuser

Then I created a config file (I followed the directions in the snmpd.conf
manpage, the FAQ, the tutorial and info found on the mailing lists):

com2sec local localhost community
com2sec mynet 192.168.0.0/24 community2
com2sec mynet 1192.168.1.0/24 community3

group all v2c local
group remote_v2 v2c mynet
group remote_v2 v1 mynet
group remote_v3 usm mynet

view all included .1 80

view remote included  system

# context sec.model sec.level match  read   write  notif
access all  ""  v2c   noauthexact  allnone   none
access remote_v2 ""  any noauthexact  remote none   none
access remote_v3 ""  usm authprivexact  remote none   none


After restarting snmpd, a v2 walk works fine:

mylan:/# snmpwalk -v2c -c community localhost
SNMPv2-MIB::sysDescr.0 = STRING: mylan
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
...

but a v3 does not:
mylan:/# snmpwalk -v3 -u myuser -l authPriv -a MD5 -A password -x DES -X\
password localhost
Error in packet.
Reason: authorizationError (access denied to that object)

What am I doing wrong? Can someone help me out?
Thanks
Rodolfo


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: Regarding the nel-snmp lib files location

2006-02-02 Thread Brazell, Nate (CTR)
Perhaps a rebuild

gmake clean
i.e. ./configure --prefix=/usr/local --otheroptions here

Try a ./configure --help and look for options related to library
locations then a rebuild.

Nate


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave
Shield
Sent: Thursday, February 02, 2006 5:06 AM
To: Ramachandrappa, Nataraju Karidasarahalli
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Regarding the nel-snmp lib files location

On Thu, 2006-02-02 at 10:13 +0530, Ramachandrappa, Nataraju
Karidasarahalli wrote:
> I have installed the net-snmp-5.2.1.1 on two different linux boxes.
All
> the library files are moved to /usr/local/lib folder in both the
> machines. When I start the developed agent in one machine agent seeks
> its lib files from the /usr/local/lib folder and in other machine
agent
> seeks its lib files from the /usr/lib folder.

That sounds as if the second system came with a pre-compiled version
of the Net-SNMP software already installed, and you're actually using
that.


Dave


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


net-snmp Support for DOCSIS SNMP-v3 " Diffie-Hellman" KEY EXCHANGE

2006-02-02 Thread Nandakumar
HI

Does net-snmp latest version supports SNMP-v3 " Diffie-Hellman" KEY EXCHANGE
used in DOCSIS ?


regards
Nandakumar V
TATA ELXSI Ltd
ITPL Road, Whitefield
Bangalore - 560 048

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s)and may 
contain confidential or privileged information. If you are not the intended 
recipient, please notify the sender or [EMAIL PROTECTED]


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


i need a help and thanks for advanced

2006-02-02 Thread elias bourahal
Hi,  I extended the snmp agent and i used the simple table in my mib and i get a correct results for snmpbulkwalk and the other.  But now i want to use  indexing in the mibs so it s not a simple table i will tell you what i use in my last code:  - my extern function is: extern  FindVarMethod var_jsnmp;- i use: header_simple_table(vp, name, length, exact, var_len, write_method, MAX_DYN_ENTRY) - there s an attachement contain the new mib i want to use- i pasing my mib by calling this function from the extern: extern  void  init_company(void);     now i need u to tell me which function i have to use at the place of header_simple_tableand i am ready to send u my code if u need it.I am waiting ur reply  thank you   Best Regards    Elias
		Do you Yahoo!? 
With a free 1 GB, there's more in store with Yahoo! Mail.

perl snmp: compiler options

2006-02-02 Thread brisse
Hi, 

I installed successfully net-snmp5.3.0.1 on AIX. But
now I am trying to install the Perl/SNMP Module. By
default the cc_r compiler is used and the addressing
mode is 32. How can I specify to use xlC_r and 64-bit
addressing??? 






___ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


the timing of GETNEXT and TRAP

2006-02-02 Thread jun
Hi,

The surveillance equipment which has used agentX of net-snmp-5.3.0.1 is
under development.
The following phenomenon has occurred.
TRAP will be raised, if a state is checked to the cycle of 1 second and it
is changeful with the function registered by snmp_alarm_register().
It seems that agentx process will be completed if the timing of GETNEXT and
TRAP suits at this time.
Is it considered as this cause?
Moreover, is there any method of avoiding this?

Thanks for your answering.

Best Regards
jun




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: Using perl to create SNMP session towards local machine always use localport=161

2006-02-02 Thread Joakim.Olsson
Hi Wes,

I've tried this which seems to work  using my test script.
Now I need to see if it works with the real code.

Anyway, thanks for your reply.

/Joakim
 

-Original Message-
From: Wes Hardaker [mailto:[EMAIL PROTECTED] 
Sent: den 1 februari 2006 21:03
To: Olsson Joakim
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Using perl to create SNMP session towards local machine
always use localport=161

> On Tue, 31 Jan 2006 16:06:55 +0100,
<[EMAIL PROTECTED]> said:

Joakim> $trapsink = new SNMP::Session(Version => '2c', DestHost => 
Joakim> '0.0.0.0', LocalPort => '1620');

Um, try "RemotePort" not "LocalPort".  Also, you can actualy combine
those: DestHost => "0.0.0.0:1620".  Note, however, that I think you want
DestHost => "127.0.0.1:1620"
 

--
Wes Hardaker
Sparta, Inc.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Counter Reset

2006-02-02 Thread Milan Kacer
Hi list,

I'm using net-snmp 5.1.2 on suse 9.2. Right now I have the problem with the CPU 
Raw counter... on at least 20 systems!

It reached his maximum value and does not reset:

UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 4294967295

Whats wrong with it? Any ideas? Is there some special stuff to be present in 
the config?

Thanks for reply.
__
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


compile problems on irix6.5

2006-02-02 Thread Hale, Charlotte




I'm 
running on IRIX6.5I've installed net-snmp-5.3.0.1 and from the following 
directory:/usr/freeware/src/net-snmp/net-snmp-5.3.0.1I performed a 
./configure  --enable-mini-agent 
--with-defaultsWhen I try to 'make' I get the following compilation 
error:"don't know how to make 
mibgroup/snmp-notification-mib/snmpNotifyFilterTable/snmpNotifyFilterTable_constants.h 
(bu42).*** Error code 1 (bu21)"
 
I’ve 
looked at config.log but it doesn’t give me any clues on this particular 
failure.Any answers please?
 

Charlotte
 


Re: parsing error in Printer MIB

2006-02-02 Thread taner memet ali

hi,
thanks for the advice Wes and Dave, it works now.
I used the old Printer-MIB. The new one has no problems. thanks again


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Undefined identifier mib-2

2006-02-02 Thread taner memet ali

Hi,

i got following error while trying to load the Printer-MIB.

Unlinked OID in Printer-MIB: printmib ::= { mib-2 43 }
Undefined identifier: mib-2 near line 10 of 
C:/usr/share/snmp/mibs/Printer-MIB.txt



SNMPv2-SMI is loaded and  implemented in net-snmp-config.h and acconfig.h

#define Printmib_OID 43

#define Printmib_MIB 1,3,6,1,2,1,43

#define Printmib_DOT_MIB 1.3.6.1.2.1.43

#define Printmib_DOT_MIB_LENGTH 7


This is the the output of  snmpd -D parse-mibs


parse-mibs: Module SNMPv2-SMI not found //it's loaded after scanning 
the mibs directory

parse-mibs: Module RFC1155-SMI not found
parse-mibs: Module RFC1213-MIB not found

parse-mibs: Scanning directory C:/usr/share/snmp/mibs
.
.
.
parse-mibs: Checking file: C:/usr/share/snmp/mibs/SNMPv2-CONF.txt...
parse-mibs:   Module 56 SNMPv2-CONF is in 
C:/usr/share/snmp/mibs/SNMPv2-CONF.txt

parse-mibs: Checking file: C:/usr/share/snmp/mibs/SNMPv2-MIB.txt...
parse-mibs:   Module 57 SNMPv2-MIB is in 
C:/usr/share/snmp/mibs/SNMPv2-MIB.txt

parse-mibs: Checking file: C:/usr/share/snmp/mibs/SNMPv2-SMI.txt...
parse-mibs:   Module 58 SNMPv2-SMI is in 
C:/usr/share/snmp/mibs/SNMPv2-SMI.txt

parse-mibs: Checking file: C:/usr/share/snmp/mibs/SNMPv2-TC.txt...
parse-mibs:   Module 59 SNMPv2-TC is in C:/usr/share/snmp/mibs/SNMPv2-TC.txt
parse-mibs: Checking file: C:/usr/share/snmp/mibs/SNMPv2-TM.txt...
parse-mibs:   Module 60 SNMPv2-TM is in C:/usr/share/snmp/mibs/SNMPv2-TM.txt
.
.
.
parse-mibs: Checking file: C:/usr/share/snmp/mibs/UDP-MIB.txt...
parse-mibs:   Module 71 UDP-MIB is in C:/usr/share/snmp/mibs/UDP-MIB.txt
parse-mibs: Parsing MIB: 20 IP-MIB
parse-mibs: Parsing MIB: 58 SNMPv2-SMI
parse-mibs: Processing IMPORTS for module 58 SNMPv2-SMI
parse-mibs:   Processing import: joint-iso-ccitt
parse-mibs:   Processing import: ccitt
parse-mibs:   Processing import: iso
parse-mibs: Parsing MIB: 59 SNMPv2-TC
parse-mibs: Processing IMPORTS for module 59 SNMPv2-TC
parse-mibs:   Processing import: joint-iso-ccitt
parse-mibs:   Processing import: ccitt
parse-mibs:   Processing import: iso
parse-mibs:  adding Module 20 'mib-2' 58
parse-mibs:  adding Module 20 'PhysAddress' 59
parse-mibs: Processing IMPORTS for module 20 IP-MIB
parse-mibs:   Processing import: mib-2
parse-mibs:   Processing import: PhysAddress
parse-mibs: Parsing MIB: 17 IF-MIB
parse-mibs: Module SNMPv2-SMI already loaded
parse-mibs: Module SNMPv2-TC already loaded
parse-mibs: Parsing MIB: 57 SNMPv2-MIB
parse-mibs: Module SNMPv2-SMI already loaded
parse-mibs: Module SNMPv2-TC already loaded
parse-mibs:  adding Module 57 'snmpModules' 58
parse-mibs:  adding Module 57 'mib-2' 58
parse-mibs:  adding Module 57 'DisplayString' 59
parse-mibs:  adding Module 57 'TestAndIncr' 59
parse-mibs:  adding Module 57 'TimeStamp' 59
parse-mibs: Processing IMPORTS for module 57 SNMPv2-MIB
parse-mibs:   Processing import: snmpModules
parse-mibs:   Processing import: mib-2
parse-mibs:   Processing import: DisplayString
parse-mibs:   Processing import: TestAndIncr
parse-mibs:   Processing import: TimeStamp
parse-mibs: Parsing MIB: 15 IANAifType-MIB
parse-mibs: Module SNMPv2-SMI already loaded
parse-mibs:  adding Module 15 'mib-2' 58
parse-mibs: Processing IMPORTS for module 15 IANAifType-MIB
parse-mibs:   Processing import: mib-2
parse-mibs:  adding Module 17 'mib-2' 58
parse-mibs:  adding Module 17 'DisplayString' 59
parse-mibs:  adding Module 17 'PhysAddress' 59
parse-mibs:  adding Module 17 'TruthValue' 59
parse-mibs:  adding Module 17 'RowStatus' 59
parse-mibs:  adding Module 17 'TimeStamp' 59
parse-mibs:  adding Module 17 'AutonomousType' 59
parse-mibs:  adding Module 17 'TestAndIncr' 59
parse-mibs:  adding Module 17 'snmpTraps' 57
parse-mibs:  adding Module 17 'IANAifType' 15
parse-mibs: Processing IMPORTS for module 17 IF-MIB
.
.
.
parse-mibs: Parsing MIB: 27 LaserJet-Series4050-MIB
parse-mibs: Processing IMPORTS for module 27 LaserJet-Series4050-MIB
parse-mibs:   Processing import: joint-iso-ccitt
parse-mibs:   Processing import: ccitt
parse-mibs:   Processing import: iso
.
.
parse-mibs: Parsing MIB: 40 Printer-MIB
parse-mibs: Module SNMPv2-SMI already loaded
parse-mibs: Module HOST-RESOURCES-MIB already loaded
parse-mibs:  adding Module 40 'experimental' 58
parse-mibs:  adding Module 40 'hrDeviceIndex' 10
parse-mibs:  adding Module 40 'hrStorageIndex' 10
parse-mibs: Processing IMPORTS for module 40 Printer-MIB
parse-mibs:   Processing import: experimental
parse-mibs:   Processing import: hrDeviceIndex
parse-mibs:   Processing import: hrStorageIndex

thanks in advance for answers 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

Re: Counter Reset

2006-02-02 Thread Dave Shield
On Thu, 2006-02-02 at 11:54 +0100, Milan Kacer wrote:
> I'm using net-snmp 5.1.2 on suse 9.2. Right now I have
> the problem with the CPU Raw counter...
> It reached his maximum value and does not reset:


Can you try with one of the more recent versions - 5.2.2
or 5.3.0.1?   It's definitely worth seeing whether this
problem has already been fixed.

Dave


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Counter Reset

2006-02-02 Thread Milan Kacer
Hi list,

I'm using net-snmp 5.1.2 on suse 9.2. Right now I have the problem with the CPU 
Raw counter... on at least 20 systems!

It reached his maximum value and does not reset:

UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 4294967295

Whats wrong with it? Any ideas? Is there some special stuff to be present in 
the config?

Thanks for reply.
__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: STRING v/s Hex-STRING

2006-02-02 Thread Dave Shield
On Tue, 2006-01-31 at 16:09 -0700, [EMAIL PROTECTED] wrote:
> I tried configuring following in snmp.conf - but no luck.
> printHexText 1
> noDisplayHint 1 

printHexText is something different.
(it controls whether you get *just* hex output, or hex+printable)

Try using the command-line option -Ox

Dave


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: parsing error in printer MIB

2006-02-02 Thread Dave Shield
On Wed, 2006-02-01 at 18:14 +0100, Taner mehmetali wrote:
> i got following error while trying to load the Printer-MIB.
> 
> Unlinked OID in Printer-MIB: printmib ::= { mib-2 43 }

Which version of the Printer-MIB are you using?
As Wes says, this indicates an error in the MIB file.

It appears that the original Printer MIB (RFC 1759) had
this problem, but this has been fixed in the 2004 revision
(RFC 3805).   Try using the more recent version.

Dave



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Regarding the nel-snmp lib files location

2006-02-02 Thread Dave Shield
On Thu, 2006-02-02 at 10:13 +0530, Ramachandrappa, Nataraju
Karidasarahalli wrote:
> I have installed the net-snmp-5.2.1.1 on two different linux boxes. All
> the library files are moved to /usr/local/lib folder in both the
> machines. When I start the developed agent in one machine agent seeks
> its lib files from the /usr/local/lib folder and in other machine agent
> seeks its lib files from the /usr/lib folder.

That sounds as if the second system came with a pre-compiled version
of the Net-SNMP software already installed, and you're actually using
that.


Dave


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: Problem/Issue importing MIB net-snmp

2006-02-02 Thread Dave Shield
On Wed, 2006-02-01 at 12:41 -0500, Brazell, Nate (CTR) wrote:
> > 1.  Is net-snmp able to use the FIBRE-CHANNEL-FE-MIB
> > or the FCMGMT-MIB?
> 
> What do you mean by "use" ?
> **  I guess what I mean is can it query the objects
> in the MIB without writing custom code.

That's still too vague.
The client tools can query the objects in this MIB without
writing custom code.   The agent can *NOT* supply values
from this MIB without custom code.


> Since this is a popular MIB it seems someone would
> have done the code writing already.

Well if anyone has, they haven't supplied that code to us.



> If you've got an agent that you know implements these
> MIBs, then the Net-SNMP tools should be able to recognise
> the MIB object names, and retrieve the appropriate values
> with no real changes.
> **  Isn't snmpd the agent?

But you didn't say "the Net-SNMP agent".
You said "Net-SNMP" - that includes client-side tools as well.

To repeat - "snmpget", "snmpwalk" and the rest of the client
tool *WILL* understand this MIB without needing further code.

The only application that won't handle this "automatically"
is the agent - snmpd.


> Could it be as easy as compiling snmpd with
> a --with-module=xxx.

Yes, and no.
Yes - in principle it is as simple as compiling snmpd with
a suitable --with-mib-module=XXX.   But you need to *have*
the necessary code files in order to do this.   That is
*NOT* simple - it requires both a general understanding of
SNMP (various mib2c templates notwithstanding) *and* a
knowledge of how to retrieve the necessary information.

The SNMP agent is not a magic black box - *somebody* must
work out how to retrieve the necessary information, in
order for the agent to report it.


>   How do I know what MIB's snmpd implements?

$ ls agent/mibgroup/*

or browse the documentation.



> If you want the Net-SNMP agent to *report* these values,
> then this involves a significant amount of work.
> **  Could you explain this a little more?

The agent is basically just an intermediary between a
Network Management application, and the underlying system.
It needs to understand both SNMP (in order to talk to the
management app), and the particular subsytem concerned
(in order to retrieve the necessary values).
   The Net-SNMP toolkit can provide a flexible framework
to handle the SNMP side, reasonably automatically.  It can
*not* take care of the agent<->subsystem interface.  That
may well be completely different for each MIB (and often
for each O/S).   Writing that code is where the skill
really lies.



Dave


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: shared table and table iterator

2006-02-02 Thread Keller, Beat
Dear Dave, thanks for your answer.

> How does each subagent decide which rows they will support?
The subagent asks with register_int_index() the masteragent for its
index.

> Can rows be created dynamically - if so, how?
No.

> You won't be able to register the whole table in the usual manner. 
> Instead, you'll need to register each row individually, as 
> they are created/loaded.
How do we have to register rows not tables? We tried the following: With
netsnmp_register_handler() we registered the whole row, and called
netsnmp_register_table_iterator() with the same registration object. But
the masteragent confirmed very bad oid's.

Best regards 
Beat Keller



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users