WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  managesdk commmand help to update all available services in a node.

    Posted Thu August 31, 2023 10:11 AM
    Edited by Muhammad Faisal Syed Fri September 01, 2023 05:11 AM

    For WebSphere Application Server8.5.5.11 through managesdk , what command syntax should i try to update all services to 1.8_64_bundled. Java 7 is also available.

    Appreciate response.

    Regards,

    Faisal



    ------------------------------
    Muhammad Faisal Syed
    ------------------------------



  • 2.  RE: managesdk commmand help to update all available services in a node.
    Best Answer

    Posted Fri September 01, 2023 03:09 AM
    Edited by Muhammad Faisal Syed Fri September 01, 2023 05:14 AM

    WebSphere Application Server profiles have a profile wide (node) JDK setting. If no specific Server-level JDK is set, the WebSphere Application Servers inherit the JDK configured at the profile (node) level. As everything seems to be on Java 6 so far which is no longer supported (same for Java 7), I would recommend to set everything to Java 8.

    These are the commands to do so this:

    1. Use the following command to list for all profiles the available SDKs
    app_server_root/bin/managesdk.sh -listAvailable -verbose
    Typical output:
    CWSDK1003I: Available SDKs :
    CWSDK1005I: SDK name: 1.8_64_bundled

    2. Use the following command to list for all profiles the enabled SDKs
    app_server_root/bin/managesdk.sh -listEnabledProfileAll [-verbose]

    3. Use the following command to apply the available SDKs
    app_server_root/bin/managesdk.sh -enableProfileAll -sdkname sdkName -enableServers [-user user_name] [-password password_value]

    Make sure to apply all three steps to all WebSphere installations (Deployment Manager, all application server profiles) 
    For command details, see https://www.ibm.com/docs/en/was-nd/8.5.5?topic=tools-managesdk-command

    Or the whole process, see https://www.ibm.com/docs/en/was-nd/8.5.5?topic=applications-migrating-java-se-7-8

    Important: 

    If the profile is a federated node of a deployment manager, the deployment manager must be running when the managesdk command attempts to update the profile.


    Hope that helps.

    Lars



    ------------------------------
    [Lars] [Besselmann]
    Integration Technical Specialist, IBM Technology Sales, EMEA
    IBM
    Düsseldorf
    [Lars.Besselmann@de.ibm.com]
    ------------------------------



  • 3.  RE: managesdk commmand help to update all available services in a node.

    Posted Fri September 01, 2023 04:01 AM

    Many thanks



    ------------------------------
    Muhammad Faisal Syed
    ------------------------------



  • 4.  RE: managesdk commmand help to update all available services in a node.

    Posted Fri September 01, 2023 05:01 AM

    Hello,

    You have to do it in two commands:

     

    app_server_root/bin/managesdk.sh -enableProfile -profileName AppSrv02 -sdkname 8.0_64_bundled -enableServers

     

    If you have more than one profile and want to enable all of them:

     

    app_server_root/bin/managesdk.sh -enableProfileAll -sdkname 8.0_64 -enableServers

     

    For the new profiles to get configured with the same sdk use the command:

     

    app_server_root/bin/managesdk.sh -setNewProfileDefault -sdkname 8.0_64_bundled

     

    For the commands that you run in your scripts :

    app_server_root/bin/managesdk.sh -setNewProfileDefault -sdkname 8.0_64_bundled

     

    João Pedro Alexandre

    Senior Lead, Infrastructure Specialist

    Kyndryl Consult 

     

    signature_107889659

    Unless stated otherwise above:
    KNDRL SERVICES PORTUGAL, S.A.
    Sociedade Anónima com o Capital Social de € 11.000.000
    Registada na Conservatória do Registo Comercial de Lisboa, sob o número único fiscal e de matrícula  516360558
    Edifício "Office Oriente" - Rua do Mar da China, Nº 3, Parque das Nações, 1990-138 LISBOA





  • 5.  RE: managesdk commmand help to update all available services in a node.

    Posted Fri September 01, 2023 05:14 AM

    Hi Joao Pedro,

    Many thanks.

    Regards,

    Faisal



    ------------------------------
    Muhammad Faisal Syed
    ------------------------------