Smarts SAM: Setting UseDNSLookupInThisDomain to TRUE in ICS_OperationalOptions.import does not work
search cancel

Smarts SAM: Setting UseDNSLookupInThisDomain to TRUE in ICS_OperationalOptions.import does not work

book

Article ID: 331629

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:


Cannot set UseDNSLookupInThisDomain=TRUE in the active Smarts SAM environment

Setting UseDNSLookupInThisDomain=TRUE in the ICS_OperationalOptions.import file (/local/conf/ics/ICS_OperationalOptions.import) does not appear to work. When setting the variable UseDNSLookupInThisDomain = TRUE in the ../local/conf/ics/ICS_OperationalOptions.import, the following is observed:
 
ICS_OperationalOptions::ICS-OperationalOptions
{
UseDNSLookupInThisDomain = TRUE
}
 
SAM Domain restarted.
 
Howvever, dmctl command output still shows this var as being set to FALSE as shown in the following:
 
./dmctl -s UATCDL_SAM9990 get ICS_OperationalOptions::ICS-OperationalOptions
 
Properties of ICS_OperationalOptions::ICS-OperationalOptions:
CreationClassName = ICS_OperationalOptions
DNSDomainNames = 
Description = 
DisableUnderlyingDomainsQuery = FALSE
DisplayName = 
FullyQualifiedDomainNameSuffixes = 
Name = ICS-OperationalOptions
ServiceName = 
UnderlyingDomainsOrder = 
UseDNSDomainsInDNSLookup = FALSE
UseDNSLookupInThisDomain = FALSE
UseDNSLookupInUnderlyingDomains = FALSE
 


Environment

VMware Smart Assurance - SMARTS

Cause

Repository restore is overwriting the value set for the UseDNSLookupInThisDomain attribute. The creation of the ICS_OperationalOptions Object and the UseDNSLookupInThisDomain attribute (and other attributes) being set by the ICS_OperationalOptions import file is done before the rps file is restored. Because ICS_OperationalOptions Object is also part of the rps file, the repository restore actually overwrites all the values set for the ICS_OperationalOptions object.

Resolution

To work around this issue, you can process the import file after the repository restore as follows:
 
  1. Rename the ICS_OperationalOptions.import file to ICS_OperationalOptions.importlast
  2. Restart the repository server. 
 
Renaming this file with the *.importlast extension will allow the value for the UseDNSLookupInThisDomain attribute in the file to update after the repository is restored, so that the value will apply in the active environment.