Getting "TRAP-W-BADSEEDFILE...ENOENT-No such file or directory" errors when starting up the SAM Trap Adapter
search cancel

Getting "TRAP-W-BADSEEDFILE...ENOENT-No such file or directory" errors when starting up the SAM Trap Adapter

book

Article ID: 304025

calendar_today

Updated On:

Products

VMware Smart Assurance VMware Telco Cloud Service Assurance

Issue/Introduction

Receiving the following error in Smarts IP after starting SAM trap adapter whilst using the --seed argument in the startup command:

[09-May-2011 8:40:24 AM+567ms Central Daylight Time] t@7428
TRAP-W-BADSEEDFILE-While trying to locate credentials file.
CI-ESPEC-While attempting to locate file with search path
"f:\Smarts\IP704\IP\smarts\local\conf\;f:\Smarts\IP704\IP\smarts\local\ con
f\;f:\Smarts\IP704\IP\smarts\conf\;o:\opt\dev\foo\smarts\local\conf\;o:\op
t\dev\foo\smarts\conf\", intermediate path "trapd\" and final component
"seedfile"
<SYS>-ENOENT-No such file or directory

 

Environment

Smarts 10.1.X / 2.X

Cause

The --seed argument should be used if you want to receive SNMPv3 traps.

If SNMPv3 traps are required, then the seedfile must exist in the directory mentioned in the error. The above symptoms can occur if the seedfile does not exist in the directory or if the path to the seedfile is incorrectly specified in the startup command.

Resolution

To verify and fix this issue, please follow the below steps:

  • Do one of the following:
    • If you do not want to receive SNMPv3 traps, remove the --seed=seedfile argument from the startup command and run the command again. Do not complete the remaining steps in this fix.
    •  If SNMPv3 traps are required, see the Smarts Service Assurance Manager Adapter Platform User Guide section on properly configuring and using the SNMP Trap Adapter to receive SNMPv3 traps. Go to the next step in this fix.
       
  • Verify the startup command used for the trap receiver:
     
  • Check if the drive (f: in above problem symptom) is a mapped share or physical drive on the box. If it is a share, use the below in the start-up command (because the service may not see the mapped drive letters):
\\host\sharename\pathtoseedfile\seedfile

 

  • If SNMPv3 traps are required, use --seed argument:

    --seed=<seedfile name>: Get SNMPv3/USM credentials from the seed file.
    

     
  • Ensure that the seedfile exists in the specified directory. Copy the seedfile to the location from where the trap adapter was started (either IP/SAM). In the above problem symptom, it specifies IP location, so you would copy the seedfile to one of the following locations:
     
    IP_BASE_DIR\smarts\local\conf\trapd
    IP_BASE_DIR\smarts\conf

 

  • Restart the SNMP trap exploder.