Geetika,
As per my understanding, you are getting confused with the trap Id and the varbinds.
Below what you mentioned are not multiple/different traps. The left to the event ID is trap OID and the right to teh event ID are the OIDs that contain the varbinds. When a trap is generated, it sends the data/values in the form of varbinds.
Trap mapping is correct in AlertMap file.
1.3.6.1.4.1.22110.2.6.42 0xfff00010 1.3.6.1.4.1.22110.2.1(1,0)\
1.3.6.1.4.1.22110.2.2(2,0)
Eventdisp:
0xfff00010 A 1,0xfff00010
This will log the event temporally and will not store in DDMDB. To get it logged in DDMDB, change this to
0xfff00010 E 0 A 1,0xfff00010
Here E is used to log the event in DDMDB and 0 is the event severity. If no value is mentioned, spectrum uses "0" as default value.
Now, coming to the alarm part.
Hope, you have given the alarm title to the cause code 0xfff00010. Otherwise, you will get the alarms as "ALARM TITLE" --> In your case minor alarm as you are using the alarm severity 1..
To update/add the alarm title, use event configuration editor (Tools --> Utilities --> Event Configuration). Search for the event 0xfff00010 and update the alarm title at "Type" field on the Details panel.
Also, to display the varbinds properly in the event message, you need to have either event format file under /usr/Spectrum/custom/Events/CsEvFormat/ directory created or use the Event configuration Editor to update the event message.
Below is an example:
If you use the event format file, Navigate to /usr/Spectrum/custom/Events/CsEvFormat/
create a file as "Eventfff00010_en_US" and update the file with below content.
{d "%w- %d %m-, %Y - %T"} - Event/Trap generated from [Application Name]
[Field/Variable_Name1]: {S 1}
[Field/Variable_Name2]: {S 2}
(event [{e}])
Note: Here fill the Application name (optional), Feild/Variable_Name1 and 2 with proper text.
If you use the event configuration editor, search for event 0xfff00010 and update the event message with the above text. on the contents panel.
You are saying that, there is no alarm generated. Did you at least see the raw trap on the device events tab in spectrum?
Whenever I sent a trap it give a trap with trap occurrence will increase. Please clarify this statement.
From where are you sending the trap and what is increasing? Screenshot will help here to understand more on this and help you further.
Hope this helps.
Cheers,
Rajashekar