User configuration class More...
#include <UserConfig.h>
Public Member Functions | |
UserConfig (initializeCredentialsType initializeCredentials=initializeCredentialsType()) | |
UserConfig (const std::string &conffile, initializeCredentialsType initializeCredentials=initializeCredentialsType(), bool loadSysConfig=true) | |
UserConfig (const std::string &conffile, const std::string &jfile, initializeCredentialsType initializeCredentials=initializeCredentialsType(), bool loadSysConfig=true) | |
UserConfig (const long int &ptraddr) | |
bool | InitializeCredentials (initializeCredentialsType initializeCredentials) |
bool | CredentialsFound () const |
bool | LoadConfigurationFile (const std::string &conffile, bool ignoreJobListFile=true) |
bool | SaveToFile (const std::string &filename) const |
void | ApplyToConfig (BaseConfig &ccfg) const |
operator bool () const | |
bool | operator! () const |
bool | JobListFile (const std::string &path) |
const std::string & | JobListFile () const |
bool | Timeout (int newTimeout) |
int | Timeout () const |
bool | Verbosity (const std::string &newVerbosity) |
const std::string & | Verbosity () const |
bool | Broker (const std::string &name) |
bool | Broker (const std::string &name, const std::string &argument) |
const std::pair< std::string, std::string > & | Broker () const |
bool | Bartender (const std::vector< URL > &urls) |
void | AddBartender (const URL &url) |
const std::vector< URL > & | Bartender () const |
bool | VOMSESPath (const std::string &path) |
const std::string & | VOMSESPath () |
bool | UserName (const std::string &name) |
const std::string & | UserName () const |
bool | Password (const std::string &newPassword) |
const std::string & | Password () const |
bool | ProxyPath (const std::string &newProxyPath) |
const std::string & | ProxyPath () const |
bool | CertificatePath (const std::string &newCertificatePath) |
const std::string & | CertificatePath () const |
bool | KeyPath (const std::string &newKeyPath) |
const std::string & | KeyPath () const |
bool | KeyPassword (const std::string &newKeyPassword) |
const std::string & | KeyPassword () const |
bool | KeySize (int newKeySize) |
int | KeySize () const |
bool | CACertificatePath (const std::string &newCACertificatePath) |
const std::string & | CACertificatePath () const |
bool | CACertificatesDirectory (const std::string &newCACertificatesDirectory) |
const std::string & | CACertificatesDirectory () const |
bool | CertificateLifeTime (const Period &newCertificateLifeTime) |
const Period & | CertificateLifeTime () const |
bool | SLCS (const URL &newSLCS) |
const URL & | SLCS () const |
bool | StoreDirectory (const std::string &newStoreDirectory) |
const std::string & | StoreDirectory () const |
bool | JobDownloadDirectory (const std::string &newDownloadDirectory) |
const std::string & | JobDownloadDirectory () const |
bool | IdPName (const std::string &name) |
const std::string & | IdPName () const |
bool | OverlayFile (const std::string &path) |
const std::string & | OverlayFile () const |
bool | UtilsDirPath (const std::string &dir) |
const std::string & | UtilsDirPath () const |
void | SetUser (const User &u) |
const User & | GetUser () const |
Static Public Attributes | |
static const std::string | ARCUSERDIRECTORY |
static const std::string | SYSCONFIG |
static const std::string | SYSCONFIGARCLOC |
static const std::string | DEFAULTCONFIG |
static const std::string | EXAMPLECONFIG |
static const int | DEFAULT_TIMEOUT = 20 |
static const std::string | DEFAULT_BROKER |
User configuration class
This class provides a container for a selection of various attributes/parameters which can be configured to needs of the user, and can be read by implementing instances or programs. The class can be used in two ways. One can create a object from a configuration file, or simply set the desired attributes by using the setter method, associated with every setable attribute. The list of attributes which can be configured in this class are:
where the first term is the name of the attribute used in the configuration file, and the second term is the associated setter method (for more information about a given attribute see the description of the setter method).
The configuration file should have a INI-style format and the IniConfig class will thus be used to parse the file. The above mentioned attributes should be placed in the common section. Another section is also valid in the configuration file, which is the alias section. Here it is possible to define aliases representing one or multiple services. These aliases can be used in the AddServices(const std::list<std::string>&, ServiceType) and AddServices(const std::list<std::string>&, const std::list<std::string>&, ServiceType) methods.
The UserConfig class also provides a method InitializeCredentials() for locating user credentials by searching in different standard locations. The CredentialsFound() method can be used to test if locating the credentials succeeded.
Arc::UserConfig::UserConfig | ( | initializeCredentialsType | initializeCredentials = initializeCredentialsType() |
) |
Create a UserConfig object.
The UserConfig object created by this constructor initializes only default values, and if specified by the initializeCredentials boolean credentials will be tried initialized using the InitializeCredentials() method. The object is only non-valid if initialization of credentials fails which can be checked with the operator bool() method.
initializeCredentials | is a optional boolean indicating if the InitializeCredentials() method should be invoked, the default is true . |
Arc::UserConfig::UserConfig | ( | const std::string & | conffile, | |
initializeCredentialsType | initializeCredentials = initializeCredentialsType() , |
|||
bool | loadSysConfig = true | |||
) |
Create a UserConfig object.
The UserConfig object created by this constructor will, if specified by the loadSysConfig boolean, first try to load the system configuration file by invoking the LoadConfigurationFile() method, and if this fails a WARNING is reported. Then the configuration file passed will be tried loaded using the before mentioned method, and if this fails an ERROR is reported, and the created object will be non-valid. Note that if the passed file path is empty the example configuration will be tried copied to the default configuration file path specified by DEFAULTCONFIG. If the example file cannot be copied one or more WARNING messages will be reported and no configration will be loaded. If loading the configurations file succeeded and if initializeCredentials is true
then credentials will be initialized using the InitializeCredentials() method, and if no valid credentials are found the created object will be non-valid.
conffile | is the path to a INI-configuration file. | |
initializeCredentials | is a boolean indicating if credentials should be initialized, the default is true . | |
loadSysConfig | is a boolean indicating if the system configuration file should be loaded aswell, the default is true . |
Arc::UserConfig::UserConfig | ( | const std::string & | conffile, | |
const std::string & | jfile, | |||
initializeCredentialsType | initializeCredentials = initializeCredentialsType() , |
|||
bool | loadSysConfig = true | |||
) |
Create a UserConfig object.
The UserConfig object created by this constructor does only differ from the UserConfig(const std::string&, bool, bool) constructor in that it is possible to pass the path of the job list file directly to this constructor. If the job list file joblistfile is empty, the behaviour of this constructor is exactly the same as the before mentioned, otherwise the job list file will be initilized by invoking the setter method JobListFile(const std::string&). If it fails the created object will be non-valid, otherwise the specified configuration file conffile will be loaded with the ignoreJobListFile argument set to true
.
conffile | is the path to a INI-configuration file | |
jfile | is the path to a (non-)existing job list file. | |
initializeCredentials | is a boolean indicating if credentials should be initialized, the default is true . | |
loadSysConfig | is a boolean indicating if the system configuration file should be loaded aswell, the default is true . |
Arc::UserConfig::UserConfig | ( | const long int & | ptraddr | ) |
Language binding constructor.
The passed long int should be a pointer address to a UserConfig object, and this address is then casted into this UserConfig object.
ptraddr | is an memory address to a UserConfig object. |
void Arc::UserConfig::AddBartender | ( | const URL & | url | ) | [inline] |
Set bartenders, used to contact Chelonia.
Takes as input a Bartender URL and adds this to the list of bartenders.
url | is a URL to be added to the list of bartenders. |
void Arc::UserConfig::ApplyToConfig | ( | BaseConfig & | ccfg | ) | const |
Apply credentials to BaseConfig.
This methods sets the BaseConfig credentials to the credentials contained in this object. It also passes user defined configuration overlay if any.
ccfg | a BaseConfig object which will configured with the credentials of this object. |
const std::vector<URL>& Arc::UserConfig::Bartender | ( | ) | const [inline] |
Get bartenders.
Returns a list of Bartender URLs
bool Arc::UserConfig::Bartender | ( | const std::vector< URL > & | urls | ) | [inline] |
Set bartenders, used to contact Chelonia.
Takes as input a vector of Bartender URLs.
The attribute associated with this setter method is 'bartender'.
urls | is a list of URL object to be set as bartenders. |
true
. const std::pair<std::string, std::string>& Arc::UserConfig::Broker | ( | ) | const [inline] |
Get the broker and corresponding arguments.
The returned pair contains the broker name as the first component and the argument as the second.
bool Arc::UserConfig::Broker | ( | const std::string & | name, | |
const std::string & | argument | |||
) | [inline] |
Set broker to use in target matching.
As opposed to the Broker(const std::string&) method this method sets broker name and arguments directly from the passed two arguments.
Two attributes are associated with this setter method 'brokername' and 'brokerarguments'.
name | is the name of the broker. | |
argument | is the arguments of the broker. |
true
. bool Arc::UserConfig::Broker | ( | const std::string & | name | ) |
Set broker to use in target matching.
The string passed to this method should be in the format:
where the <name> is the name of the broker and cannot contain any ':', and the optional <argument> should contain arguments which should be passed to the broker.
Two attributes are associated with this setter method 'brokername' and 'brokerarguments'.
name | the broker name and argument specified in the format given above. |
true
. const std::string& Arc::UserConfig::CACertificatePath | ( | ) | const [inline] |
Get path to CA-certificate.
Retrieve the path to the file containing CA-certificate. This configuration parameter is deprecated.
bool Arc::UserConfig::CACertificatePath | ( | const std::string & | newCACertificatePath | ) | [inline] |
Set CA-certificate path.
The path to the file containing CA-certificate will be set when calling this method. This configuration parameter is deprecated - use CACertificatesDirectory instead. Only arcslcs uses it.
The attribute associated with this setter method is 'cacertificatepath'.
newCACertificatePath | is the path to the CA-certificate. |
true
. const std::string& Arc::UserConfig::CACertificatesDirectory | ( | ) | const [inline] |
Get path to CA-certificate directory.
Retrieve the path to the CA-certificate directory.
bool Arc::UserConfig::CACertificatesDirectory | ( | const std::string & | newCACertificatesDirectory | ) | [inline] |
Set path to CA-certificate directory.
The path to the directory containing CA-certificates will be set when calling this method. Note that the InitializeCredentials() method will also try to set this path, by searching in different locations.
The attribute associated with this setter method is 'cacertificatesdirectory'.
newCACertificatesDirectory | is the path to the CA-certificate directory. |
true
. const Period& Arc::UserConfig::CertificateLifeTime | ( | ) | const [inline] |
Get certificate life time.
Gets lifetime of user certificate which will be obtained from Short Lived Credentials Service.
bool Arc::UserConfig::CertificateLifeTime | ( | const Period & | newCertificateLifeTime | ) | [inline] |
Set certificate life time.
Sets lifetime of user certificate which will be obtained from Short Lived Credentials Service.
The attribute associated with this setter method is 'certificatelifetime'.
newCertificateLifeTime | is the life time of a certificate, as a Period object. |
true
. const std::string& Arc::UserConfig::CertificatePath | ( | ) | const [inline] |
Get path to certificate.
The path to the cerficate is returned when invoking this method.
bool Arc::UserConfig::CertificatePath | ( | const std::string & | newCertificatePath | ) | [inline] |
Set path to certificate.
The path to user certificate will be set by this method. The path to the correcsponding key can be set with the KeyPath(const std::string&) method. Note that the InitializeCredentials() method will also try to set this path, by searching in different locations.
The attribute associated with this setter method is 'certificatepath'.
newCertificatePath | is the path to the new certificate. |
true
. bool Arc::UserConfig::CredentialsFound | ( | ) | const [inline] |
Validate credential location.
Valid credentials consists of a combination of a path to existing CA-certificate directory and either a path to existing proxy or a path to existing user key/certificate pair. If valid credentials are found this method returns true
, otherwise false
is returned.
true
if valid credentials are found, otherwise false
. const User& Arc::UserConfig::GetUser | ( | ) | const [inline] |
Get User for filesystem access.
const std::string& Arc::UserConfig::IdPName | ( | ) | const [inline] |
Get IdP name.
Gets Identity Provider name (Shibboleth) to which user belongs.
bool Arc::UserConfig::IdPName | ( | const std::string & | name | ) | [inline] |
Set IdP name.
Sets Identity Provider name (Shibboleth) to which user belongs. It is used for contacting Short Lived Certificate Service.
The attribute associated with this setter method is 'idpname'.
name | is the new IdP name. |
true
. bool Arc::UserConfig::InitializeCredentials | ( | initializeCredentialsType | initializeCredentials | ) |
Initialize user credentials.
The location of the user credentials will be tried located when calling this method and stored internally when found. The method searches in different locations. Depending on value of initializeCredentials this method behaves differently. Following is an explanation for RequireCredentials. For less strict values see information below. First the user proxy or the user key/certificate pair is tried located in the following order:
Along with the proxy and key/certificate pair, the path of the directory containing CA certificates is also located. The presence of directory will be checked in the following order and first found is accepted:
It is an error if none of the directories above exist.
In case of initializeCredentials == TryCredentials method behaves same way like in case RequireCredentials except it does not report errors through its Logger object and does not return false.
If NotTryCredentials is used method does not check for presence of credentials. It behaves like if corresponding files are always present.
And in case of SkipCredentials method does nothing.
All options with SkipCA* prefix behaves similar to those without prefix except the path of the directory containing CA certificates is completely ignored.
const std::string& Arc::UserConfig::JobDownloadDirectory | ( | ) | const [inline] |
Get download directory.
returns directory which will be used to download the job directory using arcget command.
The attribute associated with the method is 'jobdownloaddirectory'.
bool Arc::UserConfig::JobDownloadDirectory | ( | const std::string & | newDownloadDirectory | ) | [inline] |
Set download directory.
Sets directory which will be used to download the job directory using arcget command.
The attribute associated with this setter method is 'jobdownloaddirectory'.
newDownloadDirectory | is the path to the download directory. |
true
. const std::string& Arc::UserConfig::JobListFile | ( | ) | const [inline] |
Get a reference to the path of the job list file.
The job list file is used to store and fetch information about submitted computing jobs to computing services. This method will return the path to the specified job list file.
bool Arc::UserConfig::JobListFile | ( | const std::string & | path | ) |
Set path to job list file.
The method takes a path to a file which will be used as the job list file for storing and reading job information. If the specified path path does not exist a empty job list file will be tried created. If creating the job list file in any way fails false will be returned and a ERROR message will be reported. Otherwise true is returned. If the directory containing the file does not exist, it will be tried created. The method will also return false if the file is not a regular file.
The attribute associated with this setter method is 'joblist'.
path | the path to the job list file. |
const std::string& Arc::UserConfig::KeyPassword | ( | ) | const [inline] |
Get password for generated key.
Get password to be used to encode private key of credentials obtained from Short Lived Credentials Service.
bool Arc::UserConfig::KeyPassword | ( | const std::string & | newKeyPassword | ) | [inline] |
Set password for generated key.
Set password to be used to encode private key of credentials obtained from Short Lived Credentials Service.
The attribute associated with this setter method is 'keypassword'.
newKeyPassword | is the new password to the key. |
true
. const std::string& Arc::UserConfig::KeyPath | ( | ) | const [inline] |
Get path to key.
The path to the key is returned when invoking this method.
bool Arc::UserConfig::KeyPath | ( | const std::string & | newKeyPath | ) | [inline] |
Set path to key.
The path to user key will be set by this method. The path to the corresponding certificate can be set with the CertificatePath(const std::string&) method. Note that the InitializeCredentials() method will also try to set this path, by searching in different locations.
The attribute associated with this setter method is 'keypath'.
newKeyPath | is the path to the new key. |
true
. int Arc::UserConfig::KeySize | ( | ) | const [inline] |
Get key size.
Get size/strengt of private key of credentials obtained from Short Lived Credentials Service.
bool Arc::UserConfig::KeySize | ( | int | newKeySize | ) | [inline] |
Set key size.
Set size/strengt of private key of credentials obtained from Short Lived Credentials Service.
The attribute associated with this setter method is 'keysize'.
newKeySize | is the size, an an integer, of the key. |
true
. bool Arc::UserConfig::LoadConfigurationFile | ( | const std::string & | conffile, | |
bool | ignoreJobListFile = true | |||
) |
Load specified configuration file.
The configuration file passed is parsed by this method by using the IniConfig class. If the parsing is unsuccessful a WARNING is reported.
The format of the configuration file should follow that of INI, and every attribute present in the file is only allowed once, if otherwise a WARNING will be reported. The file can contain at most two sections, one named common and the other name alias. If other sections exist a WARNING will be reported. Only the following attributes is allowed in the common section of the configuration file:
where the method in parentheses is the associated setter method. If other attributes exist in the common section a WARNING will be reported for each of these attributes. In the alias section aliases can be defined, and should represent a selection of services. The alias can then refered to by input to the AddServices(const std::list<std::string>&, ServiceType) and AddServices(const std::list<std::string>&, const std::list<std::string>&, ServiceType) methods. An alias can not contain any of the characters '.', ':', ' ' or '\t' and should be defined as follows:
where <alias_name> is the name of the defined alias, <service_type> is the service type in lower case, <flavour> is the type of middleware plugin to use, <service_url> is the URL which should be used to contact the service and <alias_ref> is another defined alias. The parsed aliases will be stored internally and resolved when needed. If a alias already exist, and another alias with the same name is parsed then this other alias will overwrite the existing alias.
conffile | is the path to the configuration file. | |
ignoreJobListFile | is a optional boolean which indicates whether the joblistfile attribute in the configuration file should be ignored. Default is to ignored it (true ). |
true
is returned, otherwise false
is returned. Arc::UserConfig::operator bool | ( | void | ) | const [inline] |
Check for validity.
The validity of an object created from this class can be checked using this casting operator. An object is valid if the constructor did not encounter any errors.
bool Arc::UserConfig::operator! | ( | void | ) | const [inline] |
const std::string& Arc::UserConfig::OverlayFile | ( | ) | const [inline] |
Get path to configuration overlay file.
bool Arc::UserConfig::OverlayFile | ( | const std::string & | path | ) | [inline] |
Set path to configuration overlay file.
Content of specified file is a backdoor to configuration XML generated from information stored in this class. The content of file is passed to BaseConfig class in ApplyToConfig(BaseConfig&) then merged with internal configuration XML representation. This feature is meant for quick prototyping/testing/tuning of functionality without rewriting code. It is meant for developers and most users won't need it.
The attribute associated with this setter method is 'overlayfile'.
path | is the new overlay file path. |
true
. const std::string& Arc::UserConfig::Password | ( | ) | const [inline] |
Get password.
Get password which is used for requesting credentials from Short Lived Credentials Service.
bool Arc::UserConfig::Password | ( | const std::string & | newPassword | ) | [inline] |
Set password.
Set password which is used for requesting credentials from Short Lived Credentials Service.
The attribute associated with this setter method is 'password'.
newPassword | is the new password to set. |
const std::string& Arc::UserConfig::ProxyPath | ( | ) | const [inline] |
Get path to user proxy.
Retrieve path to user proxy.
bool Arc::UserConfig::ProxyPath | ( | const std::string & | newProxyPath | ) | [inline] |
Set path to user proxy.
This method will set the path of the user proxy. Note that the InitializeCredentials() method will also try to set this path, by searching in different locations.
The attribute associated with this setter method is 'proxypath'
newProxyPath | is the path to a user proxy. |
true
. bool Arc::UserConfig::SaveToFile | ( | const std::string & | filename | ) | const |
Save to INI file.
This method will save the object data as a INI file. The saved file can be loaded with the LoadConfigurationFile method.
filename | the name of the file which the data will be saved to. |
false
if unable to get handle on file, otherwise true
is returned. void Arc::UserConfig::SetUser | ( | const User & | u | ) | [inline] |
const URL& Arc::UserConfig::SLCS | ( | ) | const [inline] |
Get the URL to the Short Lived Certificate Service (SLCS).
bool Arc::UserConfig::SLCS | ( | const URL & | newSLCS | ) | [inline] |
Set the URL to the Short Lived Certificate Service (SLCS).
The attribute associated with this setter method is 'slcs'.
newSLCS | is the URL to the SLCS |
true
. const std::string& Arc::UserConfig::StoreDirectory | ( | ) | const [inline] |
Get store diretory.
Sets directory which is used to store credentials obtained from Short Lived Credential Servide.
bool Arc::UserConfig::StoreDirectory | ( | const std::string & | newStoreDirectory | ) | [inline] |
Set store directory.
Sets directory which will be used to store credentials obtained from Short Lived Credential Servide.
The attribute associated with this setter method is 'storedirectory'.
newStoreDirectory | is the path to the store directory. |
true
. int Arc::UserConfig::Timeout | ( | ) | const [inline] |
Get timeout.
Returns the timeout in seconds.
bool Arc::UserConfig::Timeout | ( | int | newTimeout | ) |
Set timeout.
When communicating with a service the timeout specifies how long, in seconds, the communicating instance should wait for a response. If the response have not been recieved before this period in time, the connection is typically dropped, and an error will be reported.
This method will set the timeout to the specified integer. If the passed integer is less than or equal to 0 then false
is returned and the timeout will not be set, otherwise true
is returned and the timeout will be set to the new value.
The attribute associated with this setter method is 'timeout'.
newTimeout | the new timeout value in seconds. |
false
in case newTimeout <= 0, otherwise true
. const std::string& Arc::UserConfig::UserName | ( | ) | const [inline] |
Get user-name.
Get username which is used for requesting credentials from Short Lived Credentials Service.
bool Arc::UserConfig::UserName | ( | const std::string & | name | ) | [inline] |
Set user-name for SLCS.
Set username which is used for requesting credentials from Short Lived Credentials Service.
The attribute associated with this setter method is 'username'.
name | is the name of the user. |
const std::string& Arc::UserConfig::UtilsDirPath | ( | ) | const [inline] |
Get path to directory storing utility files for DataPoints.
bool Arc::UserConfig::UtilsDirPath | ( | const std::string & | dir | ) |
Set path to directory storing utility files for DataPoints.
Some DataPoints can store information on remote services in local files. This method sets the path to the directory containing these files. For example arc* tools set it to ARCUSERDIRECTORY and A-REX sets it to the control directory. The directory is created if it does not exist.
path | is the new utils dir path. |
true
. const std::string& Arc::UserConfig::Verbosity | ( | ) | const [inline] |
Get the user selected level of verbosity.
The string representation of the verbosity level specified by the user is returned when calling this method. If the user have not specified the verbosity level the empty string will be referenced.
bool Arc::UserConfig::Verbosity | ( | const std::string & | newVerbosity | ) |
Set verbosity.
The verbosity will be set when invoking this method. If the string passed cannot be parsed into a corresponding LogLevel, using the function a WARNING is reported and false
is returned, otherwise true
is returned.
The attribute associated with this setter method is 'verbosity'.
true
in case the verbosity could be set to a allowed LogLevel, otherwise false
. const std::string& Arc::UserConfig::VOMSESPath | ( | ) |
Get path to file containing VOMS configuration.
Get path to file which contians list of VOMS services and associated configuration parameters.
bool Arc::UserConfig::VOMSESPath | ( | const std::string & | path | ) | [inline] |
Set path to file containing VOMS configuration.
Set path to file which contians list of VOMS services and associated configuration parameters needed to contact those services. It is used by arcproxy.
The attribute associated with this setter method is 'vomsserverpath'.
path | the path to VOMS configuration file |
const std::string Arc::UserConfig::ARCUSERDIRECTORY [static] |
Path to ARC user home directory.
The ARCUSERDIRECTORY variable is the path to the ARC home directory of the current user. This path is created using the User::Home() method.
const std::string Arc::UserConfig::DEFAULT_BROKER [static] |
Default broker.
The DEFAULT_BROKER specifies the name of the broker which should be used in case no broker is explicitly chosen.
const int Arc::UserConfig::DEFAULT_TIMEOUT = 20 [static] |
Default timeout in seconds.
The DEFAULT_TIMEOUT specifies interval which will be used in case no timeout interval have been explicitly specified. For a description about timeout see Timeout(int).
const std::string Arc::UserConfig::DEFAULTCONFIG [static] |
Path to default configuration file.
The DEFAULTCONFIG variable is the path to the default configuration file used in case no configuration file have been specified. The path is created from the ARCUSERDIRECTORY object.
const std::string Arc::UserConfig::EXAMPLECONFIG [static] |
Path to example configuration.
The EXAMPLECONFIG variable is the path to the example configuration file.
const std::string Arc::UserConfig::SYSCONFIG [static] |
Path to system configuration.
The SYSCONFIG variable is the path to the system configuration file. This variable is only equal to SYSCONFIGARCLOC if ARC is installed in the root (highly unlikely).
const std::string Arc::UserConfig::SYSCONFIGARCLOC [static] |
Path to system configuration at ARC location.
The SYSCONFIGARCLOC variable is the path to the system configuration file which reside at the ARC installation location.