Loads Event Management configuration data into the System Data Repository (SDR).
haemloadcfg [-d] [-r] loadlist_file
The haemloadcfg utility command loads Event Management configuration data into the SDR. Note that before you invoke haemloadcfg, you must ensure that the SP_NAME environment variable is set to the appropriate system partition name.
The configuration data is contained in a load list file, whose format is described by the man page for the haemloadlist file. For details on the SDR classes and attributes that you can use to specify Event Management configuration data, see RSCT Event Management Programming Guide and Reference.
To load the default Event Management configuration data for PSSP, specify the load list file as /usr/sbin/rsct/install/config/haemloadlist.
To add Event Management configuration data for other Resource Monitors, create a file in load list format and specify its name on the command.
Without any flags, the haemloadcfg command does not replace existing objects in the SDR. The data in the load list file is matched with the existing objects in the SDR based on key attributes, as follows:
Note that the way in which the haemloadcfg command handles existing SDR objects is different from the way in which the SDRCreateObjects command handles them. The SDRCreateObjects command creates a new object as long as the attributes, taken as a group, are unique.
To change a nonkey attribute of an Event Management object that already exists in the SDR, change the attribute in the load list file. Then run the haemloadcfg command using the -r flag and the name of the load list file. All objects in the SDR are replaced by matching objects in the load list file using the key attributes to match. Any unmatched objects in the load list file are added to the SDR.
To delete Event Management objects from the SDR, create a load list file with the objects to be deleted. Only the key attributes need to be specified. Then run the haemloadcfg command using the -d flag and the name of the load list file. All objects in the SDR that match objects in the load list file are deleted. No unmatched objects, if any in the load list file, are added to the SDR.
Under any circumstances, duplicate objects in the load list file, based on matches in key attributes, are ignored. However, such duplicate objects are written to standard output.
If there is configuration data present in the SDR from an earlier release, the haemloadcfg command automatically migrates the data from the old names to the new names the first time the command is invoked. After successful migration, the objects in the EM_Instance_Vector class are deleted.
Note that rvExpression and rvIndex_element are added to the definition of the EM_Resource_Variable class; rvPredicate and rvIndex_vector are still present in this class but are no longer used after migration.
For compatibility the haemloadcfg command accepts load list files using the old class and attribute names.
You must have root privilege and write access to the SDR to run this command.
You should be running on the control workstation. Before running this command, you must set the SP_NAME environment variable to the appropriate system partition name.
This command is valid in a PSSP environment only.
When the command executes successfully, it writes the following informational messages:
Reading Event Management data for partition syspar_name CDB=new_EMCDB_file_name Version=EMCDB_version_string
This command writes error messages (as necessary) to standard error.
haemloadcfg /usr/sbin/rsct/install/config/haemloadlist
haemloadcfg /usr/local/config/newrmloadlistIf nonkey attributes in this load list file are later changed, update the SDR by entering:
haemloadcfg -r /usr/local/config/newrmloadlistIf this new Resource Monitor is no longer needed, its configuration data is removed from the SDR by entering:
haemloadcfg -d /usr/local/config/newrmloadlist
Commands: haemcfg, SDRCreateObjects, SDRDeleteObjects
Files: haemloadlist
For information about the System Data Repository (SDR) classes and attributes for the Event Management configuration database, see RSCT Event Management Programming Guide and Reference