Seedfile import fails
search cancel

Seedfile import fails

book

Article ID: 402339

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

When user tried to discover the device from CLI using sm_tpmgr utility, import of seedfile fails with error as shown below:

[<USERNAME>@<HOSTNAME> ~]# sm_tpmgr -s <APM_DOMAIN> --seed=/opt/seedfile.txt
sm_tpmgr: import topology from seed file /opt/seedfile.txt

ASL-W-ERROR_RULE_SOURCE-While executing rule set '/opt/InCharge/IP/smarts/rules/discovery/ic-topomanager.asl'
 ASL-ERROR_ACTION-While executing action at:
 ASL-CALL_STACK_RULE-   RuleName: IMPORT_FROM_FILE, Line: 158
 ASL-CALL_STACK_RULE-   RuleName: START, Line: 105
 ASL-ERROR_INVOKE-While attempting to invoke operation 'importFromFile' of object 'MR_Object::ICF-TopologyManager'
 SVIF-EREMOTE-Remote error occurred.  See exception chain for detail.
 MR-CALL_ON_NULL_OBJECT-Tried to make a call on a NULL repository object; in file "/work/redcurrent/DMT-10.1.12.0/16/smarts/ga/linux_rhAS50-x86-64/optimize/GA_Driver.h" at line 637

Environment

Smarts - 10.1.x/24.3.x

Cause

LANG=de_DE.UTF-8 was enforced which can be verified from domain log however Smarts is expecting en_US.

When LANGE setting is not specified in runcmd_env.sh file then Smarts would pick it from local System i.e from /etc/locale.conf.

Resolution

  • Stop the problematic service.
  • Rename or move the RPS. 
  • Edit runcmd_env.sh as
    • Open runcmd_env.sh using sm_edit. 
    • Add LANG=en_US
    • Save the file. 
  • Start the service.
  • Seedfile import should work without issue.