, and plugins_root/bin directory.
Network Deployment (Distributed operating systems), v8.0 > Reference > Command-line utilities
managesdk command
The managesdk command provides the names of software development kits that are used by the product.
New feature: Use the managesdk command to:
- List the software development kit (SDK) names that are available to a product installation.
- List the SDK names that a specified profile is currently configured to use.
- For each profile in a product installation, list the SDK names that the profile is currently configured to use.
- Enable a profile to use a specified SDK name.
- Enable all profiles in an installation to use a specified SDK name.
- Get the SDK name used to configure new profiles.
- Change the default SDK name that profiles use.
- Get the SDK name used by scripts called from a product bin directory.
- Change the SDK name that scripts in a product bin directory use by default. The SDK name is used when no existing profile name is specified and the default profile name is not applicable.
New feature:
The command file is located in...
WAS_HOME/bin, APP_CLIENT_ROOT/bin
If the managesdk command is used to change the SDK for a profile from a 31-bit (z/OS) or 32-bit (IBM i) SDK to a 64-bit SDK, and you are using third-party resource adapters, consider the following information to avoid potential problems. This information does not apply to any of the built-in resource adapters shipped with the WAS product, including the IBM WebSphere Relational Resource Adapter, the IBM WebSphere MQ Resource Adapter, or the IBM SIB JMS Resource Adapter as they have been fully tested to work with all IBM SDKs. Because resource adapters can use non-Java libraries containing platform-specific native code, it is possible that changing the SDK from 31-bit (z/OS) or 32-bit (IBM i) to 64-bit, or from 64-bit to 31-bit or 32-bit, might result in the resource adapter not functioning properly. If a third-party resource adapter is installed, either stand-alone or embedded in an enterprise application, on a server for which you intend to change the SDK, verify with the supplier of that resource adapter that any native libraries it uses are compatible with the selected SDK.
Use the following command syntax with the managesdk command:
managesdk -task [-parameter] [value]
The command-line tool validates that the requested task contains the required parameters and values. Parameters are not case-sensitive. However, values are case-sensitive. We must type values with the correct capitalization because the command-line tool does not validate the capitalization of the parameter values. Incorrect results can occur when the parameter value is not typed correctly.
The following -task options are available for the managesdk command:
(AIX) (Solaris)
WAS_HOME/bin/managesdk.sh -help(Windows)
WAS_HOME\bin\managesdk.bat -help
The output from the help option describes the required and optional parameters.
(AIX) (Solaris)
WAS_HOME/bin/managesdk.sh -listAvailable -verbose(Windows)
WAS_HOME\bin\managesdk.bat -listAvailable -verbose
The output is a list of all SDK names that the product installation can use, along with a list of the properties associated with each SDK name.
(AIX) (Solaris)
WAS_HOME/bin/managesdk.sh -listEnabledProfile -profileName AppSrv02 -verbose(Windows)
WAS_HOME\bin\managesdk.bat -listEnabledProfile -profileName AppSrv02 -verbose
The output is a list of all SDK names that the specified profile can use, along with a list of the properties associated with each SDK name.
(AIX) (Solaris)
WAS_HOME/bin/managesdk.sh -listEnabledProfileAll -verbose(Windows)
WAS_HOME\bin\managesdk.bat -listEnabledProfileAll -verbose
The output is a list of all profiles in a product installation with all SDK names that each profile can use, along with a list of the properties associated with each SDK name.
The following conditions apply when the managesdk command is run:
If the SOAP protocol is enabled, the managesdk command uses the SOAP protocol. If the SOAP protocol is not enabled but the IPC protocol is enabled, the command uses the IPC protocol. If neither the SOAP nor the IPC protocol are enabled, then the command uses the RMI protocol.
Use -enableProfile, -profileName, -sdkname, and -enableServers with the managesdk command:
(Windows)
WAS_HOME\bin\managesdk.bat -enableProfile -profileName AppSrv02 -sdkname 1.6_32 -enableServers
The output is a message that indicates whether the specified profile was successfully updated and is now enabled to use the specified SDK, or whether problems were encountered that prevented the profile from being successfully updated.
The following conditions apply when the managesdk command is run:
If the SOAP protocol is enabled, the managesdk command uses the SOAP protocol. If the SOAP protocol is not enabled but the IPC protocol is enabled, the command uses the IPC protocol. If neither the SOAP nor the IPC protocol are enabled, then the command uses the RMI protocol.
Use -enableProfileAll, -sdkname, and -enableServers with the managesdk command:
(AIX) (Solaris)
WAS_HOME/bin/managesdk.sh -enableProfileAll -sdkname 1.6_32 -enableServers(Windows)
WAS_HOME\bin\managesdk.bat -enableProfileAll -sdkname 1.6_32 -enableServers
The output is a message for each profile that indicates whether the profile was successfully updated and is now enabled to use the specified SDK, or whether problems were encountered that prevented the profile from being successfully updated.
The following example uses the -getNewProfileDefault -verbose parameters with the managesdk command:
(AIX) (Solaris)
WAS_HOME/bin/managesdk.sh -getNewProfileDefault -verbose(Windows)
WAS_HOME\bin\managesdk.bat -getNewProfileDefault -verbose
After the command runs, the new profile default SDK name is displayed.
Use the -setNewProfileDefault -sdkname parameters with the managesdk command:
(AIX) (Solaris)
WAS_HOME/bin/managesdk.sh -setNewProfileDefault -sdkname 1.6_32(Windows)
WAS_HOME\bin\managesdk.bat -setNewProfileDefault -sdkname 1.6_32
After the command runs, the new profile default SDK name is displayed.
Use the -getCommandDefault -verbose parameters with the managesdk command:
(AIX) (Solaris)
WAS_HOME/bin/managesdk.sh -getCommandDefault -verbose(Windows)
WAS_HOME\bin\managesdk.bat -getCommandDefault -verbose
Use the -getCommandDefault -sdkname parameters with the managesdk command:
(AIX) (Solaris)
WAS_HOME/bin/managesdk.sh -setCommandDefault -sdkname 1.6_32(Windows)
WAS_HOME\bin\managesdk.bat -setCommandDefault -sdkname 1.6_32
The following special parameter options are available with task parameters of the managesdk command:
The following examples demonstrate correct syntax when you run the managesdk command:
managesdk -listAvailable -verbose
managesdk -listEnabledProfile -profileName AppSrv02 -verbose
managesdk -listEnabledProfileAll -verbose
managesdk -enableProfile -profileName AppSrv02 -sdkname 1.6_32 -enableServers
managesdk -enableProfileAll -sdkname 1.6_32 -enableServers
managesdk -getNewProfileDefault -verbose
managesdk -setNewProfileDefault -sdkname 1.6_32
managesdk -getCommandDefault -verbose
managesdk -setCommandDefault -sdkname 1.6_32