Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Use properties files to manage system configuration > Manage specific configuration objects using properties files > Work with server properties files
Work with end point properties file
We can use properties files to change the end points of a server.
Determine the changes to make to your end point configuration.
Start wsadmin.sh.
To start wsadmin using the Jython language, run...
WP_PROFILE/bin/wsadmin -lang jython
Use a properties file, you can modify end point properties.
Run administrative commands using wsadmin to extract a properties file for an end point, validate the properties, and apply them to your configuration.
Actions for end point properties files. We can modify end point properties.
Action Procedure create Not available modify Edit properties and then run applyConfigProperties. delete Not available Optionally, you can use interactive mode with the commands:
AdminTask.command_name('-interactive')
Procedure
- Edit end point properties under a server.
Open an editor on a properties file. Example properties for an EndPoint under a server follow. The example specifies three different host names in the Environment Variables section: myHostName,* and localhost. We can copy the example properties into an editor and modify them as needed for your situation.
# # Header # ResourceType=EndPoint ImplementingResourceType=Server ResourceId=Cell=!{cellName}:Node=!{nodeName}:Server=!{serverName} # # #Properties # SOAP_CONNECTOR_ADDRESS=8888:!{hostName} # integer SIP_DEFAULTHOST_SECURE=5067:!{hostName1} # integer SIP_DEFAULTHOST=5066:!{hostName1} # integer SIB_ENDPOINT_ADDRESS=7283:!{hostName1} # integer WC_defaulthost_secure=9447:!{hostName1} # integer DCS_UNICAST_ADDRESS=9364:!{hostName1} # integer SIB_MQ_ENDPOINT_SECURE_ADDRESS=5582:!{hostName1} # integer WC_adminhost_secure=9052:!{hostName1} # integer CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS=9424:!{hostName} # integer ORB_LISTENER_ADDRESS=0:!{hostName} # integer BOOTSTRAP_ADDRESS=2813:!{hostName} # integer CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS=9423:!{hostName} # integer IPC_CONNECTOR_ADDRESS=9634:!{hostName2} # integer SIB_ENDPOINT_SECURE_ADDRESS=7291:!{hostName1} # integer WC_defaulthost=9084:!{hostName1} # integer SIB_MQ_ENDPOINT_ADDRESS=5562:!{hostName1} # integer SAS_SSL_SERVERAUTH_LISTENER_ADDRESS=9422:!{hostName} # integer WC_adminhost=9069:!{hostName1} # integer # EnvironmentVariablesSection # #Environment Variables hostName2=localhost hostName1=* hostName=myHostName cellName=WASCell06 serverName=myServer nodeName=WASNode04- Run applyConfigProperties.
Run applyConfigProperties applies the properties file to the configuration. In this Jython example, the optional -reportFileName parameter produces a report named report.txt:
AdminTask.applyConfigProperties(['-propertiesFileName myObjectType.props -reportFileName report.txt'])
Results
We can use the properties file to configure and manage the end point properties.
What to do next
Save the changes to the configuration.
Extract properties files using wsadmin.sh
Create server, cluster, application, or authorization group objects using properties files and wsadmin scripting
Delete server, cluster, application, or authorization group objects using properties files
Related
PropertiesBasedConfiguration command group using wsadmin.sh