updateStringInURLName command
Purpose
The updateStringInURLName command is used to update and change the Web address for a URL reference document in the DOCINFO database table. The URL is stored in the URLNAME field.Parameters
- -aDatabaseAlias
- Specifies the JDBC URL connection information for the database. If this parameter is not passed, the value of the mxe.db.url parameter in the maximo.properties file is used.
- –fPropertiesFile
- Specifies the path name of the properties file. Some parameter values are obtained from the properties file if they are not specified on the command line. If the properties file is not specified, the default is [InstallDir]/applications/maximo/properties/maximo.properties file.
- -h
- Specifies that help is needed.
- –iStringToReplace
- Specifies the string value that is to be replaced in the URLNAME field.
- -lLogFilename
- Specifies the path name of the log file where the information is written. The default file is [InstallDir]/applications/maximo/log/UpdateStringInURLName_[DateTime]
- -oReplacementString
- Specifies the replacement string to use for updating the URLNAME field.
- -pDatabasePassword
- Specifies the password of the database user. If this parameter is not passed, the value of the mxe.db.url parameter in the maximo.properties file is used.
- -t
- Specifies to run the command in test mode. The database will not be updated.
- -uDatabaseuser
- Specifies the database user ID. If this parameter is not passed, the value of the mxe.db.url parameter in the maximo.properties file is used.
Sample
The following example illustrates
how to use the updateStringInURLName command to
update the DOCINFO table after process manager has been installed
and you want to set the ITUP server Web address:
updateStringInURLName.bat -iITUP_Server -ohttp://myserver.mycompany.com:9999
where http://myserver.mycompany.com:9999
is Web address of the ITUP server. In this example, the string that
is to be changed and the string replacement value is provided, but
the default will be used for the parameters that were not specified.The
following example illustrates the command to use when you want to
test modifying the Web address of the ITUP server or any other Web
document.
updateStringInURLName.bat -ihttp://myserver.mycompany.com:9999
-ohttp://server2.mycompany.com:9999 -t
where http://myserver.mycompany.com:9999
is the previous location of the ITUP server, and http://server2.mycompany.com:9999
is the new location of the ITUP server. After executing the command
and verifying that output meets the desired results, you can remove
the -t test flag, and run the command again to update the DOCINFO table.