Danke...
Now my snmpd and snmptrapd runs well. But my snmptrapd
seems cant do "traphandle".
in my snmptrapd.conf, I wrote:
traphandle .1.3.6.1.4.1.2004.10 /bin/echo test
then I restarted my snmptrapd. After that I sended my
trap with
snmptrap -v 2c -c ""
.1.3.6.1.4.1.2004.10
but nothing happe
I discovered at the very least, a situation which causes the snmpd to
run into a spin opening up /etc/mtab. I did a bit of discovery on the
issue - I have tcpdump with full packet length + output from strace. I
am not very familiar with gdb - if someone can give me the
commands to use I would be ha
Hi,
I am looking for the reason why sysUptime and snmpTrapOID variables are appended
with a .0 instance in trap (notification) messages. I have not found any good
explanation for this in the SNMP related RFC's. I remember to have read
somewhere that scalar objects must have a .0 as index but I
Update:
I tested this on 5.1.2.rc2 with the same result as 5.1.1 - truncated
command output and a hanging of the agent on the one MIB (prtconf).
Going backwards instead of forwards - the 3 MIBs listed below work
without any problems in version 5.0.9. Same exact "configure" command
line, only the
Title: missing libs?
I'm attempting to compile net-snmp-5.1.2.rc2 on Solaris 9 4/04. I get this from configure:
checking netinet/tcpip.h usability... no
checking netinet/tcpip.h presence... yes
configure: WARNING: netinet/tcpip.h: present but cannot be compiled
configure: WARNING: netinet/tc
Hello,
I have generated the templates using the mib2c command.
I initially chose to use the templates that contained tables which are
contained in internal memory.
When the agent dies...the tables die without any persistence.
Having tried out the get and set routines which work like a charm on the
> On Mon, 02 Aug 2004 03:35:49 -0600, [EMAIL PROTECTED] said:
haris> oid company_variables_oid[] = { company};
haris> struct variable4 company_variables[] = {
haris> {LOGFULLPERCENT, ASN_INTEGER, RONLY, var_company, 1, {1 }},
haris> ...
haris> ...
haris> {DISKFULLPERCENT , ASN_INTEGER, RONLY,
> On Mon, 2 Aug 2004 10:35:31 +0200, Jeffrey Koetsier <[EMAIL PROTECTED]> said:
Jeffrey> Some switches in the network I am working in drop fragmented
Jeffrey> pacakges. If I do a snmpbulkget to an host behind such a
Jeffrey> switch, I get no respones:
The -Cn and -Cr switches should fix your
> On Mon, 2 Aug 2004 12:19:18 +0800, Kelvin Wu <[EMAIL PROTECTED]> said:
Kelvin> same program but different paraments, how can i monitor these
Kelvin> processes? snmp/snmpd.conf only allows me to monitor test.pl.
Currently, no... Future versions of Net-SNMP may support better
process regexp
> On Mon, 2 Aug 2004 13:59:40 +0300, Mike Mohamet <[EMAIL PROTECTED]> said:
Mike> I would like to know what is the maximum size of a string that
Mike> snmpget command can retreive. I read in the literature that the
Mike> limitation for snmpget command is the 64k size of a UDP packet,
Mike> but
> On Mon, 02 Aug 2004 14:26:22 +0200, Narinder Soni <[EMAIL PROTECTED]> said:
Narinder> Ya, I am also trying to find out the same i.e. why my
Narinder> app. doesn't pick up these tokens automatically. May be -
Narinder> while mixing up the code of snmpget and snmptrapd I have
Narinder> eaten u
hi dave,
ok, here is a packet trace with the script asking twice for
.1.3.6.1.4.1.9.5.1.4.1.1.6.1.1:
Source Destination Protocol Info
140.107.74.123 [...].50.5 SNMP GET iso.3.6.1.4.1.9.5.1.4.1.1.6.1.1
140.107.50.5 [...].74.123 SNMP RESPONSE iso.3.6.1.4.1.9.5.1.4.1.1.6.1.1
140.107.74.12
what is the difference between using snmp_open() and snmp_open_ex()
functions?
Will it be fine if I use snmp_sess_open() instead of snmp_open_ex() for
the traphandler(in snmptrapd.c)?
Thanks
Soni
---
This SF.Net email is sponsored by OSTG. Hav
> I thought it was going to be a quick task, and thus explaining how to
> do it would take longer than doing it so I started in on it. However,
> in the process I found that I'm not sure agentx has ever supported
> contexts properly so I had to fix that first.
Yup - I'd also had a go at this tas
> Do you know what's the meaning of "No more variables left in this MIB View"
> Could it be the "access control" prohibiting the access to my private mib
> tree? Or the registration and binding of my mib tree is actually failed?
Those are the two most likely causes.
It basically means:
"there'
Ya, I am also trying to find out the same i.e. why my app. doesn't pick
up these tokens automatically. May be - while mixing up the code of
snmpget and snmptrapd I have eaten up something(I did this 2 years back)
or I have called the initialization routines in different order or this
is happening b
> I am sorry but still I didn't find
> init_agent("snmptrapd") in snmptrapd.c of ucd-snmp-0.4.2.5
OK.
Both Wes and I will have been looking at the v5 code.
The v4 line is rather old now, and is no longer being developed.
> init_snmp("snmptrapd") is there.
> And I am also calling this function.
Hi Greeting:
Do you know what's the meaning of "No more variables left in this MIB View (It is
past the end of the MIB tree)" while I tried to getnext of my top of my mib? I
followed the steps listed in the "checklist for adding a MIB module to the UCD-SNMP
agent". I found the above error.
I am sorry but still I didn't find
init_agent("snmptrapd") in snmptrapd.c of ucd-snmp-0.4.2.5 rather
init_snmp("snmptrapd") is there.
And I am also calling this function. Does this routine also do same as
init_agent?? or should I explicitly use init_agent instead od init_snmp
or BOTH?
Thanks
So
Hi,
I've been trying to use the pass command to implement a script for
creating my own MIB blocks. To begin with I'm just trying to get the
supplied passtest script from 5.1.1 to work, and it doesn't.
Here is a log of my session
escher:~# /etc/init.d/snmpd restart
Restarting network management
> Why should I call init_agent() from
> my management application i.e. the code which will either receive
> traps or make snmpget/set commands only.
Because "init_agent" is the bit that handles some of the
persistent configuration information. You don't need that
for
Hi all
I am using ucd-snmp 4.2.6 and I am trying to develop my own MIB file.
I would like to know what is the maximum size of a string that snmpget command
can retreive. I read in the literature that the limitation for snmpget
command is the 64k size of a UDP packet, but soon I realized that I
I didn't get your point completely. Why should I call init_agent() from
my management application i.e. the code which will either receive traps
or make snmpget/set commands only. Also, I didn't find init_agent being
called from the code of tools snmptrapd.c and snmpget.c I saw the
following routine
Hello,
I've been implementing a module for the net-snmp agent. I'm successful in
integrating the module with the agent. All the objects in the MIB were
scalar variables.
Recently, I added a new object which corresponds to a table. This table
object is given below. 'company' corresponds to th
> The equipment has an SNMP agent running on it. However, I need some tools
> in order to request or set information from the SNMP agent.
>
> This way, I was wondering if I can install the Net-SNMP software and use its
> tools to request or set information from the SNMP agent. Is this possible?
> To experiment the very first few step I hard coded every return
> values for each case under switch(vp->magic). My table is a table
> of 5 entries. It didn't give me anything when I issued "get" or
> "getnext" commands
> Could you kind show me what should I do to cross over the very first
> here is a snippet from the ethereal
> trace, taken running my script as designed:
>
> Source Destination Protocol Info
> 140.107.74.123 140.107.50.5 SNMP GET ccitt.1
> 140.107.50.5 140.107.74.123 SNMP RESPONSE ccitt.1
> 140.107.74.123 140.107.50.5 SNMP GET ccitt
Title: snmpbulkget fragments
Hi all,
Is it possible to 'not' fragment the replies to an snmpbulkget request?
Some switches in the network I am working in drop fragmented pacakges.
If I do a snmpbulkget to an host behind such a switch, I get no respones:
$> snmpbulkget -v2c -c ho
28 matches
Mail list logo