Registering over 5000 scalars with snmpd from my AgentX takes 2-3 minutes, and
in that time snmpd has a massive CPU load.
Is there any way to speed this up, and without having snmpd consume so much of
the CPU? Even though it is only a few minutes, we are not keen on snmpd taking
that much of th
There seems to be a difference between some ASN types in both asn1.h and
snmp_impl.h.
asn1.h
/*
* value for Float
*/
#define ASN_OPAQUE_FLOAT (ASN_OPAQUE_TAG2 + ASN_APP_FLOAT)
/*
* value for Double
*/
#define ASN_OPAQUE_DOUBLE (ASN_OPAQUE_TAG2 + ASN_APP_DOUBLE)
/*
* value for Integer64
*/
#define
1.40850.2.5.0: Needs type and value
Anyway: Here is one radical thought. What about using snmpget to trigger a
command? At least when no parameters are sent it would be perfect and simple.
/Sverre
- Original Message -
Fra: "Sverre Moe"
Til: net-snmp-users@lists.sourcef
I'm not sure what I did to fix the problem. After fiddling with the code on
several places(many which was non-SNMP specific) the problem got solved.
Running snmpwalk now stops at the last OID in that subtree.
/Sverre
- Original Message -
Fra: "Dave Shield"
Til: "Stavros Tsolakos"
If there is anyone active on this mailing list I hope they can answer me on
this question.
So down to business:
I need to know how I can set multiple parameter values with snmpset for my
commands?
I have implemented my commands as simple scalars, but lately I was thinking
perhaps I needed to
Could anyone tell me the purpose/use of the following handler registration
method?
netsnmp_mib_handler *handler1 = netsnmp_create_handler("", handle_snmp);
netsnmp_register_handler_by_name("", handler1);
Instead of the usual registration method:
netsnmp_handler_registration *handler_reg
Regular snmpget works perfectly with my SNMP AgentX, but I'm having some
problems with snmpwalk. I have searched through the mailing list, nothing so
far. Will try to refine my search there, but in the mean time I wanted to ask
here.
The following code is my handler function and my alarm callb
3.2.2
1.3.6.1.4.1.49463.2.3
Does the master agent handle it if I register a higher order scalar before a
lower order scalar?
I have checked the snmpd logfile and cannot find any information on why these
few scalars takes longer time to register.
- Original Message -
Fra: "Sverre Moe&q
I have aprox 4000 scalars. When I go through my list of scalars it is able to
register them very fast, but for some reason one a handful of scalars it takes
a few seconds.
My ordering of the list of scalars might not be perfect. It is a
map, where the key is a OID wrapper than contains oid
ar
S_TEXT(message));
break;
default:
LOG4CPLUS_INFO(snmp_logger, LOG4CPLUS_TEXT(message));
break;
}
return 1;
}
- Original Message -
Fra: "Sverre Moe"
Til: net-snmp-users@lists.sourceforge.net
Sendt: 12. november 2012 10:34:38
Emne: Callback logging
Scouring the web and
Scouring the web and the mailing list archive for information about
implementing a callback logging. I could only find bits and pieces.
If I haven't overlooked it and it is actually there, I think this information
should be available on the Net-SNMP Wiki. A small tutorial on how to implement
device multiple times, since both handler
and callback are executed multiple times.
My technique of putting each request(delegated_cache) in a list did not work so
well. Beside it will not work if I get two requests for the same OID.
- Original Message -
Fra: "Sverre Moe"
I have implemented a delegated response with a 2 seconds delay time.
My handler function handle_snmp and callback function delayed_response gets
called/executed several times for the same requests. Why is that? Is it a
feature or a bug? If its a feature is it how it handles the delay by executi
nse too late on session 0x7f6ecc8ceb10
- Original Message -
Fra: "Sverre Moe"
Til: net-snmp-users@lists.sourceforge.net
Sendt: 31. oktober 2012 14:23:00
Emne: Re: Delayed response
Update:
Running: snmpget -v2c -c public localhost 1.3.6.1.4.1.49463.1.3.40.0
This is the
the current one has been dispatched?
/Sverre
- Original Message -
Fra: "Sverre Moe"
Til: net-snmp-users@lists.sourceforge.net
Sendt: 30. oktober 2012 15:01:19
Emne: Delayed response
Is registering an Net-SNMP alarm the only way to delay a response?
I don'
Is registering an Net-SNMP alarm the only way to delay a response?
I don't need to delay for a given amount of time, but until a signal is
received (sigc signal). Anyway I could do that?
If not, the only possible way I see to get around this is to use an alarm with
a timeout delay. Wait f
lue 1.
Both of these is just a pointer right? So why does OID_LENGTH work one the
first, but not the second?
My immediate problem is solved. Thanks for all assistance.
/Sverre
- Original Message -
Fra: "Dave Shield"
Til: "Sverre Moe"
Kopi: "net-sn
subids: 1 (0x01)
dumpv_recv: prefix: 0 (0x00)
dumpv_recv: inclusive: 0 (0x00)
dumph_recv: OID Segments
dumpx_recv: 01 00 00 00
dumpv_recv: Integer: 1 (0x01)
dumpv_recv: OID: iso
- Original Message -
Fra: "Dave Shield"
Til: "Sverre Moe"
Kopi: "net-snmp-users&q
agent" ?
/Sverre
- Original Message -
Fra: "Dave Shield"
Til: "Sverre Moe"
Kopi: "net-snmp-users"
Sendt: 29. oktober 2012 11:01:33
Emne: Re: Debugging SNMP
On 29 October 2012 09:34, Sverre Moe wrote:
> I have tried to manually register 3 hard code
_string.c_str();
int returnValue = netsnmp_register_read_only_scalar(
netsnmp_create_handler_registration(buffy,
handle_snmp,
oid_value,
OID_LENGTH(oid_value),
HANDLER_CAN_RONLY
));
}
- Original Message -
Fra: "Jatin Bodarya"
Til: "Sverre Moe"
Sendt: 29. oktober 2012 09:5
unique. So why does
it returns MIB_DUPLICATE_REGISTRATION?
/Sverre - Original Message -
Fra: "Dave Shield"
Til: "Sverre Moe"
Kopi: "net-snmp-users"
Sendt: 26. oktober 2012 14:52:18
Emne: Re: Debugging SNMP
On 26 October 2012 13:29, Sverre Moe wr
: hostname 1.3.6.1.4.1.40463.2.4
And none of these occur more than once.
Don't understand you last question.
/Sverre
- Original Message -
Fra: "Dave Shield"
Til: "Sverre Moe"
Kopi: "net-snmp-users"
Sendt: 26. oktober 2012 14:52:18
Emne: Re: Deb
;
}
The output is always only 1.
/Sverre
- Original Message -
Fra: "Dave Shield"
Til: "Sverre Moe"
Kopi: "net-snmp-users"
Sendt: 26. oktober 2012 14:13:04
Emne: Re: Debugging SNMP
On 26 October 2012 12:16, Sverre Moe wrote:
> The first s
tead of in groups.
/Sverre
- Original Message -----
Fra: "Sverre Moe"
Til: "net-snmp-users"
Sendt: 26. oktober 2012 10:19:24
Emne: Debugging SNMP
Hello, me again. Have been sending a few messages lately. Hope I am not nagging
to much.
Is there a way I c
Hello, me again. Have been sending a few messages lately. Hope I am not nagging
to much.
Is there a way I could debug snmp. I have gotten my C++ program to work as an
SNMP AgentX. I have managed to register 3 hard coded test scalars and it works
when I snmpget on those scalars.
Thus remo
An update: I got it to work. It seem like I forgot something in the SNMP
initialization.
Adding init_snmp(" my-snmp-deamon ") ; did the trick.
- Original Message -----
Fra: "Sverre Moe"
Til: "net-snmp-users"
Sendt: 25. oktober 2012 13:51:10
Emne: A
I am trying to attach a MIB Module into my C++ program. Making it an AgentX
subagent. Any help/suggestion is appreciated.
I followed the MIB Module Tutorial on Net-SNMP, created myself a MIB module
with 3 scalars.
Then running the command net-snmp-config --compile-subagent mysnmp mysnmp.c
th of characters).
I'll look into using hash in the descriptor name, in part or in full.
/Sverre
- Original Message -
Fra: "Dave Shield"
Til: "Sverre Moe"
Kopi: "Heiko Gerstung" ,
net-snmp-users@lists.sourceforge.net
Sendt: 25. oktober 2012 09:32:
: "Heiko Gerstung"
Til: net-snmp-users@lists.sourceforge.net
Sendt: 24. oktober 2012 16:00:25
Emne: Re: A MIB file dilemma
On 24.10.2012 14:07, Sverre Moe wrote:
>
> I have come up with the following hack for names over 64 characters. I'm not
> sure if this hack
g.length();
if (length > 64) {
const int half = length / 2; //We truncate in the middle.
const int numberOff = (length - 64) + 2; //The number of characters to
truncate.
const std::string dash = "-";
tmp_string = tmp_string.replace(half, numberOff, dash);
}
- Original Message --
This mailing list is for Net-SNMP, but I need some help with my MIB file that I
am trying to create.
The MIB file is being created programmatically and can consist of several
thousands of scalars.
Since the scalar name has to be unique and mnemonic I am faced with a dilemma.
The following sce
I have a C++ program built around glibmm Main Event Loop and need to create an
SNMP AgentX in it to be used along Net-SNMP own snmpd. I can't find any
information how to integrate it other than the Tutorial "Instrumenting your own
code with agentx subagent support" which I find a little shortco
How can I support a 64-bit Integer value in my MIB? It doesn't seem like SMIv2
support Integer64 data type, only Integer32.
CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be
proprietary, confidential or subject to export regulations, and is only meant
f
Can anyone recommend to me a tutorial on how to create a MIB file? Some
necessary reading materials, books, examples. A quick Google search for MIB
tutorial gives me the Net-SNMP tutorial on how to create a MIB module (when you
already have a MIB definition file).
I have managed to create a
: DisplayString
+-- -R-- Integer32 testSomethingElse3(3)
Thanx. I will look into the function netsnmp_register_scalar_group and see if
it will work for what I need.
/Sverre
- Original Message -
Fra: "Dave Shield"
Til: "Sverre Moe"
Kopi: net-snmp-users@lists.sourc
I have created a MIB definition with the following structure:
snmptranslate -Tp -OS MYCOMPANY-APP-MIB::myCompany
+--myCompany(40463)
|
+--test(1)
|
+-- -R-- String testInfo(1)
| Textual Convention: DisplayString
+-- -R-- String testPlacementCountry(2)
| Textual Convention: DisplayString
+
Putting lord of the ring aside, I need to create an SNMP agentX with only one
handler for all OIDs. I need to implement it this way to dynamically handle an
MIB definition.
I used the mib2c command to create a mib module from my example MIB definition
wich contain 2 scalars. I used this to ge
I need some SNMP clarification. Every example I find about creating an SNMP
AgentX tells me little about the actual MIB to create from. I did find
something about the syntax of an MIB file, but no tutorial/help to create one.
Have read the following tutorials on this subject:
http://www.net-sn
38 matches
Mail list logo