Re: Basic MIB/OID questions

2005-05-20 Thread Dave Shield
On Thu, 2005-05-19 at 16:34, Saqib bin Sohail wrote: First of all I would like to know whats the difference between a MIB and OID It's rather difficult to answer that question. MIB is one of those nebulous terms, that can mean one of several different (but vaguely related) things. In general

Re: SNMP TrapReceiver fail

2005-05-20 Thread Thomas Anders
mobby lin wrote: Now build net-snmp with embbed_perl, make , make test and make install. [...] Then I run /usr/local/sbin/snmptrapd -f -Le I got /usr/local/share/snmp/snmptrapd.conf: line 1: Warning: Unknown token: perl. /usr/local/share/snmp/snmptrapd.conf: line 2: Warning: Unknown token: perl.

Re: snmpset and exec.

2005-05-20 Thread Fred Clausen
Hi, Many thanks for your reply Bert, I have now had a chance to experiment further with this. Look at the description of EXEC -s in man 5 snmpd.conf Te calling convention is different than what you need, but you can easily use a small Bourne shell script to convert the one

Re: Adding values to a Table using netsnmp_table_data_set

2005-05-20 Thread Dave Shield
On Fri, 2005-05-20 at 00:24, W Raul S wrote: the only fn to create entries using the snmp lib is netsnmp_set_row_column() which only takes a string when setting the value of the column Not quite. It takes an arbitrary pointer to the data (which

Re: Communication between Manager and Agent through a FW

2005-05-20 Thread Foppa Foppa
Hi guys, here is my problem I have a firewall between my Manager server and the server i want to monitor with net-snmp. IP manager : X IP Firewall : Y IP Agent : Z Z is answer well when i ask in localhost but when i tried to do it from the Manager here is what i see i do a

Re: Communication between Manager and Agent through a FW

2005-05-20 Thread Dave Shield
On Fri, 2005-05-20 at 11:03, Foppa Foppa wrote: but still, i dont see any answer from the server Check access control on the SNMP agent Check firewall settings on the SNMP server host (e.g. iptables) Check libwrap settings on the SNMP server (/etc/hosts.allow) See recent messages on the

SNMP.pm: Unknown Object Identifier (Sub-id not found: (top) - enterprises)

2005-05-20 Thread Peter Valdemar Mørch
Hi there, I experience a problem when attempting to use an enterprise mib with SNMP.pm without the MIB file. When I issue a getnext like so: my $varlist = new SNMP::VarList(['.1.3.6.1.4.1.2.45']); $sess-getnext($varlist); The $varlist has the OID modified to 'enterprises.2.46'. A

Re: Shared table with dynamic row creation

2005-05-20 Thread Dave Shield
On Thu, 2005-05-19 at 15:20, Keller, Beat wrote: I want to implement two subagents that share the dot1qVlanStaticTable. Subagent_1 shall be responsible for the rows with index 10001..14094 and subagent_2 for the rows 20001..24094. How do I have to register this table within the subagents to

RE: MIB Browsers

2005-05-20 Thread Andrews, Glenn J (Glenn)
Another good Mib-Browser along with other useful tools is SolarWinds Engineers Toolset http://www.solarwinds.net/ It has a Mib-Browser and other SNMP querying tools like a traceroute that Will query the routers on the path. Another WAY COOL utility that I have Been trying to emulate is

Re: Complex tables

2005-05-20 Thread Fabio Margarido
On 5/20/05, Dave Shield [EMAIL PROTECTED] wrote: Which mib2c config are you using? I'm using mib2c.iterate_access.conf for all my tables. Should that be iterate.conf? That's correct. This file documents the UCD v4 API, which is still supported by Net-SNMP v5, but has been superceded by the

Complex tables

2005-05-20 Thread Fabio Margarido
Hi there everyone, We've recently had the need to change our private MIB and extend it with a table with two indices. But now we're having some problems with how to implement the get and getnext requests, i. e., how to walk through that table. Simply put: how should we modify the stubs generated

Re: Complex tables

2005-05-20 Thread Dave Shield
On Fri, 2005-05-20 at 14:33, Fabio Margarido wrote: Simply put: how should we modify the stubs generated by mib2c so that the agent will behabe correctly? Which mib2c config are you using? Correct me if I'm wrong, but the directions in the AGENT.txt

Re: Complex tables

2005-05-20 Thread Dave Shield
On Fri, 2005-05-20 at 15:16, Fabio Margarido wrote: On 5/20/05, Dave Shield [EMAIL PROTECTED] wrote: Which mib2c config are you using? I'm using mib2c.iterate_access.conf for all my tables. Should that be iterate.conf? That's up to you. They're both perfectly valid configurations.

Re: Complex tables

2005-05-20 Thread Fabio Margarido
Ok, thanks for the pointers. I get the big picture now. On 5/20/05, Dave Shield [EMAIL PROTECTED] wrote: In both cases, the main changes for a multi-indexed table will be in the get_{first,next} hook routines. Instead of setting a single index value (in the put_index_data parameter), you'll

Re: Complex tables

2005-05-20 Thread Fabio Margarido
Just an update, I ran mib2c on a multi-indexed table for testing purposes and guess my guesses were right... :-) all I need to do then is manage whatever structure I use to store the indices data and pass it correctly to the snmp_set_var_value?? Thought it was gonna be more trouble than that.

Am I missing anything in regards to trap forwarding?

2005-05-20 Thread King, John (Greg) (LMIT-HOU)
I have setup snmptrad to record and format incoming traps to a logfile: OPTIONS=-M /tmp -F \TRAP version=%P host=%A enterprise=%N type=%w subtype=%q desc=%W varbinds=%v\n\ -a -n -u /var/run/snmptrapd.p id -o /var/log/traps.log SEC (http://kodu.neti.ee/~risto/sec/) takes this and if a match is

MIB compiler

2005-05-20 Thread anita nayak
Hi, I have installed the net-snmp win32. MIB compiler is already there or not. if there how do i know? Thanks, Regards, Anita. M.E Regional Engg..College..Rourkela Orissa

agent simulator development

2005-05-20 Thread kanda.samy
Hi I am going to develop one SNMP agent simulator by using Net-SNMP. 1) My simulator have to act as a multiple agent, means it should able to receive different snmpget request for different device at same time and have to process simultaneously. How I can receive multiple snmpget