From: manu kumar
To: "net-snmp-users@lists.sourceforge.net"
Sent: Thursday, February 19, 2009 12:16:27 PM
Subject: Please hlep me , I Need..a examples programs how to use "pass" and
pass_persist (snmpd.conf)
Hi All,
I am in a need to implement a
Hi All,
I am in a need to implement a method ,
1) I will get a root OID from Event and I am configurating that
in snmpd.conf , So that any snmp get,set request will come to this point.
2) Based on the root OID , I have to handle any query's
(get,set,get-next,wa
Seems like we are having different types of environments.
You did configure with the option --disable-snmptrapd-subagent ??
I am unable to reproduce the error in my Linux box.
Regards
-Ragesh
-Original Message-
From: Raghu Ramaraj [mailto:raghu_rama...@mindtree.com]
Sent: Thursday, Feb
I got the below messages if run
spils/linux/target snmp # /usr/local/sbin/snmpd -f -L -Dagnetx -C -c raghu.conf
registered debug token agnetx, 1
raghu.conf: line 11: Warning: Unknown token: master.
raghu.conf: line 12: Warning: Unknown token: agentXSocket.
NET-SNMP version 5.4.2
Thanks & Regard
The snmpd.conf file looks fine to me.
My run with your conf gave the below out put.
/usr/local/sbin/snmpd -f -L -Dagnetx -C -c Raghu.conf
registered debug token agnetx, 1
Turning on AgentX master support.
NET-SNMP version 5.4.2
Can you please use -C -c for confirming your conf is picked?
Rega
Hi,
I just kept the below things are in snmpd.conf
trap2sink localhost public
trapcommunity public
authtrapenable 1
rocommunity public localhost
rwcommunity private localhost
syslocation Right here
syscontact root
master agentx
agentXSocket/var/agentx/master
out puts are.
Why would I use one versus the other?
When would extending the agent via C modules be viable?
On Wed, Feb 18, 2009 at 11:28 AM, Wes Hardaker
wrote:
>> On Wed, 18 Feb 2009 09:51:04 -0800, ntwrkd said:
>
> n> I am wondering if there is a more efficient process by which I can
> n> extend the ag
Hi Dave,
If I run -
spils/linux/target ~ # ls /var/agnetx
ls: /var/agnetx: No such file or directory
Here I am listing dir under /var/
spils/linux/target ~ # ls /var/
cache lib local lock log mail net-snmp opt run spool tmp www
if I run snmpd -f -L -Dagnetx
spils/linux/targ
> From: Raghu Ramaraj [mailto:raghu_rama...@mindtree.com]
> Sent: Tuesday, February 17, 2009 9:10 AM
> I have given like this also" snmpget –v1 -c
> democommunity localhost MIBfileName::nodename .0 "
>
> Still i am unable to find results
*SIGH*
Why did you pu
Hello all:
use the version: net-snmp-5.4.1-3.win32.exe
got the window version 32 SNMP pre-compiled binary.
got MIBs from cable labs, and Motorola I work for. Both of which
facilitate the DOCSIS 3.0 MIBs included IPv6 MIBs.
set cmIpv6 2001:db8::1428:57ab ==>won't work==>>could not recognize the
Hi All,
i would like to know whether net-snmp-5.4.2.1 implements
SNMP-COMMUNITY-MIB to support SNMPv3 and SNMPv2c co-existence.
Regards
kusuma
--
Open Source Business Conference (OSBC), March 24-25, 200
2009/2/18 Sergio Cabaço :
> At this moment, my problem is that I'm inserting "create User" directives
without the space, I trust
> in the snmpd.conf file that says something like
> "do not edit... unless it is a create user token and you are de admin".
That's fine - you are adding the one t
> On Wed, 18 Feb 2009 09:51:04 -0800, ntwrkd said:
n> I am wondering if there is a more efficient process by which I can
n> extend the agent for custom OID's.
There are multiple ways to do it that are more efficient. The best two
would be either:
1) pass_persist
(see the snmpd.conf man
> On Wed, 18 Feb 2009 08:36:54 +, Dave Shield
> said:
DS> Which version of the software are you using? You mention "SNMP UCD".
DS> Are you *really* using the 'ucd-snmp' package (which is very old now),
DS> rather than one of the current 'net-snmp' versions?
And did you format your
> On Wed, 18 Feb 2009 18:05:42 -, Sergio Cabaço
> said:
SC> I've inserted the tokens because I'm the system admin and saved the
SC> file. Then I started the agent. Then, with the agent running, I
SC> looked again at the snmpd.conf file where I've inserted the tokens
SC> and there's n
I'm sorry for my persistence but I need to understand this.
I've read the FAQ and that's why I'm writing here. At this moment, my problem
is that I'm inserting "create User" directives in the snmpd.conf file that says
something like "do not edit... unless it is a create user token and you are de
I am currently extending the SNMP agent through many exec commands and
custom OID's in the snmpd.conf.
I am wondering if there is a more efficient process by which I can
extend the agent for custom OID's.
There are hundreds of OID's and they frequently change using a manual process.
Suggestions are
Ok thanks but, we've tried that and the directives that we wrote are
overwritten when the agent executes so it's like they have never been
defined... I'm talking about the dynamic or generated file snmpd.conf.
We have also tried to insert the "create" directive in the file after the start
of the
2009/2/18 Sergio Cabaço :
> Ok thanks but, we've tried that and the directives that we wrote are
> overwritten when the agent executes
> so it's like they have never been defined... I'm talking about the dynamic
> or generated file snmpd.conf.
The 'createUser' lines are deleted, and replaced by
2009/2/18 John Anderson :
> How do you use make install when you are cross-compiling and the target is
> on another machine?
$ ./configure --help
--with-install-prefix=PATH Just for installing, prefix all
directories with PATH.
Dave
---
2009/2/18 Sergio Cabaço :
> How can I insert the directives removed from the static snmpd.conf file and
> insert them in the writable one?
> Can I insert it by hand?
Yes - they're text files, so can be edited with any text editor.
Dave
---
>
> 2009/2/13 mmlucky Im :
>> Thanks Dave. I ran "make install", but I didn't see an executable snmpd
>> under /agent.
>
> No - the point of "make install" is to install the software (including the
> agent binary) into the configured destination . You should look for
> it there, not in the 'agen
Hi there,
Thank you for all the replies.
How can I insert the directives removed from the static snmpd.conf file and
insert them in the writable one?
Can I insert it by hand? Or is it exclusively accessed by the snmpusm command
with the "create" directive?
I wish that the agent answer to GET a
2009/2/18 Jesus Alvarez :
> Using net-snmp 5.4.2.1 under Windows a simple query to sysLocation.0 works.
> Yet the same query fails from net snmp 5.4.1 under Debian Linux. The UDP
> query and response is included below for both cases.
> It appears that the lwIP SNMP agent is processing one of the q
2009/2/18 Pranesh Kulkarni :
> You can try the snmpd with this option, (but am not sure)
>
> snmpd -Lsd tcp:localhost:705 -p /var/run/snmpd.pid
>
> i have taken out "-a" option which tells "Log the source addresses of
> incoming requests"
Yes - Suresh had already done that.
> Keep as -Lsd which
I am using the lwIP 1.3.0 SNMP agent on an embedded controller using the
Luminary ARM-Cortex microcontrollers. The implementation works but appears
to be sensitive to the version of the SNMP tool used to query it.
Using net-snmp 5.4.2.1 under Windows a simple query to sysLocation.0 works.
Yet the
2009/2/18 :
> Can you please let me know how to disable the message "Connection from
> UDP" as well ?
$ man snmpd.conf
dontLogTCPWrappersConnects
If the snmpd was compiled with TCP Wrapper support, it
logs every connection made to the agent. This sett
I am using the lwIP 1.3.0 SNMP agent on an embedded controller using the
Luminary ARM-Cortex microcontrollers. The implementation works but appears
to be sensitive to the version of the SNMP tool used to query it.
Using net-snmp 5.4.2.1 under Windows a simple query to sysLocation.0 works.
Yet the
Actually i meant for disabling logging in your sub agent , so I told you
call this function "snmp_disable_log()" . Sorry for misunderstanding
question.
You can try the snmpd with this option, (but am not sure)
snmpd -Lsd tcp:localhost:705 -p /var/run/snmpd.pid
i have taken out "-a" option whic
For testing , take a backup of your snmpd.conmf and please keep these lines
only in snmpd.conf
-
trap2sink localhost public
trapcommunity public
authtrapenable 1
rocommunity public localhost
rwcommunity pr
2009/2/18 Sergio Cabaço :
> I've already sent an email about this topic but this time I'll tried to be
> more cleared.
>
> I'm using net-snmp 5.3.2 and I'm trying to change the passwords for the users
> using the command snmpusm.
> The configuration file, snmpd.conf, used is as shown,
> ...
> rwu
2009/2/18 Raghu Ramaraj :
> Hi Dave
> Pls find the attached file which has the snmpd.conf
>
> I did only two changes in conf file that are 1) added democommunity 2) added
> master agentx.
> If do ls /var/agent it is giving ->no such file or dir
I didn't say "/var/agent"
I asked about "/v
Added "agentXsocket /var/agentx/master " line in snmd.conf
Then it is giving like this
spils/linux/target ~ # snmpd -f -L -d
/usr/local/share/snmp/snmpd.conf: line 202: Warning: Unknown token: exec.
/usr/local/share/snmp/snmpd.conf: line 253: Warning: Unknown token: disk.
/usr/local/share/snmp/
in your snmpd.conf
add these two lines
master agentx ( you have added this line only)
agentXsocket /var/agentx/master .
the do the command "ls /var/agentx" to check really the agentx connection
exists ???/
On Wed, Feb 18, 2009 at 5:47 PM, Raghu Ramaraj
wrote:
> Hi Dave
> Pls
Thanks Dave and Pranesh for the responses.
Dave,
We were using the following options to start snmpd.
"-Lsd -x tcp:localhost:705 -a -p /var/run/snmpd.pid"
I removed "-a" option and the message "Received SNMP Packet from " is
not logged now, but the message "Connection from UDP" is still being
lo
Hi Dave
Pls find the attached file which has the snmpd.conf
I did only two changes in conf file that are 1) added democommunity 2) added
master agentx.
If do ls /var/agent it is giving ->no such file or dir
Thanks & Regards,
Raghu
-Original Message-
From: dave.shi...@google
I have found an answer on my question: I should keep table_set variable
(result of netsnmp_create_table_data_set()) to access them in Watcher
handler. (Watcher() is a handler of SNMP requests like GET, SET)
But now I have a strange situation:
1. My table has one row (named "ROW1", for example)
2
Hi all,
I've already sent an email about this topic but this time I'll tried to be more
cleared.
I'm using net-snmp 5.3.2 and I'm trying to change the passwords for the users
using the command snmpusm.
The configuration file, snmpd.conf, used is as shown,
...
rwuser user1 authnopriv
rwuser us
requests varibale of Watcher keeps row instead table pointer
netsnmp_extract_table_data_set(requests); returns NULL
netsnmp_extract_table_row(requests); returns valid data of row.
What should I do to put table data inside request or how to get table data
by row?
2009/2/18 Alexander Bubnov
> H
2009/2/18 Raghu Ramaraj :
> I just started with the following link
> "http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent";
> Even I used the example here also.
> I am getting here like this
>
> spils/linux/target subagent # snmpgetnext -v1 -c democommunity localhost
> NET-SNMP-T
Hello, all!
Can you please let me know a way getting table data to manipulate it?
below code:
1. init_tables - init tables within main function.
2. Watcher - a callback, it is called when some request is received. Inside
of this callback I would like to change the table content before I need to
I just started with the following link
"http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent";
Even I used the example here also.
I am getting here like this
spils/linux/target subagent # snmpgetnext -v1 -c democommunity localhost
NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
2009/2/17 Raghu Ramaraj :
> Dear Dave,
> I have given like this also" snmpget –v1 -c democommunity
> localhost MIBfileName::nodename .0 "
Did you really include a space between the nodename and '.0' ?
The instance subidentifier is *part* of the OID. It's not a separate paramete
2009/2/17 Yu Wei-MGI2613 :
> I am working on the IPv6 automation test. Speaking to "snmpwalk.exe", I can
> use MG-soft (window version) to get MIBs via IPv6 address of the remote
> agent, such as cable modem. Yet It seems SNMP UCD won't like IPv6
> address, instead of preferring to IPv4 address. Di
2009/2/17 Jeff Silverman :
> I have a customer who is using Zenos and SNMPv3 to poll a pair of embedded
> machines that are running net-snmp-5.0.9 . I have packet
> captures in wireshark that show that one unit is replying with "report
> SNMP-USER-BASED-SM-MIB:usmStatsNotInTimewindows.0"
> M
Hello all,
I am working on the IPv6 automation test. Speaking to "snmpwalk.exe", I
can use MG-soft (window version) to get MIBs via IPv6 address of the
remote agent, such as cable modem. Yet It seems SNMP UCD won't like IPv6
address, instead of preferring to IPv4 address. Did I miss something?
> Of the various supported architectures, only Linux actually has
> code to act on such an assignment. All other systems (including
> FreeBSD) will reject this request.
I see, thank you for cheking the code. Hope someone implement it in
near future.
Ko
-
I have a customer who is using Zenos and SNMPv3 to poll a pair of embedded
machines that are running net-snmp-5.0.9 . I can't change the version of
net-snmp unless I can show that this problem is fixed in a later version of
net-snmp. The problem is that the polls work for about an hour on one
48 matches
Mail list logo