1825050 Members
3173 Online
109678 Solutions
New Discussion

trapgen issue

 
SAFA_1
New Member

trapgen issue

Hello,

I am using the trapgen utility in order to generate traps to accomplish the goal of my project.

in fact, i wanted to use the trapgen with the option -f.

the mytrapfile .txt look like :
-d xx.xx.xx.xx:162
-c public
-o 1.3.6.1.4.1.2636.8.1.2.1
-i xx.xx.xx.xx
-g 6
-s 3
-v 1.3.6.1.4.1.2636.8.1.1.1.1 INTEGER 0
-v 1.3.6.1.4.1.2636.8.1.1.1.2 INTEGER 0
-v 1.3.6.1.4.1.2636.8.1.1.1.7 INTEGER 0
-v 1.3.6.1.4.1.2636.8.1.2.1.1.3.1.1.2 STRING jnxDbpPeerId

when i perform the trapgen as : ./trapgen -d xx.xx.xx.xx -f mytrapfile.txt -p a, i get the result below:
Length: 44
Version: SNMPv1
Community: public
Generic: 6
Specific: 1
TimeStamp: 117 days 04h:43m:36s (1012581658)
SenderIP: 10.186.8.36
SenderOID: 1.3.6.1.4.1.2854

as you see, the result desn't look like my "mytrapfile .txt " file.

and if i perform the trapgen like : ./trapgen -d xx.xx.xx.xx -p a, i get the result below:
Length: 44
Version: SNMPv1
Community: public
Generic: 6
Specific: 1
TimeStamp: 117 days 04h:43m:36s (1012581658)
SenderIP: 10.186.8.36
SenderOID: 1.3.6.1.4.1.2854

If i compare the result , i saw that they are equal, which mean that the trapgen don't take in consideration my input file with the option -f !!!!!

Could you please help me to resolve this issue ?

P.S1: i need the solution as soon as possible please, it is very urgent !!
P.S2: i remplaced the real IP adress wwith x in the mail
1 REPLY 1
OlivierV
Trusted Contributor

Re: trapgen issue

Hi SAFA.
I have copied the same information in a file and ran :
TrapGen.exe -f test.txt -p a
The result is :
Length: 140
Version: SNMPv1
Community: public
Generic: 6
Specific: 3
TimeStamp: 1 days 21h:10m:51s (16265100)
SenderIP: xx.yy.zz.aa
SenderOID: 1.3.6.1.4.1.2636.8.1.2.1
Varbind Number 1
Oid: 1.3.6.1.4.1.2636.8.1.1.1.1
Type: Integer
Data: 0
Varbind Number 2
Oid: 1.3.6.1.4.1.2636.8.1.1.1.2
Type: Integer
Data: 0
Varbind Number 3
Oid: 1.3.6.1.4.1.2636.8.1.1.1.7
Type: Integer
Data: 0
Varbind Number 4
Oid: 1.3.6.1.4.1.2636.8.1.2.1.1.3.1.1.2
Type: String
Data: jnxDbpPeerId

Tht looks correct to me. What is the version of tragen your are using ? Mine is 2.8