The RobotConfigurer.sh script is designed to create the initial robot.cfg file from the key values specified in the initial nms-robot-vars.cfg answer file.
It is not designed to update the robot.cfg file with subsequent changes made to the nms-robot-vars.cfg answer file
After the robot is installed using the Linux/UNIX robot native installer, the RobotConfigurer.sh expects the robot.cfg file to be a copy of a template with entries similar to the following:
<controller>
domain = ~DOMAIN
robotip = ~ROBOTIP
robotname = ~ROBOTNAME
robotip_alias = ~ROBOTIP_ALIAS
controller_port = ~CONTROLLER_PORT
spooler_port = ~SPOOLER_PORT
hubip = ~HUBIP
hub_dns_name = ~HUB_DNS_NAME
hubdomain = ~HUBDOMAIN
first_probe_port = ~FIRST_PROBE_PORT
:
:
:
</controller>
The first time you successfully build the robot.cfg file with the RobotConfigurer.sh script, all of the key values in the robot.cfg file are replaced with the corresponding key values from the nms-robot-vars.cfg answer file.
Any key that does not have a value in the nms-robot-vars.cfg answer file is deleted from the final robot.cfg file as well.
For example, if your initial nms-robot-vars.cfg answer file did not contain the following entry:
first_probe_port=48000
The first time you execute the RobotConfigurer.sh script, the following line is deleted from the robot.cfg file:
first_probe_port = ~FIRST_PROBE_PORT
If you add, first_probe_port=48000, to the nms-robot-vars.cfg answer file and run the RobotConfigurer.sh script a second time, the robot.cfg file will not change because this script is looking to replace ~FIRST_PROBE_PORT, with the value extracted from the answer file.
The same is true it you try to change the value of any key in the initial nms-robot-vars.cfg answer file to a new value.
The RobotConfigurer.sh script will not update the value in the robot.cfg file if you execute the script another time, because it is looking for a
~<KEY_NAME> entry in the current robot.cfg file to update.
IMPORTANT:
Once the RobotConfigurer.sh script is successfully executed and a robot.cfg file is built from a nms-robot-vars.cfg answer file, the only way to make changes to the robot.cfg is to manually edit the file using a text editor, or make changes to the controller probe through the GUI and/or via Raw Configure window.