Custom file not being used by smarts IP when called from /tmp folder
search cancel

Custom file not being used by smarts IP when called from /tmp folder

book

Article ID: 304038

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:




ASL-ERROR_FILE_OPEN-Could not open rule set '/tmp/foo.asl'
A custom driver import file had the following entries in it calling foo.asl, which is located in the /tmp directory.

GA_Driver::APRR-SwitchStartPoller-Driver
{
    ReadsRulesFrom = GA_RuleSet::APRR-SwitchStartPoller-RuleSet
         { fileName = "discovery/foo.asl" }
   
    ReadsInputFrom = GA_FileFE::APRR-SwitchStartPoller-FE
    { fileName = "discovery/foo.txt" }
    waitForCompletion = TRUE
    trace = TRUE

Smarts IP was writing the following to the log files when the IP domain was started.

[15-Feb-2010 14:58:55+352ms CET] t@-200279136 InCharge Framework
ASL-W-ERROR_RULE_SOURCE-While executing rule set
    '/opt/InCharge7/aprr020//smarts/rules/import.asl'
 ASL-ERROR_ACTION-While executing action at:
 ASL-CALL_STACK_RULE-   RuleName: CALL_PARAMS, Line: 49
 ASL-CALL_STACK_RULE-   RuleName: CALL_OPERATION, Line: 34
 ASL-ERROR_INVOKE-While attempting to invoke operation 'start' of object
    'GA_Driver::APRR-SwitchStartPoller-Driver'
 ASL-ERROR_INIT_FRONTEND-While initializing front-end
 ASL-ERROR_FILEFE_OPEN-Could not open input file 'discovery/foo.asl'
 CI-ESPECP-While attempting to locate file with search path
    "discovery/foo.asl"
 <SYS>-ENOENT-No such file or directory


Environment

VMware Smart Assurance - SMARTS

Cause

The custom file is not being used by Smarts IP when called from the /tmp folder.

Resolution

The search path for the rule must made known to the env variable SM_SITEMOD. Add "/tmp" in the SM_SITEMOD.   SM_SITEMOD This variable provides a search list that InCharge software uses to locate files. This list is used to find files that users can, and in some cases must, modify to use InCharge at their site. Such files include configuration files, ASL rulesets, and scripts. The components of the list are separated by colons (:) on UNIX and semicolons (;) on Windows. The default value of SM_SITEMOD is BASEDIR/smarts/local:BASEDIR/smarts.