How to pass the DCM_ID when installing the Data Collector using sudo
search cancel

How to pass the DCM_ID when installing the Data Collector using sudo

book

Article ID: 138990

calendar_today

Updated On:

Products

CA Performance Management Network Observability

Issue/Introduction

How to pass the DCM_ID when installing the Data Collector using sudo

We are migrating the Data Collector and use a silent install. How can we reuse the DCM_ID in the silent install process?

Environment

All supported DX NetOps Performance Management releases

Resolution

When using sudo you cannot set the DCM_ID using export DCM_ID=<DCMID> then run install.bin as the variable will be lost when sudo is run.
 
You must pass the DCM_ID on the command line before install.bin is called.
 
For example in a standard install run it might look like this.
 
sudo DCM_ID=<ID> ./install.bin
 
In a silent install run it might look like this.
 
sudo DCM_ID=<ID> ./install.bin -f dc_install_response.properties -i silent
 
Where data collector id is the id of the data collector as obtained previously.

Additional Information

See the Reinstall or Migrate the Data Collectors documentation topic for more information on the DCM_ID and DC migrations.