Backing up agent configurations


Warning

Note

The operator can backup the configuration files of agents using the rsmconf.exe –download command line utility.

This script downloads a configuration file from a specified agent that can further be uploaded to the same agent or some other agent to affect recovery functions.

Detailed notes on the rsmconf.exe utility are included in the BMC Defender Agent for Windows Manual. (This manual is available from the home screen of the BMC Defender Server, after user login.)

The agent configuration files reside at the physical location of the managed platforms, and the data is not immediately available for backup at the BMC Defender Server. If the BMC Defender Server site has many strategic agent configurations, it might be useful to create a small batch file to backup these agents. 

Information
Example

You can create a simple batch file as follows that copies the agent configurations to an Agent-Backup folder. This script could be launched via the BMC Defender Server Scheduler routine at periodic intervals (such as each day).


REM: # BACKUP_AGENTS.bat
REM: # Backup strategic CorreLog Agent configurations.


if not exist..\Agent-Backup mkdir ..\Agent-Backup


rsmconf.exe –download 1.1.1.1 > ..\Agent-Backup\1_1_1_1.bak
rsmconf.exe –download 1.1.1.2 > ..\Agent-Backup\1_1_1_2.bak
rsmconf.exe –download 1.1.1.3 > ..\Agent-Backup\1_1_1_3.bak
rsmconf.exe –download 1.1.1.4 > ..\Agent-Backup\1_1_1_4.bak


echo Agent Backup completed.


REM # Agent config backup complete. No further action is required.
REM # Finished

The preceding script can be edited to supply the list of strategic agents, and placed in the system directory of the BMC Defender Server. Then, the script can be periodically executed (such as with the scheduler function) to copy the agent configurations from remote agents to the local machine. The Agent-Backup folder then retains the latest copies of the agent programs.

Agent configurations can then be restored (if needed) by uploading the values back to the agents using the rsmconf.exe –upload option (or using the Directly Edit Remote Agent Config link on the BMC Defender Server platform.)

The preceding script can be improved to first download the agent configuration to a temporary file, then copy the files into the Agent-Backup folder once all downloads are successful. (This provides a hedge against overwriting a backup with an empty file when the agent is not accessible for some reason.)

Executing the rsmconf.exe program with no arguments provides brief but complete help on the usage of this program that can also be used to check configuration data.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Command Center for Security 5.9