The Dallas WebSphere environment supplied is Network Deployment. As a result, this documentation will change the Host Name for a WebSphere Network Deployment environment in Dallas.
If used at your site the cell name , dmgr node and server node names will be different and this information and examples is provided ASIS with no support.
More information can be found by accessing: Changing the node host names
Download WebSphere Deployment Manager Change Host Process Examples
-
There are two ways to use these examples. Use the JCL and Jython
examples to run in batch or use only the Jython examples only to run
using command line.
-
Command line execution:
requires the jython files only:
washost0.py , washost1.py and washost2.py.
These examples uses them in /u/ibmuser/jython/ and you will need to use your jython directory. These files are sent via FTP to the z/OS system directory in binary mode.
They can also be tagged for editing with zOS Unix System Services (USS) OEDIT command as follows:
chtag -t -c ISO8859-1 washost0.py
You must have the environment variable _BPXK_AUTOCVT=ON set to use OEDIT
chtag -t -c ISO8859-1 washost1.py
chtag -t -c ISO8859-1 washost2.py -
Using zOS Batch JCL:
requires both the JCL and jython files, the JCL files are:
WASHOST0 , WASHOST1 and WASHOST2.
These examples use them in /u/ibmuser/jcl/ and you will need to use your jython directory or locate them in a zOS dataset of your choice. These files are sent via FTP to the z/OS system directory in ASCII mode.
-
Command line execution:
requires the jython files only:
washost0.py , washost1.py and washost2.py.
-
Can be run with your WebSphere servers up or down.
If your server is DOWN then you MUST ADD "-conntype none +"
AFTER "wsadmin.sh +".
- Example when servers are UP: wsadmin.sh -lang jython -f /u/ibmuser/jython/washost0.py
- Example when servers are DOWN: wsadmin.sh -conntype none -lang jython -f /u/ibmuser/jython/washost0.py
-
Make sure to set the directory to the Deployment Manager /profiles/default/ configurations directory. You may need to modify for your environment, but it must be the directory where you configured the Deployment Manager WebSphere configuration.
Here in Dallas, our WebSphere configuration is placed in /wascfg/v8r5/xfcell/ and when the deployment manager is configured the initial configuration is located in wascfg/V8R5/xfcell/xfdmnode/DeploymentManager/ which also contains a bin directory. Do not confuse this directory /wascfg/v8r5/xfcell/xfdmnode/DeploymentManager/ as the directory to use to change the host name. THIS IS NOT THE DIRECTORY TO USE.
The directory to use to change the host name will be in the profiles directory. It is: /wascfg/v8r5/xfcell/xfdmnode/DeploymentManager/profiles/default/bin/ because it also holds the configuration information of the agent and server. This happened when federation occured.
- REMEMBER...ALL CHANGES ARE CASE SENSITIVE............
Step | JCL/ Jython |
Description |
---|---|---|
0 | WASHOST0 |
WASHOST0 will list the variables which will need to be used to make the changes for the Host Name. It is optional and will help you determine what your system looks like. It is included for reference. Here in Dallas we know what our configuration looks like so you probably will not need to run it unless you want to see how it works. The command used is AdminConfig.list. The output should look something like the output below. In this example, take notice of xfcell xfdmnode xfnode1 They will be used later in STEP 1 and some in Step 2. The "\n" is a new line and should not be used. (cells/xfcell/nodes/ xfdmnode|serverindex.xml#ServerIndex_1)\n (cells/xfcell/nodes/ xfnode1|serverindex.xml#ServerIndex_1)
To run in command line:
To run in zOS batch:
|
1 | WASHOST1 |
WASHOST1 will display the setting using the information from WASHOST0 (Step.0 above). The command used is AdminConfig.show. NOTE: Make sure the WebSphere Configuration directory is set to the correct directory.
To run in command line:
To run in zOS batch:
|
2 | WASHOST2 |
WASHOST2 will make the changes to all of the appropriate parameters in your configuration. NOTE: Make sure the WebSphere Configuration directory is set to the correct directory.
To run in command line:
To run in zOS batch:
|