Hello,
We are using Using net-snmp release 5.4.1
Facing issue with sending traps at high rate.
As sending traps at high rate snmpv2_trap() api hangs somewhere , i am doubting
that it is somewhere when
sending data to master agent on port 706 on tcp.
I am running master agent using following c
Hello,
I am wondering wheter there is something related to adding up varbid in varlist
using api
snmp_varlist_add_variable() or issue with send_v2trap(). Because when traps are
send at fast rate 1000 alarm/sec then the code hangs somewhere in send_v2trap()
api.
Could any body guide me on this
Hello,
We are using netsnmp release 5.4.1. We are facing issue with trap sending
We are sending trap at a fast rate 1000 Alarms/sec. The Agent hangs. Adding
some debug statement , we found that the code hangs when we give call to
send_v2trap(var_list);
At our trap receiver we received 500 Alar
Hello,
We are getting error in log file for every insert, delete on NetSnmp container
as -->
"error on subcontainer '' insert (-1)"
it is flling up the log file unneccesary.
I went through net-snmp mailing list and came to know that:
1) It is likely one of default network-related agent/mib with
Hello,
1)When ever i insert a row in CONTAINER i get error
--- "error on subcontainer '' insert (-1)"
What could be the reason for this.
This happens always when i insert a row
2) When deleting a row from CONTAINER(array-user) , can i simply call
CONTAINER_REMOVE(cb , ctx) or i need to call xx
Hello,
I have a table which have index ranging from 1-1000 , once the index reaches
1000 it is rounded off back to 1.
Now in such case the existing rows with that index need to be updated.
1) Can i safely go ahead with finding a row with the index(rounded off back to
1) and simpy updating it.
i
Hello,
I want to do logging of my subagent(Master[snmpd] - subagent[myAgent]
configuration) to a different file for this i have created a new handler and
registered my tokens :
:
=
netsnmp_log_handler *logh;
int priority =
I agree to your point that we need to take lock on every place of my mib module
(whose code is generated by mib2c) which access the CONTAINER (*_set_reserve1()
, *_set_reserve2()., *_set_free(), *_set_undo(),*_get_value()...)
But could u just let me know that do in any case locking to be done
Hello,
Yes you are right that lock should be taken on all areas where the shared
CONTAINER is being used/accessed
I have a query related to this only
I have alarmTable mib module
The alarmTable CONTAINER will be accessed by 2 different threads
1) netsnmp thread for GET/SET operations
2) my subag
Hello,
I read NET_SNMP is single threaded and does not claim to be thread safe either.
Now I have requirement to periodically fetch all the alarms related data from
DB and update the NETSNMP CONTAINER from which GET/GET NEXT/GET BULK request
will return data.
I have implemented this in followi
When the request from AdventNet Mib Browser configured for V3 request , then
request from second Mibbrowser timed out
But from command line both were successfull
>From Machine 1:
===
snmpget -v 3 -u sbssEmsUser -l authPriv -a MD5 -A sbssEmsSecretPass -x DES -X
sbssEmsPassphrase loca
Thanks it worked fine setting the log handler *before* activating the debug
code.
Thanks
- Original Message -
From: Dave Shield <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: net-snmp-coders@lists.sourceforge.net
Sent: Sat, 14 Jun 2008 18:31:28 +0530 (IST)
Subject: Re: Logging of subagent
The priority was set to LOG_DEBUG
sorry for the mistake
but when i used API log file was created but logs for DEBUGMSG("Started") were
"NOT" found in the file
The problem is that if i don't add following lines in code the logs for
DEBUGMSG("Started") and DEBUGMSGTL("snmpV3Agent","Started") do
Hello
These managers are configured for V3 request
I sent same GET request to retrieve the value of alarmID from the alarmtable
and the User was "sbssEmsUser"
My snmd.conf:
--
trapsess -e 0x80001f888017454900b6f44848 -v
i tried using this as
netsnmp_log_handler *logh;
logh = netsnmp_register_loghandler(NETSNMP_LOGHANDLER_FILE, priority);
if (logh)
{
logh->pri_max = pri_max;
logh->token = strdup("/root/myAgentx.log");
netsnmp_enable_filelog(logh,
netsnmp_ds_get_boolean(NETSNMP_DS_LIBRARY_ID,
NETS
OK i am using Agentx Configuration
as a read somewhere in the forum that :
###
If your subagent understands the standard command-line arguments,
then you can use the -Lf option to specify the appropriate log file to use.
Otherwise,
Hello,
Do NEtSnmp support request from multiple managers
I developed SNMPv3 master-subagent.
I started a first MibBrowser(Acting as first Manager) and sent GET rtequest ,
it was successful
Then i started second MibBrowser(Acting as second Manager) and sent GET request
, it TimedOut.
Do i need
Hello,
Could it be possible for creating a different log file for subagent and manage
the log level and type of log messages to be logged.
What i understood was that all the logs are written to /var/log/snmpd.log , but
is it right that 2 different process master agent and subagen write to this
Hello,
I have a requirement that i also need to listen for alarms coming from another
application on socket and forward them to manager apart from GET/SET request
from Manager
Now in order to listen on socket for alarms i need to accept the connection but
this will make it blocking. So i have
Hello ,
Could it be possible that i can hardcode the engine id for each user i create
i.e
In /var/net-snmp/snmpd.conf
createUser -e 0x0102030405 v3_user MD5 mysecretpass DES mypassphrase
This lines in snmpd.conf is replaced by an encrypted key , but what i suppose
that the entry for this user
Hello,
I am facing problem sending SNMPv3 traps to the trap listener (snmptrad ,
AdventNet Trap Listener) from the agent which i have compiled as Master -
subagent configuration(Agentx)
Following is the configuration i did in /usr/local/share/snmp/snmpd.conf
===
Hi,
That was mistakenly written but i actually used,
/usr/local/sbin/snmpd -c /usr/local/share/snmpd.conf -X tcp:localhost:706
But anyhow , i was successfull in running it ,
the problem was that in the sub agent code i changed the agentx port from
"localhost:706" to "tcp:localhost:706" and it w
Hello ,
I am running the agent as a Agentx configuration
snmpd--- Master Agent
myAgent --- subAgent
But each time i try to run it i get message "Failed to connect to agentX master
agent(localhost:706)
Following are the configuration related to agentx in
/usr/local/share/snmp/snmpd.conf
##
Hello,
Do we need to configure "context Name" and "context Engine" somewhere in
snmpd.conf or it is automatically done for snmpv3
by Net-SNMP
I have added following lines in snmpd.conf for authentication :
defSecurityName abc
defAuthTypeMD5
defSecurityLevel authPriv
defAuth
Hello,
Do we need to configure "context Name" and "context Engine" somewhere in
snmpd.conf or it is automatically done for snmpv3
by Net-SNMP
I have added following lines in snmpd.conf for authentication :
defSecurityName abc
defAuthTypeMD5
defSecurityLevel authPriv
defAuth
25 matches
Mail list logo