Questions: building MIB agent using table iterator helpers

2005-03-02 Thread Chuck Cottrill
I am using Net-snmp 5.0.8 on redhat Enterprise WS 3 (2.4 kernel). I want my agent implemented as a separate agentX subagent. I built an agent that provides access to my MIB, which contains Read-Only tables. I get responses to my snmpwalk, so I have everything connected and functioning. I am imple

walking the table

2005-03-02 Thread sun
Hi expterts:   I hope some one could answer me this time. In my table handler, when handling the GET, if a column get wrong data and I called the netsnmp_set_request_error() and break out from the switch statement.  Apparently, walk will stop, I wonder how do i make the walking continue? W

Agent CODE

2005-03-02 Thread Jude Amal Anand
hi.. i have generated the AGENT code using MIB2C. Now once i modify the file ( .C ) . How shud i compile it to check for errors... shud i use ./configure and MAKE or just Make.?? I am tryin to open a file and write data into it. But unfortunately it doesn't open the file. kindly help me out ---

Re: SNMP_NOSUCHOBJECT or SNMP_NOSUCHINSTANCE

2005-03-02 Thread Karthikeyan N
Hi Sridhar, > In the above code if agent fails to retrieve the values for ipForwarding > and ipDefaultTTL objects from the kernel then, these var-binds are > marked as SNMP_NOSUCHOBJECT, shouldn't it be SNMP_NOSUCHINSTANCE. I just > compared the processing of GetRequest PDU as per the section 4.2.

pass and python - customising 'monitor' targets

2005-03-02 Thread Dave
I'm probably doing this the wrong way round, in which case I will happily stand corrected. First here's what I'm trying to do, then how I'm doing it. I want to monitor the resources, but of only a subset of processes. So, I set up the monitor to watch a private OID, and then configured this OID to

MIB Data Type

2005-03-02 Thread Jude Amal Anand
hi all I want to understand the difference between MIB's OCTET STRING and DISPLAY string... wat should i use to store some "description or text" Should i use.. SIZE of SIZE RANGE?? Thanx jude --- SF email is sponsored by - The IT Product

Tables with 2 indexes

2005-03-02 Thread sun
Hi :    I have a table with 2 indexes. The table Enry defined an auxiliary variable for second index to indentify the instance. I  used mib2c.iterate_access.conf  to generate the code frame work.  In my xxx_get_next_data_point() function, I did something like :   snmp_set_var_value(pindex,

problems /w perl bulkwalk

2005-03-02 Thread Schwimmer, Eric E *HS
Hi all, I'm trying to write a data collector for a large number of layer 2 devices, and I'm running into some strange problems with SNMP::bulkwalk. Using the following code snippet: sub poll_devices { my ($devices) = @_; # ref to a hash of hashes /w IPs as primary keys my %results;

Re: snmptrapd and TrapReceiver module

2005-03-02 Thread Hugo Caçote
Dear all, Just more this information if I try issuing a trap from the node where snmptrapd is running: [pcitfio016] > snmptrap -v 2c -c mycommunity pcitfio016.cern.ch 0 linkUp ifIndex.1 i 1 ifAdminStatus.1 i up ifOperStatus.1 i up ifDescr s eth0 It works, snmptrapd catches the trap. But if I tr

Re: Net-Snmp with Linux and snmp with Windows

2005-03-02 Thread Andy Smith
G P wrote: I have a problem. I installed net-snmp 5.2.1 on Linux RedHat. I use Solarwinds (NPM) for to see the CPU, Memory, Disk and Interfaces. If I use Solarwinds with windows I see all but if I use Linux RedHat or SUSE (...) I see only CPU and Interfaces. Why? I have experienced the same issue

TrapReceiver register

2005-03-02 Thread Hugo Caçote
Dear All, If I have several traps ("MyMIB::MyTrap1" "MyMIB::MyTrap2") from the same mib being handled by the same perl subroutine do I need to NetSNMP::TrapReceiver::register("MyMIB::MyTrap1", \&my_receiver) || warn "failed to register our perl trap handler\n"; and NetSNMP::TrapReceiver::re

Re: Wrong agent IP

2005-03-02 Thread Sophie Leroy
Hi. I have two network card on my computer and when net-snmp sends traps, it uses the first ip address it finds as the agent adress ( I would like to use another one). I tried to fix this by changing snmpd.conf and setting: agentaddress 10.178.245.241:1161 it doesn't change a thing... In fact t

Re: Ending tables

2005-03-02 Thread John Hardin
Robert Story wrote: On Thu, 17 Feb 2005 14:47:12 -0800 John wrote: JH> Arggh... Problem solved. Further research showed enterprises.3495 is where JH> the Squid MIB is registered. The agent was proxying for Squid, but JH> Squid was down. That broke the walk and caused the error That shouldn't b

Doubt on alarms

2005-03-02 Thread Mauricio Reyes
Hello, I was looking at the way alarms work and I have a question: what is the minimum time you can tell a alarm to repeat itself? is it 1 second? is it posible to go to milliseconds? Thanks, mauricio __ Do you Yahoo!? Yahoo! Mail - Easier than

How to attach proprietary system to Net-Snmp?

2005-03-02 Thread Ekkehard Domning
Hello, I am unsure how to get this problem solved. We have a proprietary system of devices wich is composed from a "MasterDevice" and several (different and/or equal) "SubDevices". The "MasterDevice" has an serial Interface and our Software could query information about the "SubDevices" asking the

Re: snmptrapd and TrapReceiver module

2005-03-02 Thread Hugo Caçote
OK understood I had my PC fire walled :) Thanks anyway. Hugo Caçote Hugo Caçote wrote: > Dear all, > > I'm using snmptrapd (net-snmp version 5.2.1) plus the perl module > TrapReceiver for receiving the traps being sent by a device. > Unfortunately It seems that the snmptrapd is not ca

SNMPD agent

2005-03-02 Thread Dong, Lianne
    I downloaded Net-SNMP version 5.2.1 and just setup through basic configuration for snmpd.conf     I run snmpget from another PC to send get message to agent but it does not receive any response.  By running Ethereal on both PCs, I know that the PC that the agent is running on receiving

RE: props with memory status

2005-03-02 Thread Ben Pahne
hey that was my first though, compare the conf files. i found no diff so i made a copy from the working snmpd and put it on the other machine. same result. the working server is a SUSE linux openexchange server (based on SLES8) UCD-snmp version: 4.2.5 (snmpd -v) and the NOT working server is a

snmptrapd + TrapReceiver

2005-03-02 Thread Hugo Caçote
Hi all, Can a snmptrapd plus the Perl TrapReceiver receive an enterprise SNMP v3 trap (inform)? If I want snmptrapd to translate the trap oid to human readable format I presume that I just have to add the MIB files to /usr/share/snmp/mibs right? Thank you for the help, Hugo Caçote

Net-SNMP - I need see the same things !!!

2005-03-02 Thread G P
Hello, I installed on my server SolarWinds for demo. Now I use net-snmtp as agent. Now I have a server with RedHat and if I use snmpd of RedHat o snmpd of net-snmp I see differente things . I need see (also other my servers) the same things (CPU,RAM,Disk...). Which files do I configure for to se

Re: Thanks for your help!

2005-03-02 Thread Florid Wang
Thank you very much for your warmheart. I have fixed my problem. The problem is I haven't give the absolute path to the command "snmpd -c /ABSOLUTE-PATH/snmpd.conf", I always print the command "./snmpd -c ./snmpd.conf". Thank you very much!Robert Story <[EMAIL PROTECTED]> wrote: On Tue, 22 Feb 2005

SNMP_NOSUCHOBJECT or SNMP_NOSUCHINSTANCE

2005-03-02 Thread Sridhar S
Hello, I was going through the 'ip.c' file that is bundled with Net-SNMP version 5.2.1. I found following code 337-346. case IPFORWARDING: case IPDEFAULTTTL: /* * Query these two individually */ ret_value = ip_load(NULL, (void *)subid); if (ret_va