snmpsim-users Mailing List for SNMP Simulator
Brought to you by:
elie
You can subscribe to this list here.
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2011 |
Jan
|
Feb
|
Mar
(11) |
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
(2) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2012 |
Jan
|
Feb
(11) |
Mar
(6) |
Apr
|
May
(5) |
Jun
(18) |
Jul
(13) |
Aug
(11) |
Sep
(4) |
Oct
(16) |
Nov
(21) |
Dec
|
| 2013 |
Jan
(7) |
Feb
(5) |
Mar
(10) |
Apr
(54) |
May
(16) |
Jun
(14) |
Jul
(8) |
Aug
(20) |
Sep
(25) |
Oct
(9) |
Nov
(13) |
Dec
(9) |
| 2014 |
Jan
(27) |
Feb
(7) |
Mar
(20) |
Apr
(10) |
May
(2) |
Jun
(11) |
Jul
|
Aug
(9) |
Sep
(3) |
Oct
(6) |
Nov
(2) |
Dec
(8) |
| 2015 |
Jan
(15) |
Feb
(6) |
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
|
Sep
(4) |
Oct
(9) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
(4) |
Apr
(2) |
May
(4) |
Jun
(11) |
Jul
(3) |
Aug
|
Sep
(9) |
Oct
(7) |
Nov
(4) |
Dec
(11) |
| 2017 |
Jan
|
Feb
(2) |
Mar
(4) |
Apr
(14) |
May
(13) |
Jun
(14) |
Jul
(6) |
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
(3) |
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(1) |
| 2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Moreno M. I. <im...@in...> - 2020-05-12 10:24:39
|
Hello, You can see here all the generation options: http://snmplabs.com/snmpsim/documentation/building-simulation-data.html#snmpsim-record-mibs For generating from a MIB you can use snmpsim-record-mibs Best regards [indracompany]<http://www.indracompany.com/> Iván Moreno Muñoz Indra ATM European Programmes [https://www.indracompany.com/mail/tacon_Indra_(64x36).png] De: Randy Taylor <RT...@go...> Enviado el: lunes, 11 de mayo de 2020 15:10 Para: snm...@li... Asunto: [snmpsim-users] Why does snmpsim-record-commands --mib-module require an --agent-udpv4-endpoint or --agent-udpv6-endpoint ? Hi, thanks in advance: Why does snmpsim-record-commands --mib-module require an --agent-udpv4-endpoint or --agent-udpv6-endpoint ? Is it possible to generate the .snmprec file using snmpsim-record-commands without supplying a running Agent ? ( I can use mib2dev.py to do it though. ). /Users/rtaylor/.pyenv/versions/3.8.0/bin/snmpsim-record-commands --output-file=/tmp/public.snmprec --mib-module=/Users/rtaylor/work/Ka/pysmi_test/ka_kandu_mib.mib usage: snmpsim-record-commands [-h] [-v] [--quiet] [--debug {io,dsp,msgproc,secmod,mibbuild,mibview,mibinstrum,acl,proxy,app,all}] [--debug-asn1 {none,encoder,decoder,all}] [--logging-method =<syslog|file|stdout|stderr|null[:args]>]] [--log-level {debug,info,error}] [--protocol-version {1,2c}] [--community COMMUNITY] [--v3-user <STRING>] [--v3-auth-key V3_AUTH_KEY] [--v3-auth-proto {MD5,SHA,SHA224,SHA256,SHA384,SHA512,NONE}] [--v3-priv-key V3_PRIV_KEY] [--v3-priv-proto {DES,3DES,AES,AES128,AES192,AES192BLMT,AES256,AES256BLMT,NONE}] [--v3-context-engine-id V3_CONTEXT_ENGINE_ID] [--v3-context-name V3_CONTEXT_NAME] [--use-getbulk] [--getbulk-repetitions GETBULK_REPETITIONS] (--agent-udpv4-endpoint <[X.X.X.X]:NNNNN> | --agent-udpv6-endpoint <[X:X:..X]:NNNNN>) [--timeout TIMEOUT] [--retries RETRIES] [--start-object <MIB::Object|OID>] [--stop-object <MIB::Object|OID>] [--mib-source <URI|PATH>] [--destination-record-type {dump,MVC,sapwalk,snmpwalk,snmprec,snmprec.bz2}] [--output-file <FILE>] [--continue-on-errors <tolerance-level>] [--variation-modules-dir VARIATION_MODULES_DIR] [--variation-module VARIATION_MODULE] [--variation-module-options VARIATION_MODULE_OPTIONS] snmpsim-record-commands: error: one of the arguments --agent-udpv4-endpoint --agent-udpv6-endpoint is required |
|
From: Randy T. <RT...@go...> - 2020-05-11 14:45:08
|
Hi, thanks in advance:
Why does snmpsim-record-commands --mib-module require an --agent-udpv4-endpoint or --agent-udpv6-endpoint ? Is it possible to generate the .snmprec file using snmpsim-record-commands without supplying a running Agent ? ( I can use mib2dev.py to do it though. ).
/Users/rtaylor/.pyenv/versions/3.8.0/bin/snmpsim-record-commands --output-file=/tmp/public.snmprec --mib-module=/Users/rtaylor/work/Ka/pysmi_test/ka_kandu_mib.mib
usage: snmpsim-record-commands [-h] [-v] [--quiet] [--debug {io,dsp,msgproc,secmod,mibbuild,mibview,mibinstrum,acl,proxy,app,all}]
[--debug-asn1 {none,encoder,decoder,all}] [--logging-method =<syslog|file|stdout|stderr|null[:args]>]]
[--log-level {debug,info,error}] [--protocol-version {1,2c}] [--community COMMUNITY] [--v3-user <STRING>] [--v3-auth-key V3_AUTH_KEY]
[--v3-auth-proto {MD5,SHA,SHA224,SHA256,SHA384,SHA512,NONE}] [--v3-priv-key V3_PRIV_KEY]
[--v3-priv-proto {DES,3DES,AES,AES128,AES192,AES192BLMT,AES256,AES256BLMT,NONE}] [--v3-context-engine-id V3_CONTEXT_ENGINE_ID]
[--v3-context-name V3_CONTEXT_NAME] [--use-getbulk] [--getbulk-repetitions GETBULK_REPETITIONS]
(--agent-udpv4-endpoint <[X.X.X.X]:NNNNN> | --agent-udpv6-endpoint <[X:X:..X]:NNNNN>) [--timeout TIMEOUT] [--retries RETRIES]
[--start-object <MIB::Object|OID>] [--stop-object <MIB::Object|OID>] [--mib-source <URI|PATH>]
[--destination-record-type {dump,MVC,sapwalk,snmpwalk,snmprec,snmprec.bz2}] [--output-file <FILE>]
[--continue-on-errors <tolerance-level>] [--variation-modules-dir VARIATION_MODULES_DIR] [--variation-module VARIATION_MODULE]
[--variation-module-options VARIATION_MODULE_OPTIONS]
snmpsim-record-commands: error: one of the arguments --agent-udpv4-endpoint --agent-udpv6-endpoint is required
|
|
From: Randy T. <RT...@go...> - 2020-05-11 12:48:30
|
Hi, first post here for me. Thanks in advance.
My device mib textual file has the following:
systemMode OBJECT-TYPE
SYNTAX INTEGER {
init(100), -- initialization
standby(200), -- standby
sptlAcq(300), -- acquisition
track(400), -- tracking
test(600) -- test
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Current mode of device."
DEFVAL { init }
::= { systemStatus 4 }
When running mib2dev.py I get the following prompt:
2020-05-11 07:17:49,175 pysnmp: getNodeNameByOid: resolved :(1, 3, 6, 1, 4, 1, 41642, 1, 1, 1, 4) -> ('iso', 'org', 'dod', 'internet', 'private', 41642, 1, 'thinkomKanduMIB', 'systemStatus', 'systemMode').()
*** Inconsistent value: <ConstraintsIntersection object, consts <ValueRangeConstraint object, consts -2147483648, 2147483647>, <ConstraintsUnion object, consts <SingleValueConstraint object, consts 100, 200, 300, 400, 600>>> failed at: ValueConstraintError('<ConstraintsUnion object, consts <SingleValueConstraint object, consts 100, 200, 300, 400, 600>> failed at: ValueConstraintError(\'all of (<SingleValueConstraint object, consts 100, 200, 300, 400, 600>,) failed for "31"\')') at Integer32
*** See constraints and suggest a better one for:
# Scalar THINKOM-KANDU-MIB::systemMode (type Integer32)
How can I overcome this so that I do not get prompted for a better value?
Thanks in advance.
Randy
|
|
From: Ilya E. <il...@gl...> - 2019-04-04 10:37:41
|
Hi there! Perhaps you need to pass `—variation-module-dir` parameter to snmpsimd to tell it where to load the variation modules from. BTW, it’s more reliable to open GitHub issues on snmpsim repo - this mailing list is half-dead. > On 4 Apr 2019, at 11:12, CLEYET MERLE, DENIS via snmpsim-users <snm...@li...> wrote: > > Hi snmpsim users, > > I cannot succeed in running the redis variation module; I always get the message: > ERROR data error at /home/denis/snmpsim/data/redis.snmprec controller for 1.1.2: Variation module "redis" referenced but not loaded > > I also tried the subprocess variation module (using the same script given in the documentation), but got the same error: > ERROR data error at /home/denis/snmpsim/data/redis.snmprec controller for 1.3.1: Variation module "subprocess" referenced but not loaded > > For information, my .snmprec file is: > 1.1|:redis|key-spaces-id=toto,evalsha=82a02350b62b2d60d479dcf0d76c2e852e8401ef > 1.2|:redis|key-spaces-id=toto > 1.3|:subprocess|echo SNMP Context is @DATAFILE@, received request for @ORIGOID@, matched @OID@, received tag/value "@ORIGTAG@"/"@ORIGVALUE@", would return value tagged @TAG@, SET request flag is @SETFLAG@, next flag is @NEXTFLAG@, subtree flag is @SUBTREEFLAG@ > > Can anybody help? > Thanks in advance 😉 > > Denis > > <image001.png>Denis Cleyet-Merle | Architecte | Capgemini Engineering Services | +33 (0) 5 34 46 94 83 | den...@ca... <mailto:den...@ca...> > > This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. _______________________________________________ > snmpsim-users mailing list > snm...@li... <mailto:snm...@li...> > https://lists.sourceforge.net/lists/listinfo/snmpsim-users <https://lists.sourceforge.net/lists/listinfo/snmpsim-users> |
|
From: CLEYET M. D. <den...@ca...> - 2019-04-04 09:42:42
|
Hi snmpsim users, I cannot succeed in running the redis variation module; I always get the message: ERROR data error at /home/denis/snmpsim/data/redis.snmprec controller for 1.1.2: Variation module "redis" referenced but not loaded I also tried the subprocess variation module (using the same script given in the documentation), but got the same error: ERROR data error at /home/denis/snmpsim/data/redis.snmprec controller for 1.3.1: Variation module "subprocess" referenced but not loaded For information, my .snmprec file is: 1.1|:redis|key-spaces-id=toto,evalsha=82a02350b62b2d60d479dcf0d76c2e852e8401ef 1.2|:redis|key-spaces-id=toto 1.3|:subprocess|echo SNMP Context is @DATAFILE@, received request for @ORIGOID@, matched @OID@, received tag/value "@ORIGTAG@"/"@ORIGVALUE@", would return value tagged @TAG@, SET request flag is @SETFLAG@, next flag is @NEXTFLAG@, subtree flag is @SUBTREEFLAG@ Can anybody help? Thanks in advance 😉 Denis [cid:image001.png@01D34CFD.C8CA62E0]Denis Cleyet-Merle | Architecte | Capgemini Engineering Services | +33 (0) 5 34 46 94 83 | den...@ca...<mailto:den...@ca...> This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. |
|
From: Moreno M. I. <im...@in...> - 2019-03-06 19:47:49
|
Hi SNMP sim team,
First of all, congratulations for the great tool you have developed. It's fantastic.
I'm currently trying to use the notification variation module and I'm having problems.
I have defined in my snmprec the next entry:
1.3.6.1.4.1.8173.1.6868.6868.1.2.2.4.0|2:notification|op=get,version=3,user=user1,authkey=xxxxx,privkey=xxxxx,host=10.10.10.15,ntftype=inform,trapoid=1.3.6.1.4.1.8173.1.6868.6868.1.2.0.1,value=3
When I perform an snmpget over 1.3.6.1.4.1.8173.1.6868.6868.1.2.2.4.0 I get the next response:
Request var-binds: 1.3.6.1.4.1.8173.1.6868.6868.1.2.2.4.0=<>, flags: EXACT, GET
notification: binding to local address 10.10.10.15
notification: sending Notification to UsmUserData(userName='user1', authKey=<AUTHKEY>, privKey=<PRIVKEY>, authProtocol=(1, 3, 6, 1, 6, 3, 10, 1, 1, 2), privProtocol=(1, 3, 6, 1, 6, 3, 10, 1, 2, 2), securityEngineId='<DEFAULT>', securityName=' user1') with credentials UdpTransportTarget(('10.10.10.15', 162), timeout=1, retries=5, tagList='7357720805900813358')
Response var-binds: 1.3.6.1.4.1.8173.1.6868.6868.1.2.2.4.0=<3>
Shutting down variation modules:
Variation module "notification" shutdown OK
Variation module "sql" shutdown OK
Variation module "redis" shutdown OK
Variation module "numeric" shutdown OK
Variation module "subprocess" shutdown OK
Variation module "delay" shutdown OK
Variation module "multiplex" shutdown OK
Variation module "error" shutdown OK
Variation module "writecache" shutdown OK
Process terminated
Traceback (most recent call last):;
File "/usr/lib/python2.6/site-packages/snmpsim-0.4.4-py2.6.egg/EGG-INFO/scripts/snmpsimd.py", line 1436, in <module>; transportDispatcher.runDispatcher();
File "/usr/lib/python2.6/site-packages/pysnmp-4.4.6-py2.6.egg/pysnmp/carrier/asyncore/dispatch.py", line 51, in runDispatcher; self.handleTimerTick(time());
File "/usr/lib/python2.6/site-packages/pysnmp-4.4.6-py2.6.egg/pysnmp/carrier/base.py", line 171, in handleTimerTick; timerCallable(timeNow);
File "/usr/lib/python2.6/site-packages/pysnmp-4.4.6-py2.6.egg/pysnmp/carrier/base.py", line 18, in __call__; self.__cbFun(timeNow);
File "/usr/lib/python2.6/site-packages/pysnmp-4.4.6-py2.6.egg/pysnmp/entity/engine.py", line 156, in __receiveTimerTickCbFun; self.msgAndPduDsp.receiveTimerTick(self, timeNow);
File "/usr/lib/python2.6/site-packages/pysnmp-4.4.6-py2.6.egg/pysnmp/proto/rfc3412.py", line 538, in receiveTimerTick; self.__cache.expire(self.__expireRequest, snmpEngine);
File "/usr/lib/python2.6/site-packages/pysnmp-4.4.6-py2.6.egg/pysnmp/proto/cache.py", line 36, in expire; if cbFun(index, cachedParams, cbCtx):;
File "/usr/lib/python2.6/site-packages/pysnmp-4.4.6-py2.6.egg/pysnmp/proto/rfc3412.py", line 533, in __expireRequest; cachedParams['cbCtx']);
File "/usr/lib/python2.6/site-packages/pysnmp-4.4.6-py2.6.egg/pysnmp/entity/rfc3413/ntforg.py", line 66, in processResponsePdu; cbFun(snmpEngine, sendRequestHandle, errorIndication, None, cbCtx);
File "/usr/lib/python2.6/site-packages/pysnmp-4.4.6-py2.6.egg/pysnmp/entity/rfc3413/ntforg.py", line 197, in processResponseVarBinds; cbCtx);
File "/usr/lib/python2.6/site-packages/pysnmp-4.4.6-py2.6.egg/pysnmp/hlapi/asyncore/ntforg.py", line 130, in __cbFun; ), cbCtx;
TypeError: _cbFun() takes exactly 6 arguments (7 given);
And the agent is killed.
I tried also configuring it with default set operation, and the result was the same.
Am I doing something wrong? Is there any problem for this variation module in order to work with python 2.6?
Please if more information is needed, ask me.
Thank you very much.
Best regards
[indracompany]<http://www.indracompany.com/>
Iván Moreno Muñoz
Indra ATM European Programmes
Ctra de Loeches, 9
28850 Torrejón de Ardoz, Madrid. España
T +34 91 627 37 48 - M +34 686 523 389
indracompany.com<http://www.indracompany.com>
[https://www.indracompany.com/mail/tacon_Indra_(64x36).png]
________________________________
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.
Evite imprimir este mensaje si no es estrictamente necesario.
This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address.
Avoid printing this message if it is not absolutely necessary.
|
|
From: Mayans R. M. L. <mlm...@in...> - 2018-12-14 10:30:34
|
Hi Ilya, Thanks for your help. We solved the context name issue and then found a problem with the pycripto package. Now it’s all solved and working. Regards! De: Ilya Etingof <il...@gl...> Enviado el: martes, 27 de noviembre de 2018 21:25 Para: Mayans Rocha, Micaela Lucia <mlm...@in...> CC: snm...@li... Asunto: Re: [snmpsim-users] Timeout: No Response from IP when using snmp v3 I suspect you need to specify SNMP context name that corresponds with public.snmpwalk file: snmpget -v 3 -n public -l authPriv -u simulator -a MD5 -A auctoritas -x DES -X privatus 10.51.45.2:9991 .1.3.6.1.2.1.25.2.3.1.5.1 1. http://snmplabs.com/snmpsim/addressing-agents.html#snmpv3-mode On 27 Nov 2018, at 15:16, Mayans Rocha, Micaela Lucia <mlm...@in...<mailto:mlm...@in...>> wrote: Hi, I’m having troubles when running an snmpget with a v3 query. The workflow of the issue is: - I have some devices simulated in an snmpwalk (public.snmpwalk) file in the /usr/bin/data/iacmstring2 folder. - I run the agent with the following command: /usr/bin/python /usr/bin/snmpsimd.py --agent-udpv4-endpoint=10.51.45.2:9991 --data-dir=/usr/bin/data/iacmstring2 - Then I run the snmpget with an OID: snmpget -v 3 -c public -l authPriv -u simulator -a MD5 -A auctoritas -x DES -X privatus 10.51.45.2:9991 .1.3.6.1.2.1.25.2.3.1.5.1 o The answer is always: Timeout: No Response from 10.51.45.2:9991. - But, if I run the snmpget with v2 version, I get the expected value stored in my file: snmpget -v 2c -c public 10.51.45.2:9991 .1.3.6.1.2.1.25.2.3.1.5.1 Is this a bug? Am I missing something? Thank you! ________________________________ Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente. Evite imprimir este mensaje si no es estrictamente necesario. This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address. Avoid printing this message if it is not absolutely necessary. |
|
From: Ilya E. <il...@gl...> - 2018-11-27 20:38:26
|
I suspect you need to specify SNMP context name that corresponds with public.snmpwalk file: snmpget -v 3 -n public -l authPriv -u simulator -a MD5 -A auctoritas -x DES -X privatus 10.51.45.2:9991 .1.3.6.1.2.1.25.2.3.1.5.1 1. http://snmplabs.com/snmpsim/addressing-agents.html#snmpv3-mode <http://snmplabs.com/snmpsim/addressing-agents.html#snmpv3-mode> > On 27 Nov 2018, at 15:16, Mayans Rocha, Micaela Lucia <mlm...@in...> wrote: > > Hi, > > I’m having troubles when running an snmpget with a v3 query. > > The workflow of the issue is: > > - I have some devices simulated in an snmpwalk (public.snmpwalk) file in the /usr/bin/data/iacmstring2 folder. > - I run the agent with the following command: /usr/bin/python /usr/bin/snmpsimd.py --agent-udpv4-endpoint=10.51.45.2:9991 --data-dir=/usr/bin/data/iacmstring2 > - Then I run the snmpget with an OID: snmpget -v 3 -c public -l authPriv -u simulator -a MD5 -A auctoritas -x DES -X privatus 10.51.45.2:9991 .1.3.6.1.2.1.25.2.3.1.5.1 > o The answer is always: Timeout: No Response from 10.51.45.2:9991. > - But, if I run the snmpget with v2 version, I get the expected value stored in my file: snmpget -v 2c -c public 10.51.45.2:9991 .1.3.6.1.2.1.25.2.3.1.5.1 > > Is this a bug? Am I missing something? > > Thank you! |
|
From: Mayans R. M. L. <mlm...@in...> - 2018-11-27 14:32:17
|
Hi, I'm having troubles when running an snmpget with a v3 query. The workflow of the issue is: - I have some devices simulated in an snmpwalk (public.snmpwalk) file in the /usr/bin/data/iacmstring2 folder. - I run the agent with the following command: /usr/bin/python /usr/bin/snmpsimd.py --agent-udpv4-endpoint=10.51.45.2:9991 --data-dir=/usr/bin/data/iacmstring2 - Then I run the snmpget with an OID: snmpget -v 3 -c public -l authPriv -u simulator -a MD5 -A auctoritas -x DES -X privatus 10.51.45.2:9991 .1.3.6.1.2.1.25.2.3.1.5.1 o The answer is always: Timeout: No Response from 10.51.45.2:9991. - But, if I run the snmpget with v2 version, I get the expected value stored in my file: snmpget -v 2c -c public 10.51.45.2:9991 .1.3.6.1.2.1.25.2.3.1.5.1 Is this a bug? Am I missing something? Thank you! ________________________________ Este correo electr?nico y, en su caso, cualquier fichero anexo al mismo, contiene informaci?n de car?cter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilizaci?n, divulgaci?n y/o copia sin autorizaci?n est? prohibida en virtud de la legislaci?n vigente. En el caso de haber recibido este correo electr?nico por error, se ruega notificar inmediatamente esta circunstancia mediante reenv?o a la direcci?n electr?nica del remitente. Evite imprimir este mensaje si no es estrictamente necesario. This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address. Avoid printing this message if it is not absolutely necessary. |
|
From: Ilya E. <il...@gl...> - 2018-05-28 07:01:57
|
Hi Perumal, By the lexicographic mode, do they mean that the OIDs in the table are ordered and thus always increasing? When walking snmpsim (with snmpwalk for example), do you see the OIDs are not ordered as SNMP4j says? You can also look at the snmpsim log to capture the exchange with SNMP4j. Let’s may be move to a GitHub issue eventually…? > On 28 May 2018, at 06:18, veera <vee...@ya...> wrote: > > Hi Ilya, > > I upgraded my SNMP version to SNM4j .I am getting an error from SNM4j library while reading table. it says that the SNMP agent has not implemented table in lexicographic order . > > Here SNMP agents are simulated endpoints via snmpsim.Please let me know if any changes need to be done on simulator to update table lexicographic order. > > Thanks & Regards, > Perumal S > > |
|
From: veera <vee...@ya...> - 2018-05-28 04:22:36
|
Hi Ilya, I upgraded my SNMP version to SNM4j .I am getting an error from SNM4j library while reading table. it says that the SNMP agent has not implemented table in lexicographic order . Here SNMP agents are simulated endpoints via snmpsim.Please let me know if any changes need to be done on simulator to update table lexicographic order. Thanks & Regards,Perumal S |
|
From: 陳健新 <gre...@gm...> - 2017-12-28 10:06:22
|
Hi Ilya, Thank you for your advice. I think it was the massive queries of SNMP get next which is transformed to "select oid from TABLE WHERE oid > 'XXX' order by oid limit 1" that killed the performance. What I tried is changing the spacing of oid digit from 10 to 5 so that the oid length became shorter and can be accommodated by a char(255) type. And I added the index to oid column. Now it performed well when simulating 85 instances. When simulating more than that, it became overload. But it's still a big improvement. The original spacing of oid was a way too long and indexing isn't performing effectively to text type. Best regards, James On 19 December 2017 at 14:34, 陳健新 <gre...@gm...> wrote: > Hi snmpsim team, > > I was trying to simulate 64 instances of snmp simulator agents using SQL > module. > Each instance listen on an address. > The command I used is like: > Instance one: > snmpsimd.py --agent-udpv4-endpoint=10.10.20.11:161 --process-user=user\ > --process-group=group --v2c-arch --transport-id-offset=1 > --logging-method=file:snmp.log1\ > --variation-module-options=sql:dbtype:MySQLdb,host:127.0. > 0.1,port:3306,user:snmpsim,passwd:snmpsim,db:snmpsim > Instance two: > snmpsimd.py --agent-udpv4-endpoint=10.10.20.12:161 --process-user=user\ > --process-group=group --v2c-arch --transport-id-offset=2 > --logging-method=file:snmp.log2\ > --variation-module-options=sql:dbtype:MySQLdb,host:127.0. > 0.1,port:3306,user:snmpsim,passwd:snmpsim,db:snmpsim > . > . > . > > > But the response time was so slow that almost got 2 seconds. > > 2017-12-19 14:20:10,755 snmpsimd: Request var-binds: > 1.3.6.1.2.1.31.1.1.1.11.10=<0>, flags: NEXT, GET > 2017-12-19 14:20:12,515 snmpsimd: Response var-binds: > 1.3.6.1.2.1.31.1.1.1.11.11=<0> > 2017-12-19 14:20:12,515 snmpsimd: Request var-binds: > 1.3.6.1.2.1.31.1.1.1.11.11=<0>, flags: NEXT, GET > 2017-12-19 14:20:14,185 snmpsimd: Response var-binds: > 1.3.6.1.2.1.31.1.1.1.11.12=<0> > 2017-12-19 14:20:14,186 snmpsimd: Request var-binds: > 1.3.6.1.2.1.31.1.1.1.11.12=<0>, flags: NEXT, GET > 2017-12-19 14:20:15,262 snmpsimd: Response var-binds: > 1.3.6.1.2.1.31.1.1.1.11.13=<0> > 2017-12-19 14:20:15,262 snmpsimd: Request var-binds: > 1.3.6.1.2.1.31.1.1.1.11.13=<0>, flags: NEXT, GET > 2017-12-19 14:20:17,425 snmpsimd: Response var-binds: > 1.3.6.1.2.1.31.1.1.1.11.14=<0> > 2017-12-19 14:20:17,425 snmpsimd: Request var-binds: > 1.3.6.1.2.1.31.1.1.1.11.14=<0>, flags: NEXT, GET > > Is there any way to improve the performance? > Thank you in advance. > > > Best regards, > James > |
|
From: Ilya E. <il...@gl...> - 2017-12-19 09:02:31
|
Hi James, What happens if you run just a single instance of snmpsimd? Is it still that slow? Does it have anyhthing to do with the load/memory of the machine you are running it? What would happen if you switch from SQL to a plain file? Will it make it faster? What if you shrink your DB, will it help? Finally, could it have something to do with SQL table locking? What if you give each of your instances its own copy of sqlite DB file? Those are just troubleshooting ideas to try out. The tool should definitely respond much faster. You can judge from the public snmpsimd instance running in a minimal VM at `demo.snmplabs.com`. On 12/19/2017 07:34 AM, 陳健新 wrote: > Hi snmpsim team, > > I was trying to simulate 64 instances of snmp simulator agents using SQL > module. > Each instance listen on an address. > The command I used is like: > Instance one: > snmpsimd.py --agent-udpv4-endpoint=10.10.20.11:161 > <http://10.10.20.11:161> --process-user=user\ > --process-group=group --v2c-arch --transport-id-offset=1 > --logging-method=file:snmp.log1\ > > --variation-module-options=sql:dbtype:MySQLdb,host:127.0.0.1,port:3306,user:snmpsim,passwd:snmpsim,db:snmpsim > Instance two: > snmpsimd.py --agent-udpv4-endpoint=10.10.20.12:161 > <http://10.10.20.12:161> --process-user=user\ > --process-group=group --v2c-arch --transport-id-offset=2 > --logging-method=file:snmp.log2\ > > --variation-module-options=sql:dbtype:MySQLdb,host:127.0.0.1,port:3306,user:snmpsim,passwd:snmpsim,db:snmpsim > . > . > . > > > But the response time was so slow that almost got 2 seconds. > > 2017-12-19 14:20:10,755 snmpsimd: Request var-binds: > 1.3.6.1.2.1.31.1.1.1.11.10=<0>, flags: NEXT, GET > 2017-12-19 14:20:12,515 snmpsimd: Response var-binds: > 1.3.6.1.2.1.31.1.1.1.11.11=<0> > 2017-12-19 14:20:12,515 snmpsimd: Request var-binds: > 1.3.6.1.2.1.31.1.1.1.11.11=<0>, flags: NEXT, GET > 2017-12-19 14:20:14,185 snmpsimd: Response var-binds: > 1.3.6.1.2.1.31.1.1.1.11.12=<0> > 2017-12-19 14:20:14,186 snmpsimd: Request var-binds: > 1.3.6.1.2.1.31.1.1.1.11.12=<0>, flags: NEXT, GET > 2017-12-19 14:20:15,262 snmpsimd: Response var-binds: > 1.3.6.1.2.1.31.1.1.1.11.13=<0> > 2017-12-19 14:20:15,262 snmpsimd: Request var-binds: > 1.3.6.1.2.1.31.1.1.1.11.13=<0>, flags: NEXT, GET > 2017-12-19 14:20:17,425 snmpsimd: Response var-binds: > 1.3.6.1.2.1.31.1.1.1.11.14=<0> > 2017-12-19 14:20:17,425 snmpsimd: Request var-binds: > 1.3.6.1.2.1.31.1.1.1.11.14=<0>, flags: NEXT, GET > > Is there any way to improve the performance? > Thank you in advance. > > > Best regards, > James |
|
From: 陳健新 <gre...@gm...> - 2017-12-19 06:34:46
|
Hi snmpsim team, I was trying to simulate 64 instances of snmp simulator agents using SQL module. Each instance listen on an address. The command I used is like: Instance one: snmpsimd.py --agent-udpv4-endpoint=10.10.20.11:161 --process-user=user\ --process-group=group --v2c-arch --transport-id-offset=1 --logging-method=file:snmp.log1\ --variation-module-options=sql:dbtype:MySQLdb,host:127.0.0.1,port:3306,user:snmpsim,passwd:snmpsim,db:snmpsim Instance two: snmpsimd.py --agent-udpv4-endpoint=10.10.20.12:161 --process-user=user\ --process-group=group --v2c-arch --transport-id-offset=2 --logging-method=file:snmp.log2\ --variation-module-options=sql:dbtype:MySQLdb,host:127.0.0.1,port:3306,user:snmpsim,passwd:snmpsim,db:snmpsim . . . But the response time was so slow that almost got 2 seconds. 2017-12-19 14:20:10,755 snmpsimd: Request var-binds: 1.3.6.1.2.1.31.1.1.1.11.10=<0>, flags: NEXT, GET 2017-12-19 14:20:12,515 snmpsimd: Response var-binds: 1.3.6.1.2.1.31.1.1.1.11.11=<0> 2017-12-19 14:20:12,515 snmpsimd: Request var-binds: 1.3.6.1.2.1.31.1.1.1.11.11=<0>, flags: NEXT, GET 2017-12-19 14:20:14,185 snmpsimd: Response var-binds: 1.3.6.1.2.1.31.1.1.1.11.12=<0> 2017-12-19 14:20:14,186 snmpsimd: Request var-binds: 1.3.6.1.2.1.31.1.1.1.11.12=<0>, flags: NEXT, GET 2017-12-19 14:20:15,262 snmpsimd: Response var-binds: 1.3.6.1.2.1.31.1.1.1.11.13=<0> 2017-12-19 14:20:15,262 snmpsimd: Request var-binds: 1.3.6.1.2.1.31.1.1.1.11.13=<0>, flags: NEXT, GET 2017-12-19 14:20:17,425 snmpsimd: Response var-binds: 1.3.6.1.2.1.31.1.1.1.11.14=<0> 2017-12-19 14:20:17,425 snmpsimd: Request var-binds: 1.3.6.1.2.1.31.1.1.1.11.14=<0>, flags: NEXT, GET Is there any way to improve the performance? Thank you in advance. Best regards, James |
|
From: Ilya E. <il...@gl...> - 2017-10-10 19:08:33
|
Hi Perumal, That should not work the way you described! Can you check snmpfwd.py’s log — which file gets looked up if you query it with the community string ’test1’? What happens - is it that some other .snmprec file gets picked up? Or it just fails? Under the example ‘data’ directory shipped with snmpsim package you can see a couple of .snmprec files sitting right at the root directory. How your test1.snmprec is different from those? > On 9 Oct 2017, at 15:36, veera <vee...@ya...> wrote: > > Thanks IIya for the quick response. > > Yes, thats the query with community string .If i configure my community string as recorded/<filename> ,where i have kept .rec files it works. > However,if i keep the .rec files under /data & provide community string as just <filename> .it doesn't work. > How to specify the community string ? > Ex: file name is test1.snmprec is kept under /data folder > > Please clarify > > Regards, > Perumal S > > > On Monday, 9 October 2017 6:50 PM, Ilya Etingof <il...@gl...> wrote: > > > > Hi Perumal, > > There is no such requirement. You can place .snmprec files anywhere on > the file system. The path (under the data directory) only influences > SNMP community name and SNMPv3 context name you use when query SNMP > object from that .snmprec file. > > To troubleshoot you may want to run snmpsimd with --debug=... flag enabled. > > On 10/09/2017 03:13 PM, veera wrote: > > Hi Ilya, > > > > Is it mandatory or hardcoded to have the snapshot files in > > recorded/<filename> for centos ? > > Tried keeping the snapshot file in /data location , it's not able to > > fetch the files whereas under recorded/filename works. > > Could you please clarify? > > > > Thanks & Regards, > > Perumal S > > > > > > On Friday, 23 December 2016 4:41 PM, Ilya Etingof <il...@gl... <mailto:il...@gl...>> wrote: > > > > > > > > Not yet. > > > > At what stack level IoT simulation would make most sense? CoAP/MQTT/DDS? > > What's the most desirable simulation scenario? > > > > On 12/07/2016 04:47 AM, veera wrote: > >> Hi ilya, > >> > >> I have tried snmpsim to simulate endpoints.similarly do you have > >> simulator for IOT devices ? > >> > >> Thanks & Regards, > >> Perumal S > > > > > > |
|
From: veera <vee...@ya...> - 2017-10-09 13:36:31
|
Thanks IIya for the quick response.
Yes, thats the query with community string .If i configure my community string as recorded/<filename> ,where i have kept .rec files it works.However,if i keep the .rec files under /data & provide community string as just <filename> .it doesn't work.How to specify the community string ? Ex: file name is test1.snmprec is kept under /data folder
Please clarify
Regards,Perumal S
On Monday, 9 October 2017 6:50 PM, Ilya Etingof <il...@gl...> wrote:
Hi Perumal,
There is no such requirement. You can place .snmprec files anywhere on
the file system. The path (under the data directory) only influences
SNMP community name and SNMPv3 context name you use when query SNMP
object from that .snmprec file.
To troubleshoot you may want to run snmpsimd with --debug=... flag enabled.
On 10/09/2017 03:13 PM, veera wrote:
> Hi Ilya,
>
> Is it mandatory or hardcoded to have the snapshot files in
> recorded/<filename> for centos ?
> Tried keeping the snapshot file in /data location , it's not able to
> fetch the files whereas under recorded/filename works.
> Could you please clarify?
>
> Thanks & Regards,
> Perumal S
>
>
> On Friday, 23 December 2016 4:41 PM, Ilya Etingof <il...@gl...> wrote:
>
>
>
> Not yet.
>
> At what stack level IoT simulation would make most sense? CoAP/MQTT/DDS?
> What's the most desirable simulation scenario?
>
> On 12/07/2016 04:47 AM, veera wrote:
>> Hi ilya,
>>
>> I have tried snmpsim to simulate endpoints.similarly do you have
>> simulator for IOT devices ?
>>
>> Thanks & Regards,
>> Perumal S
>
>
|
|
From: Ilya E. <il...@gl...> - 2017-10-09 13:20:45
|
Hi Perumal, There is no such requirement. You can place .snmprec files anywhere on the file system. The path (under the data directory) only influences SNMP community name and SNMPv3 context name you use when query SNMP object from that .snmprec file. To troubleshoot you may want to run snmpsimd with --debug=... flag enabled. On 10/09/2017 03:13 PM, veera wrote: > Hi Ilya, > > Is it mandatory or hardcoded to have the snapshot files in > recorded/<filename> for centos ? > Tried keeping the snapshot file in /data location , it's not able to > fetch the files whereas under recorded/filename works. > Could you please clarify? > > Thanks & Regards, > Perumal S > > > On Friday, 23 December 2016 4:41 PM, Ilya Etingof <il...@gl...> wrote: > > > > Not yet. > > At what stack level IoT simulation would make most sense? CoAP/MQTT/DDS? > What's the most desirable simulation scenario? > > On 12/07/2016 04:47 AM, veera wrote: >> Hi ilya, >> >> I have tried snmpsim to simulate endpoints.similarly do you have >> simulator for IOT devices ? >> >> Thanks & Regards, >> Perumal S > > |
|
From: veera <vee...@ya...> - 2017-10-09 13:13:38
|
Hi Ilya,
Is it mandatory or hardcoded to have the snapshot files in recorded/<filename> for centos ?Tried keeping the snapshot file in /data location , it's not able to fetch the files whereas under recorded/filename works.Could you please clarify?
Thanks & Regards,Perumal S
On Friday, 23 December 2016 4:41 PM, Ilya Etingof <il...@gl...> wrote:
Not yet.
At what stack level IoT simulation would make most sense? CoAP/MQTT/DDS?
What's the most desirable simulation scenario?
On 12/07/2016 04:47 AM, veera wrote:
> Hi ilya,
>
> I have tried snmpsim to simulate endpoints.similarly do you have
> simulator for IOT devices ?
>
> Thanks & Regards,
> Perumal S
|
|
From: Ilya E. <il...@gl...> - 2017-07-10 08:47:30
|
Hi Vidya,
Having individual .snmprec file per each snmpsimd process is a way to
go. I thought it should be easy to autogenerate a bunch of files with
varying constants. Is there a problem with such design?
As you said, the existing variation modules are more about varying the
data they produce and I do not think any of the existing variation
modules would be of huge help here.
You raised a good point though! I'm thinking of a template-based
variation module which would be called from .snmprec:
1.3.6.1.2.1.1.5.0|:template|file=sysname.tmpl
and render values from a template like this:
"Router{{ process_id }}"
Where template variables would be taken from the context of the query
e.g. SNMP data, process & host info etc.
Would that make sense?
On 07/10/2017 04:39 AM, Vidya Nadig wrote:
> Hi,
>
> I have a setup running 100 snmpsimd processes to simulate 100 endpoints.
> They all read from the same snmprec file. How do I make a different (but
> specific) value to be returned for each of these 100 processes ? Do I
> need to have 100 different snmprec files ? Variation modules will just
> vary data, but will not return fixed data per snmpsimd process right ?
>
>
> For ex: this is one of the lines from snmprec file:
> 1.3.6.1.2.1.1.5.0|4|Router1
>
> Each of my snmpsimd processes should be mapped to a sysName like
> Router1, Router2,...Router100. Can you please let me know how to do this ?
>
> -Vidya.
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> snmpsim-users mailing list
> snm...@li...
> https://lists.sourceforge.net/lists/listinfo/snmpsim-users
>
|
|
From: Vidya N. <mai...@gm...> - 2017-07-10 02:40:23
|
Hi, I have a setup running 100 snmpsimd processes to simulate 100 endpoints. They all read from the same snmprec file. How do I make a different (but specific) value to be returned for each of these 100 processes ? Do I need to have 100 different snmprec files ? Variation modules will just vary data, but will not return fixed data per snmpsimd process right ? For ex: this is one of the lines from snmprec file: 1.3.6.1.2.1.1.5.0|4|Router1 Each of my snmpsimd processes should be mapped to a sysName like Router1, Router2,...Router100. Can you please let me know how to do this ? -Vidya. |
|
From: Ilya E. <il...@gl...> - 2017-07-06 23:19:46
|
So the problem here is that you have unnecessary zeros in sub-OIDs like
this:
1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.56.01
This breaks indexing so you need to change it to:
1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.56.1
You can do mass change with the 'datafile.py' tool like this:
$ datafile.py --input-file=data/hp_perf.snmprec --output-file
data/hp_perf_fixed.snmprec --ignore-broken-records
By way of running this tool you will also figure the other issue:
# Skipping broken record <1.3.6.1.2.1.31.1.1.1.1.313|2|
Which is because you have integer type (2) initialized with a string
value ("Fa3/0/321").
On 07/05/2017 03:44 PM, Prateek Goyal wrote:
> Hi Ilya,
>
>
> It did not work. I deleted all ‘.dbm’ files present on my system. Still I am getting same error. I am attaching the data file here.
>
>
> Thanks,
> Prateek
>
> On 7/4/17, 6:05 PM, "Ilya Etingof" <il...@gl...> wrote:
>
>
> Hi Prateek,
>
> My immediate guess is that the .dbm files got out of sync with the
> .snmprec file.
>
> The logic behind this is that to be able to find an OID in a potentially
> very large .snmprec file we maintain a OID -> file-offset index which
> takes shape of a .dbm file. Every time you run snmpsimd, it goes over
> .snmprec files and builds .dbm files for each of .snmprec file unless
> the .dbm file already exists and it's not older than corresponding
> .snmprec file.
>
> Does it make sense?
>
> So my suggestion would be to drop all .dbm files you have (as reported
> by snmpsimd on startup) and let them to reappear.
>
> Let me know if it helps or not?
>
>
> On 07/03/2017 10:44 AM, Prateek Goyal wrote:
> > Hi Ilya,
> >
> >
> >
> >
> >
> > When do we get Index Broken” error exactly?
> >
> >
> >
> > I have following data in my snmrec file. And when I query it using
> > snmpwalk, I get index error:
> >
> >
> >
> > 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.98|2|33
> >
> > 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.99|2|34
> >
> > 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.56.00|2|35 ßAt this line I get
> > index broken?
> >
> >
> >
> >
> >
> > Request var-binds: 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.99=<>, flags:
> > NEXT, GET
> >
> > data error for /Users/prateekgoyal/.snmpsim/data/hp_perf.snmprec
> > controller at 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.56.0, index broken?
> >
> > Response var-binds: 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.99=<No more
> > variables left in this MIB View>
> >
> >
> >
> >
> >
> > However, this is in increasing pattern, as I think snmpsimd expects.
> >
> >
> >
> >
> >
> > Thanks,
> >
> > Prateek
> >
>
>
|
|
From: Prateek G. <gpr...@pu...> - 2017-07-05 14:19:17
|
Hi Ilya,
It did not work. I deleted all ‘.dbm’ files present on my system. Still I am getting same error. I am attaching the data file here.
Thanks,
Prateek
On 7/4/17, 6:05 PM, "Ilya Etingof" <il...@gl...> wrote:
Hi Prateek,
My immediate guess is that the .dbm files got out of sync with the
.snmprec file.
The logic behind this is that to be able to find an OID in a potentially
very large .snmprec file we maintain a OID -> file-offset index which
takes shape of a .dbm file. Every time you run snmpsimd, it goes over
.snmprec files and builds .dbm files for each of .snmprec file unless
the .dbm file already exists and it's not older than corresponding
.snmprec file.
Does it make sense?
So my suggestion would be to drop all .dbm files you have (as reported
by snmpsimd on startup) and let them to reappear.
Let me know if it helps or not?
On 07/03/2017 10:44 AM, Prateek Goyal wrote:
> Hi Ilya,
>
>
>
>
>
> When do we get Index Broken” error exactly?
>
>
>
> I have following data in my snmrec file. And when I query it using
> snmpwalk, I get index error:
>
>
>
> 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.98|2|33
>
> 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.99|2|34
>
> 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.56.00|2|35 ßAt this line I get
> index broken?
>
>
>
>
>
> Request var-binds: 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.99=<>, flags:
> NEXT, GET
>
> data error for /Users/prateekgoyal/.snmpsim/data/hp_perf.snmprec
> controller at 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.56.0, index broken?
>
> Response var-binds: 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.99=<No more
> variables left in this MIB View>
>
>
>
>
>
> However, this is in increasing pattern, as I think snmpsimd expects.
>
>
>
>
>
> Thanks,
>
> Prateek
>
|
|
From: Ilya E. <il...@gl...> - 2017-07-04 12:35:38
|
Hi Prateek, My immediate guess is that the .dbm files got out of sync with the .snmprec file. The logic behind this is that to be able to find an OID in a potentially very large .snmprec file we maintain a OID -> file-offset index which takes shape of a .dbm file. Every time you run snmpsimd, it goes over .snmprec files and builds .dbm files for each of .snmprec file unless the .dbm file already exists and it's not older than corresponding .snmprec file. Does it make sense? So my suggestion would be to drop all .dbm files you have (as reported by snmpsimd on startup) and let them to reappear. Let me know if it helps or not? On 07/03/2017 10:44 AM, Prateek Goyal wrote: > Hi Ilya, > > > > > > When do we get Index Broken” error exactly? > > > > I have following data in my snmrec file. And when I query it using > snmpwalk, I get index error: > > > > 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.98|2|33 > > 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.99|2|34 > > 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.56.00|2|35 ßAt this line I get > index broken? > > > > > > Request var-binds: 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.99=<>, flags: > NEXT, GET > > data error for /Users/prateekgoyal/.snmpsim/data/hp_perf.snmprec > controller at 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.56.0, index broken? > > Response var-binds: 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.99=<No more > variables left in this MIB View> > > > > > > However, this is in increasing pattern, as I think snmpsimd expects. > > > > > > Thanks, > > Prateek > |
|
From: Prateek G. <gpr...@pu...> - 2017-07-03 08:44:44
|
Hi Ilya, When do we get Index Broken” error exactly? I have following data in my snmrec file. And when I query it using snmpwalk, I get index error: 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.98|2|33 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.99|2|34 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.56.00|2|35 <-- At this line I get index broken? Request var-binds: 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.99=<>, flags: NEXT, GET data error for /Users/prateekgoyal/.snmpsim/data/hp_perf.snmprec controller at 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.56.0, index broken? Response var-binds: 1.3.6.1.2.1.17.4.3.1.2.11.22.33.44.55.99=<No more variables left in this MIB View> However, this is in increasing pattern, as I think snmpsimd expects. Thanks, Prateek |
|
From: Prateek G. <gpr...@pu...> - 2017-06-30 10:03:40
|
Sure. But I need some time as today I have some other urgent task. I’ll try it out and let you know by tomorrow evening.
Is that okay?
On 6/30/17, 3:32 PM, "Ilya Etingof" <il...@gl...> wrote:
I think notification.py is the only changed required. Could you please
try it and let me know if it does the job?
On 06/30/2017 11:55 AM, Prateek Goyal wrote:
> Ok Thanks. Now I can see the change. Did it need other file changes also or only notification.py? Just curious.
>
> On 6/30/17, 3:23 PM, "Ilya Etingof" <il...@gl...> wrote:
>
> Oh, right, I pushed from a wrong place. Here you go:
>
> https://github.com/etingof/snmpsim/tree/notification-hexstring
>
> > On 30 Jun 2017, at 06:55, Prateek Goyal <gpr...@pu...> wrote:
> >
> > Hi Ilya,
> >
> > I don’t see any changes in scripts for hexstring support. Am I missing anything. As per my understanding, the changes are required in variation/notification.py. But this file does not contain any changes related to this.
> > Please suggest.
> >
> > Thanks,
> > Prateek
> >
> > On 6/29/17, 4:22 PM, "Ilya Etingof" <il...@gl...> wrote:
> >
> >
> > Hi Prateek,
> >
> > Sorry for delay!
> >
> > Can you please check out and test the snmpsim branch [1] where hexstring
> > support is implemented (via the 'h' tag)?
> >
> > Thank you!
> >
> > 1. https://github.com/etingof/snmpsim/tree/notification-hexstring
> >
> > On 06/16/2017 10:18 AM, Prateek Goyal wrote:
> >> Hi,
> >>
> >>
> >>
> >>
> >>
> >> I want to simulate mac notification traps. There is one variable as MAC
> >> address in variable bindings. hat is supposed to be a hexadecimal value.
> >> But I am unable to find a tag for hexadecimal values.
> >>
> >>
> >>
> >> I used something like this in my snmprec data file:
> >>
> >>
> >>
> >> varbinds=1.3.6.1.4.1.11.2.14.11.5.1.66.1.7:s:d49a200e0e04
> >>
> >> But it is at my trap receiver, it is coverted to something like this:
> >>
> >> 643439613230
> >>
> >> can anyone please guide me, how can I specify this value.
> >>
> >>
> >>
> >> I considered notification.py file, it also does not have any tag for hex
> >> values.
> >>
> >>
> >>
> >> In grammar/snmprec.py also there is nothing for hexcadecimal.
> >>
> >>
> >>
> >>
> >>
> >> Thanks,
> >>
> >> Prateek
> >>
> >
> >
>
>
>
|