Description:
By default, CA Message Queuing (CAM) will bind to the IP address that is the highest in the order.
Sometimes it is necessary to force CAM to bind to a different IP but changing the binding order is not acceptable.
Solution:
To force CAM to bind to a different IP address
- Determine what IP address CAM is currently binding to by issuing the command:
camping -a <hostname>
The hostname can be the local server hostname. The camping output shows the IP address that CAM is using.
- If you need to have CAM use another IP address, run the command:
camsave persist
This will create a cam.cfg file located for Windows under %CAI_MSQ%
Find the location for UNIX by issuing the command:
more /etc/catngcampath
- Open the file cam.cfg and add the following under the *ROUTING section:
*ROUTING
forward 127.0.0.1= <local IP address to use>
Example:
forward 127.0.0.1=192.168.1.56
- Save and close the file.
- Recycle the CA Message Queuing Server service.
- Run the camping - a test again:
camping -a <hostname>
If the correct IP address is displayed, you are finished.
- If the correct IP address is not showing, open the file cam.cfg again and edit the *ROUTING line as follows:
forward 127.0.0.1=<local IP address to use><local IP again>
Example:
forward 127.0.0.1=192.168.1.56 192.168.1.56
- Save and close the file cam.cfg.
- Recycle the CA Message Queuing Server service.
- Rerun the camping -a test and verify that the correct address is now in use:
camping -a <hostname>