Arctera

Echo or print messages defined in any of the .rc file leads to failure in CPS configuration (3944034)

In Linux or UNIX, you can create .rc files (run commands files) for various utilities, which gets invoked when the utility is used.

For example:

  • All commands written in kshrc file are executed when you use /bin/ksh based scripts
  • All commands written in vimrc file are executed when you use vim editor to view or edit files

If the file kshrc file is modified to print any custom messages using echo or print, then every time a KSH based script is called, all the custom messages from the kshrc file are also printed on the console.

For CPS configurations, some KSH based scripts are executed. These scripts gather and print some information from the system. If some custom echo or print messages are already set in the kshrc file, the CPS KSH script not only prints its own output, but also prints the echo or print messages defined in the kshrc file.

This leads to inconsistent output and consequently failure in CPS configuration as it cannot parse the output as expected.

Workaround: Make sure that the .rc file does not contain any echo or print messages.

Echo or print messages defined in any of the .rc file leads to failure in CPS configuration (3944034)

In this article