Hi, Dave
I compiled the example.
But when I run it, it give me error
ldd:FATAL: Could not load library libnetsnmpagent.so.20
But libnetsnmpagent.so.20 is located in /usr/local/lib
What went wrong?
Thanks
Chi Guan
-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi
Hi,
I want to know how multiple subagents communicate each other?
How do I get the a MIB value from one subagent from other subagent?
Thanks
Chi
--
All the data continuously generated in your IT infrastructure
Hi,
I tried to compile the example of
http://www.net-snmp.org/docs/man/snmp_agent_api.html
With gcc snmp_agent_api.c `net-snmp-config --agent-libs`
But I got error: net-snmp/net-snmp-config.h: No such file or directory
What should I configure to make this file compiled.
Thanks
Chi Guan
HI,
I want to use pass persist to run a simple python program.
In the snmpd.conf, I add a line pass_persist
.1.3.6.1.4.1.3231.101.5.1.101.0.1.0 python /work/snmp/persist_test.py.
Then I run usr/local/sbin/snmpd -f -Le
-Ducd-snmp/pass_persist,ucd-snmp/pass,snmpd,output,helper:debug
When Itry to
Hi,
I have some questions about the snmpdtrapd.conf
1. Is there any tool to create the snmptrapd.conf like snmpconf top
create snmpdconf?
2. Where can I download the example code of the snmptrapd.conf?
3. where is snmptrapd.conf located? /usr/local/share/snmp?
Thanks
Chi
Hi,
How to send trap or notification from sub-agent code?
Any example or tutorial document is highly appreciated.
Thanks
Chi
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It
I realize that in snmpd.c, the main does the initialization first then
do the net-snmp_daemonize.
If I create a thread in the initial_module, it will destroy the daemon.
I guess.
_
From: Guan, Chi @ MWG - Datron
Sent: Monday, June 27, 2011 9:39 AM
To:
Hi,
I add a thread in my QNX net-snmp agent code.
When I ran the agent, I got the following error:
first fork failed (errno 89) in netsnmp_daemonize()
Server Exiting with code 1
What could be worng?
Thanks
--
All of the
hi,
I have two agents running at different devices. one is at 192.168.83.7,
the other one is running at 192.168.83.4.
I add the following line in the snmpd.conf file on 192.168.83.7.
com2sec -Cn ctx_remotehost2 notConfigUser default comty_password
proxy -Cn ctx_remotehost2 -v 3 -u
Hi, I have a mib file DatronIridium-mib.txt and I put the mib file in
/usr/local/share/snmp/mibs directory.
But when I use MIBS=+DatronIridium-mib mib2c -c mib2c.scalar.conf
datronAntenna,
I have got error Cannot find module (DatronIridium-mib): At line 0 in
(none)
Please see my mib file as
Hi,
I have got errors to make snmp perl.
make[1]: Entering directory `/work/snmp/net-snmp-5.5/perl'
make[1]: *** No rule to make target
`/opt/lib/perl5/5.8.0/x86pc-nto/Config.pm', needed by `Makefile'. Stop.
make[1]: Leaving directory `/work/snmp/net-snmp-5.5/perl'
the perl5 in my system is
I finally got snmp perl installed by changing a bunch of Makefiles.
But when I use mib2c to create template files from a MIB file, I got the
following error:
#env MIBS=+RTIRIDIUM-MIB mib2c -c mib2c.scalar.conf iridium
writing to iridium.h
writing to iridium.c
running indent on iridium.c
indent:
Hi, Dave
'snmpconf-data does not exist anywhere.
Here is what I did in configure.
./configure --enable-mini-agent --with-defaults --with-out-transports=Callback
Unix --with-transports=UDP --with-out-transports=TCP
--with-mib-modules=fss4180LCantenna,ucd_snmp --enable-privacy
Hi
I like to create several sub agent for different mib file.
1. How do I (call) interface another sub-agent from a main
sub-agent.
2. How do I do use a third party mib from the sub-agent.
Are there any document online?
Any guidance is really appreciated.
Chi Guan
I installed perl and I can run snmpconf , but I got error.
no such directory /usr/local/share/snmp/snmpconf-data, did you run make
install?
I am sure I have run make install.
What was wrong?
Thanks
--
Benefiting from
Hi Dave,
I try to snmpconf in /usr/local/bin, I got error: zsh: command not
found: snmpconf.
But the file is in fact in that dir. What other files do I need to run
snmpconf?
Thanks
--
Benefiting from Server
Hi
I am trying to build a agent file. when I do makeintall, I got errors:
./.libs/libnetsnmpmibs.so: undefined reference to `atan'
./.libs/libnetsnmpmibs.so: undefined reference to `_Sin'
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
How should I fix that ?
I am running QNX
Hi Guys,
I want send a PDU response of SET command in a sub-agent. Is there any
example code for that?
Can I do something like the following?
In a handler,
handle_testoid(netsnmp_mib_handler *handler,
netsnmp_handler_registration *reginfo,
I remove the enable-mini-agent in the configure,
But I got compile errors as following:
mibII/at.c: In function `ARP_Scan_Next':
mibII/at.c:830: arithmetic on pointer to an incomplete type
mibII/at.c:836: dereferencing pointer to incomplete type
mibII/at.c:839: `ifIndex' undeclared (first use in
I did trim --with-out-mib-modules=agent/mibII/vacm_config from the
configure.
But UCD-SNMP-MIB is not included.
1. I am not sure if enable-mini-agent builds necessary UCDAVIS's mib.
2. What exact configure parameters should I use in QNX if I don't want
TCP, perl to build in however, I want
Hi, Dave,
I removed rwcommunity public from the /usr/local/share/snmp/snmpd.conf file
and try to reload the config by setting the versionUpdateConfig to 1
# /usr/local/bin/snmpset -u test-agent -l authPriv -a MD5 -A test_authkey -x
DES -X test_privkey 192.168.83.4
I don't think the UCD-SNMP-MIB is included in this agent,
When I do
#/usr/local/bin/snmpget -u test-agent -l authPriv -a MD5 -A test_authkey -x DES
-X test_privkey 192.168.83.4 UCD-SNMP-MIB::versionUpdateConfig.0
I got the following error
UCD-SNMP-MIB::versionUpdateConfig.0 = No Such Object
Dave:
/usr/local/bin/snmpgetnext ... system
SNMPv2-MIB::sysDescr.0 = STRING: QNX sotm 6.2.1 2003/05/17-02:28:40edt
x86pc
/usr/local/bin/snmpgetnext ... ucdavis
ucdavis: Unknown Object Identifier (Sub-id not found: (top) - ucdavis)
I use the following line to configure in QNX:
./configure
Hi, thank you all for the help of my previous questions. Problems were
solved according to your answer.
I have another question:
I have an agent running for all the SNMP versions.
1. I want to disable/enable SNMP V1, V2 for the whole agent on the
fly,
What net-snmp command
Hi, there,
I wrote a agent in net-snmp and use commercial MIB browser (iReasoning
and MG-soft) to talk to it.
I try to set values to different OID. When I use snmpset of net-snmp,
it works fine, but when I use the MIB browser, the values was wrong.
1. I set an octets string value 12345 in
Mike, Thank you for the quick response.
I tried different string value on both browsers, they have the same problem.
net-snmp's snmpset -V 2C (snmp v2) have the same problem too.
But snmpset -V 3 (snmp V3) does not have the problem.
I used another browser (besides the above two) which allow me to
it to the testAgentModule?
Thanks
Chi Guan
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http
Hi all,
I am running the agent by using /usr/local/sbin/snmpd -f -Le
-Dread_config
I have createUser antenna-agent MD5 antenna_authkey DES
antenna_privkey in the snmpd.conf file.
1. I run /usr/local/bin/snmpget -u antenna-agent -l authPriv -a MD5
-A antenna_authkey -x DES -X antenna_privkey
Hi.Wes,
I used -d at snmpusm command but I got binary print out.
And I used snmpget and snmpwalk with new key, it does not connect with
the agent, but the old key does.
The agent running at 192.168.83.4 is written by Python SNMP, May be the
agent have problem.
The snmpsum result is as following:
Hi, all,
I am new of net-snmp, I am trying to change the authentication key and
private key in a agent and using snmpusm. But failed.
1. If I use
/usr/local/bin/snmpusm -v3 -l authPriv -u test-agent -l authPriv
-a MD5 -A test_authkey -x DES -X test_privkey
30 matches
Mail list logo