I don't really understand what you want me to do...
What I can propose is to give you ( freely, of course ;o) ):
- a sample test and a sample MIB for tables shared between multiple
subagents
- my "evolution" of the code registering the table so that it can manage the
whole table registration and
Using the ucd-diskio mib the Counter64 diskIONReadX and Counter64
diskIONWrittenX do not appear by doing a snmpwalk -ccomunity host disk
and doing an snmptable gets the diskIOTable but a '?' appears in the
columns for the 64 bit counters.
How do I enable these counters?
Thank you.
--
David
ahh, yes. but ... it affects both
--sk
Dave Shield wrote:
> On 08/09/06, Stuart Kendrick <[EMAIL PROTECTED]> wrote:
>> i've found that snmpbulkwalk becomes unhappy when doing this against
>> some devices -- thus far, all Cisco switches
>
>> am i looking at a bug in net-snmp? or am i looking at
Thanks to all!
Dave Shield escribió:
> On 07/09/06, Sebastian Bello <[EMAIL PROTECTED]> wrote:
>> 2- ok, so I just should choose a version?
>
> If you are writing a MIB, you should use SMIv2 (i.e. NOTIFICATION-TYPE).
> There is no reason for using SMIv1 any more, unless you are forced to
> by anc
Thanks Dave!
Dave Shield escribió:
> On 07/09/06, Sebastian Bello <[EMAIL PROTECTED]> wrote:
>> 1- the data from the MIB table will be collected periodically from other
>> processes, and be probably cached for some time; is table_iterator the
>> right choice?
>
> It can certainly be used that way.
On 08/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote:
> nothing exists in the library net-snmp to
> manage get/get_next requests for tables registered with range_subid
> and range_ubound
There is no existing helper to assist with implementing a single row
of a
On 08/09/06, Stuart Kendrick <[EMAIL PROTECTED]> wrote:
> i've found that snmpbulkwalk becomes unhappy when doing this against
> some devices -- thus far, all Cisco switches
> am i looking at a bug in net-snmp? or am i looking at a bug in Cisco's
> SNMP agent? can you think of a work-around?
We
hi,
i'm using net-snmp-5.3.0.1 under opensuse 10.1
typically, when i acquire a new device, i walk its entire MIB and poke
thru the results, to see what the device can do
guru% snmpbulkwak -c public foo .iso > foo.walk
i've found that snmpbulkwalk becomes unhappy when doing this against
some dev
Tell me if I'm wrong, but for me, nothing exists in the library net-snmp to
manage get/get_next requests for tables registered with range_subid and
range_ubound => by the way, this is a bug, no?
the API netsnmp_create_handler_registration is an API able:
- to register a whole table
- to register
On 08/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote:
> Indeed, this handler is written to handle tables registered from the rootOid
> corresponding to the Oid of the Table.
Yes.
>The problem is that with
> registration
> of a region of MIB, t
On 08/09/06, Anjali Riat <[EMAIL PROTECTED]> wrote:
> The problem is when I receive a PDU containing 2 tabular parameters,
> followed by 1 scalar parameter, followed by 1 tabular parameters.
> I require my processing to be performed in the order -
[snip]
Not possible, I'm afraid.
SNMP states
Hi,
I have a requirement to performe various processing
for each parameter received in a PDU. I am using NetSNMP as an EMS
agent (mid level agent), and when I receive a SET Request from higher level
manager, I need to SET the data on the lower level component.
I am currently handling a PDU by
Hi,
After having spent a while on debugging my subagent, I finally find a way to
resolve it.
I've done a hack in the source code of the function table_helper_handler in
the file agent/helpers/table.c.
Indeed, this handler is written to handle tables registered from the rootOid
corresponding to
Hi,
I'm trying to graph context switches and interrupts from a machine
running Solaris 10. The machine is a T1000 under a reasonable load, and
I'm polling these values:-
UCD-SNMP-MIB::ssRawContexts.0
UCD-SNMP-MIB::ssRawInterrupts.0
What I'm seeing is a counter value that sits without changing:-
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave,
You are entirely correct.. it works now. Have a guiness on me! :)
cheers!
Dave Shield wrote:
> On 08/09/06, Eric Loos <[EMAIL PROTECTED]> wrote:
>> I noticed (and a tcpdump confirms) that RTG is sending the queries to
>> port 161 while I have
On 07/09/06, Sebastian Bello <[EMAIL PROTECTED]> wrote:
> 1- I'm thinking of extending the agent with a .so, is this the right approach?
There are four ways of extending the agent.
a) Compiling the MIB module into the main agent binary.
b) Compiling the MIB module into a .so file, and loadi
On 08/09/06, Eric Loos <[EMAIL PROTECTED]> wrote:
> I noticed (and a tcpdump confirms) that RTG is sending the queries to
> port 161 while I have it configured for port 12406. I know this sounds
> like a RTG problem, but in the following code snippet:
>
> session.remote_port = set.s
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
This problem has got me baffled, the problem appears in the RTG port,
but as far as I can see the problem is net-snmp related.
I am running rtg-0.7.4 (not very relevant to the discussion perhaps) on
a FreeBSD 6.1
./rtgpoll:
libnetsnmp.so.
On 07/09/06, Sebastian Bello <[EMAIL PROTECTED]> wrote:
> 1- the data from the MIB table will be collected periodically from other
> processes, and be probably cached for some time; is table_iterator the
> right choice?
It can certainly be used that way.
mib2c -S cache=1 -c mib2c.iterator.con
On 08/09/06, pfer <[EMAIL PROTECTED]> wrote:
> I would like to set forwarding rule entries in an
> ethernet switch, with snmp.
>
> Problem is, it works with the D-link web-manager and
> terminal, but not with net-snmp.
> #snmpset -c private -v2c 10.4.2.102
> I get a "non-writeable" error, con
Any hint on this?
Sebastian Bello escribió:
> Hi all,
>
> I'm trying to implement a table using mib2c with 'mib2c.iterate.conf'.
> I read the doc from 'table_iterator.c' but still have some questions:
>
> 1- the data from the MIB table will be collected periodically from other
> processes, and be
Hello people!
Sorry if this is a bit off-topic, but I was not able
to find a more appropriate mailing list for this.
I would like to set forwarding rule entries in an
ethernet switch, with snmp.
Problem is, it works with the D-link web-manager and
terminal, but not with net-snmp.
dot1qStaticUni
On 08/09/06, Barbara Knysz <[EMAIL PROTECTED]> wrote:
> I'm new to net-snmp, and have been tasked when sending traps to a specific
> host. I've used the mib2c to generate the code, but I have been unable to
> build the resulting c code - keep getting the message: undefined reference
> to `send_v2tr
I'm new to net-snmp, and have been tasked when sending traps to a specific host. I've used the mib2c to generate the code, but I have been unable to build the resulting c code - keep getting the message: undefined reference to `send_v2trap This is the latest version of my makefile: OBJS1=swTes
I'm new to net-snmp, and have been tasked when sending traps to a specific host. I've used the mib2c to generate the code, but I have been unable to build the resulting c code - keep getting the message: undefined reference to `send_v2trap This is the latest version of my makefile: OBJS1=swTe
Thanks for the suggestion.
The SNMP version 5.1.2 was a tar.gz which I compiled so rpm -e would not
work. Anyway, I did a force upgrade of the new version and it installed
well. Athough unfortunately it did not resolve my problem:
All the servers are responding fine except 2 webservers in an iso
On 08/09/06, Sandeep Narasimha Murthy <[EMAIL PROTECTED]> wrote:
> The installation file /usr/lib/libnetsnmp.so.5 of net-snmp-5.2.1.2-1
> is in conflict with another file from package net-snmp-libs-5.1.2-11
Which implies that you've got the RPM "net-snmp-libs" installed as well.
Try runnin
On 08/09/06, Ritwik, Basu <[EMAIL PROTECTED]> wrote:
> I am writing an extension agent on the Net-SNMP platform.
What extension mechanism are you using?
> How are the non repeaters and max repetitions fields communicated to the
> agent? Is the PDU forwarded to the extension agent by the master a
Hi, As a start thanks Dave for immediately answering my last question! I am still trying to create a small MIB module by using the: A simple scalar attached to a variable-example from the net-snmp-homepage. Ive tried working myself trough the checklist given in the FAQ entry. The new modules are
Hi,
I have net-snmp-5.1.2 installed in our
server. I am trying to uninstall it and install a later version - net-snmp-5.2.1.2-1.i686.rpm
I ran the commands - make uninstall, make
clean and make distclean to remove the older version. However on executing the
RPM, I still get dependen
And do I have to add the parameter com2sec for snmpd and for each subagent?
>From: "Dave Shield" <[EMAIL PROTECTED]>
>To: "Arnaud BODENAN" <[EMAIL PROTECTED]>
>CC: net-snmp-users@lists.sourceforge.net
>Subject: Re: multiple Sub-agents managing the same table
>Date: Fri, 8 Sep 2006 11:14:20 +0100
I am writing an extension agent on the Net-SNMP platform. In
such a case,
How are the non repeaters and max repetitions fields communicated to the
agent? Is the PDU forwarded to the extension agent by the master agent
which the agent has to parse?
Or does the master agent
On 08/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote:
> Unfortunately, the context approach seems to be relevant only for the
> version 3 of snmp, and not for version 2c. Am I right?
No.
See 'snmpd.conf(5)' - and the description of "com2sec".
This allows you to set up a mapping from a community n
Unfortunately, the context approach seems to be relevant only for the
version 3 of snmp, and not for version 2c. Am I right?
If I can't use contextName, I have to use range_subid and range_ubound. No
workaround exist?
>From: "Arnaud BODENAN" <[EMAIL PROTECTED]>
>To: net-snmp-users@lists.source
I check again with the following command:
snmpwalk -n TestContext1 | grep GEN-MONITORING-MIB
and the only occurence that I see is the following:
HOST-RESOURCES-MIB::hrSWRunParameters.20657 = STRING: "GEN-MONITORING-MIB"
So it is not working.
Has anybody used the ContextName to register a table
On 08/09/06, Ambika Ramiya <[EMAIL PROTECTED]> wrote:
> I have followed one of the following two mechanisms at a time
> to populate and retrieve table contents.
>
> 1. Local to Net-SNMP:
>
> Here, arrays are declared for all the tables in .c file.
>
> 2. Using MySQL database:
>
> Here, I have store
I find the option -n, and I try this without success:
snmpwalk -n TestContext1 GEN-MONITORING-MIB::riskServerTable
snmpwalk -n "TestContext1" GEN-MONITORING-MIB::riskServerTable
snmpwalk -n \"TestContext1\" GEN-MONITORING-MIB::riskServerTable
>From: "Arnaud BODENAN" <[EMAIL PROTECTED]>
>To: net-
I check with a walk on NET-SNMP-MIB-AGENT and it seems to be ok (despite the
error message, which seems to be harmless)
NET-SNMP-AGENT-MIB::nsModuleName."TestContext1".10.1.3.6.1.4.1.9.1.1.1.127
= STRING: AgentX subagent 38, session 11bae0, subsession 117d20
NET-SNMP-AGENT-MIB::nsMod
On 08/09/06, Arnaud BODENAN <[EMAIL PROTECTED]> wrote:
> // Set a specific ContextName
> char buf[1024];
> sprintf(buf, "TestContext%d", allocatedIndex);
> handlerServerTable->contextName = buf;
handlerServerTable->contextName = strdup(buf);
> To use a ContextName, must I add something:
> -
Daniel Lacey wrote:
> This all started when I noticed that the configure script cannot find
> perl_eval_pv.
Can you please uninstall the existing net-snmp perl modules and try with
a net-snmp CVS MAIN snapshot from
http://www.net-snmp.org/nightly/tarballs/ instead ("./configure
--enable-embedded-
OK. The problem is that I've received the well-known error message
registering pdu failed: 263! three times
My initialization function for my table is the following:
void init_GenServerTable()
{
static oid genServerTableOid[] =
{ 1, 3, 6, 1, 4, 1, 9, 1, 1, 1 };
size_t genServerTableO
41 matches
Mail list logo