With UIM 20.4 CU5 is not possible too export profiles with MCS-CLI
(RUNNING: mcs-cli, mcs-ws 20.42)
Error received:
c:\Program Files (x86)\Nimsoft\probes\service\mon_config_service\tools>java -jar mcs-cli.jar profile-export -base_url http://<xxxxx>/mcsws/v0 -device 3 -profile 36 -force -debug -file test.xml
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/jdbc/core/JdbcOperations
or:
Exception in thread "main" java.lang.NullPointerException
at com.nimsoft.selfservice.cli.handlers.Handler.validateArgs(Handler.java:149)
at com.nimsoft.selfservice.cli.handlers.ProfileExport.validateArgs(ProfileExport.java:105)
at com.nimsoft.selfservice.cli.handlers.ProfileExport.run(ProfileExport.java:57)
at com.nimsoft.selfservice.cli.Dispatcher.main(Dispatcher.java:64)
This works fine in 20.3.3 or in 20.4 CU4
(RUNNING: mcs-cli, mcs-ws 20.41)
c:\Program Files (x86)\Nimsoft\probes\service\mon_config_service\tools>java -jar mcs-cli.jar profile-export -base_url http://<xxxxx>/mcsws/v0 -device 3 -profile 36 -force -debug -file test.xml
username: administrator
password:
2022-11-28 09:01:35 INFO [main] [com.nimsoft.selfservice.cli.handlers.ProfileExport] Exporting profile to file [test.xml].
2022-11-28 09:01:36 DEBUG [main] [com.nimsoft.selfservice.cli.util.WSClient] GET(ing): http://<xxxxxx>/mcsws/v0/devices/3/profiles/36
2022-11-28 09:01:39 INFO [main] [com.nimsoft.selfservice.cli.handlers.ProfileExport] Successfully exported profile.