DX Unified Infrastructure Management

 View Only
Expand all | Collapse all

Java Error while trying to export profiles in UMP

  • 1.  Java Error while trying to export profiles in UMP

    Posted Aug 03, 2020 05:37 PM
    I am trying to export all profiles from UMP and trying following cmd to export them, while doing so I am getting some java error please suggest. Here is the cmd with error:

    D:\Program Files (x86)\Nimsoft\probes\service\mon_config_service\tools>java -jar mcs-cli.jar bulk-profile-export -base_url http://172.19.155.95/mcsws/v9.02 -directory D:/Test/ -groups ALL
    'java' is not recognized as an internal or external command,
    operable program or batch file.

    Thanks,
    Mayank


  • 2.  RE: Java Error while trying to export profiles in UMP

    Broadcom Employee
    Posted Aug 03, 2020 05:38 PM
    Did you try specifying the full path to Java? or include the path in the system variables?
    Steve

    ------------------------------
    Support Engineer
    Broadcom
    US
    ------------------------------



  • 3.  RE: Java Error while trying to export profiles in UMP

    Posted Aug 03, 2020 05:44 PM
    I am not sure about it. Can you help me how to figure it out.

    Thanks,
    Mayank


  • 4.  RE: Java Error while trying to export profiles in UMP

    Broadcom Employee
    Posted Aug 03, 2020 05:45 PM
    Just check/search to see where Java is installed.

    Steve

    ------------------------------
    Support Engineer
    Broadcom
    US
    ------------------------------



  • 5.  RE: Java Error while trying to export profiles in UMP

    Posted Aug 03, 2020 05:57 PM
    Really don't understand. It will help if you provide the uim version, exact steps being done, and an image of the error.

    ------------------------------
    Support Engineer
    Broadcom
    ------------------------------



  • 6.  RE: Java Error while trying to export profiles in UMP

    Posted Aug 03, 2020 06:01 PM
    HI David,

    Stephen helped me and it worked. 

    Thanks for replying.

    Thanks,
    Mayank


  • 7.  RE: Java Error while trying to export profiles in UMP

    Posted Aug 03, 2020 06:03 PM
    Thanks Stephan it worked. Only thing is it is not giving output in a directory as suggested by the document. Here is the document.


    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/alphabetical-probe-articles/mon-config-service-monitoring-configuration-service/issue-cli-commands-with-the-mcs-utilities-tool.html

    I am trying Bulk Profile Export.


  • 8.  RE: Java Error while trying to export profiles in UMP

    Broadcom Employee
    Posted Aug 03, 2020 06:28 PM
    This is not working as expected?

    Bulk Profile Export
    The bulk-profile-export option helps you export all group profiles from the specified groups. You can use the keyword ALL when specifying groups, which gets all the group profiles for all the groups. One exception is that the Device Type profile is not exported.
    You can specify a directory in which you want to create the output files, or leave as the default, which is 'Profiles'. The directory is created if it does not exist. Sub-directories are created with each group's name. In these sub-directories, the profile XML files are written for each profile in the group.
    An example is as follows:
    java -jar mcs-cli.jar bulk-profile-export -base_url http://10.0.0.0/mcsws/v0 -directory E:/Test/ -groups ALL


    ------------------------------
    Support Engineer
    Broadcom
    US
    ------------------------------



  • 9.  RE: Java Error while trying to export profiles in UMP

    Posted Aug 03, 2020 06:35 PM
    Yes, it is not exporting the profiles folder is not getting creating as default as mentioned in here:you want to create the output files, or leave as the default, which is 'Profiles'.


  • 10.  RE: Java Error while trying to export profiles in UMP
    Best Answer

    Broadcom Employee
    Posted Aug 03, 2020 06:58 PM
    Was the directory already created? If no, create it.

    Steve

    ------------------------------
    Support Engineer
    Broadcom
    US
    ------------------------------