ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

bulk-profile-export in MCS Tools gives error: Failed to read property file

book

Article ID: 132593

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) NIMSOFT PROBES

Issue/Introduction

When I try to export MCS configuration profiles I get an error: Failed to read property file:

Example:

E:\Nimsoft\probes\service\mon_config_service\tools>java -jar mcs-cli.jar bulk-profile-export -base_url http://10.228.84. 
222/mcsws/v0 -directory E:/Test/ -groups ALL 
username: administrator 
password: 
2019-05-22 17:31:44 ERROR [main] [com.nimsoft.selfservice.cli.handlers.BulkProfileExport] Failed to read property file. 
java.io.FileNotFoundException: C:\Users\APP-xxxx-CA-w\.mcs-cli.properties (The system cannot find the file specified) 
at java.io.FileInputStream.open0(Native Method) 
at java.io.FileInputStream.open(Unknown Source) 
at java.io.FileInputStream.<init>(Unknown Source) 
at java.io.FileInputStream.<init>(Unknown Source) 
at com.nimsoft.selfservice.cli.handlers.BulkProfileExport.validateArgs(BulkProfileExport.java:103) 
at com.nimsoft.selfservice.cli.handlers.BulkProfileExport.run(BulkProfileExport.java:77) 
at com.nimsoft.selfservice.cli.Dispatcher.main(Dispatcher.java:64) 

Environment

UIM 8.x / 9.x

Resolution

This error can be ignored as even getting this error the Profiles are exported to the defined folders anyway. 
To avoid this error from showing option -force can be added. 

Example:

java -jar mcs-cli.jar bulk-profile-export -base_url http://10.123.11.111/mcsws/v0 -directory C:/Test/ -groups ALL -username administrator -password <passwordgoeshere> -force 
 

Additional Information

Related Article:
bulk-profile-export for ALL groups in MCS Tools generates empty folders for some groups

Issue CLI Commands with the MCS Utilities Tool
https://docops.ca.com/ca-unified-infrastructure-management-probes/ga/en/alphabetical-probe-articles/mon_config_service-monitoring-configuration-service/issue-cli-commands-with-the-mcs-utilities-tool