Ionix SAM/Smarts SAM: How can I remove the varbind when sending a trap using ACT_SNMP?
search cancel

Ionix SAM/Smarts SAM: How can I remove the varbind when sending a trap using ACT_SNMP?

book

Article ID: 303880

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - SMARTS

Resolution

How can I remove the Ionix SAM/Smarts SAM varbind when sending a trap using ACT_SNMP?



To remove the Ionix SAM/Smarts SAM varbind when sending a trap using ACT_SNMP, you must upgrade to Ionix SAM 8.1.2 or later. Ionix SAM 8.1.2 adds the useSmTrapAddr flag which can be used to determine if the trap will add Smarts varbind on to the trap.  By default this is set to TRUE. The following sections show the operation syntax for using the useSmTrapAddr flag and an example of the code. 

Operation syntax
<void> traps <structure set>targets <string>generic <int>specific <object>varbinds <string>enterprise <boolean>useSmTrapAddr

Operation example
The following shows an example of the code required to remove the Smarts varbind:

targets = list();
targets += list("192.x.x.x",numeric("444"),"V1","","","","","","","");

snmp->traps(targets, "enterpriseSpecific", 0 , varbinds, ".1.3.6.1.4.1.9.1.400", FALSE) ? LOG, STOP;