Network Deployment (Distributed operating systems), v8.0 > Reference > Jython script library


Utility scripts


  1. Overview
  2. convertToList
  3. debugNotice
  4. getExceptionText
  5. fail
  6. fileSearch
  7. getResourceBundle
  8. getScriptLibraryFiles
  9. getScriptLibraryList
  10. getScriptLibraryPath
  11. help
  12. infoNotice
  13. save
  14. setDebugNotices
  15. setFailOnErrorDefault
  16. sleepDelay
  17. warningNotice
  18. configureAutoSave


Overview

Each utility script procedure is located in...

WAS_HOME/scriptLibraries/utilities/V70


convertToList

Convert a string to a list. For example, the AdminApp.list() command returns a string of application names. Use the convertToList script to change the output to a list format, such as ['DefaultApplication', 'a1', 'a2', 'ivtApp', 'query'].

Argument Description
variable Name of the variable that contains the string to convert to a list.

Syntax

Example usage



debugNotice

This script sets the debug notice text.

Argument Description
message Message text for the debug notice.

Syntax

Example usage



getExceptionText

Display the exception message for a specific exception type, exception value, or traceback information.

Argument Description
type Exception type of interest. The exception type represents the class object of the exception.
value Exception value of interest. The value represents the instance object that is the argument of the exception or the second argument of the raise statement.
traceback Traceback information of interest. The traceback object contains special attributes, including the line number where the error occurred. Do not assign traceback to a local variable in the function that handles the exception, as this assignment creates a circular reference.

Syntax

Example usage



fail

This script sets the failure message.

Argument Description
message Message text for the failure notice.

Syntax

Example usage



fileSearch

This script searches the file system based on a specific path or directory.

Argument Description
path File path to search for a specific file.
directory Directory to search for a specific file.

Syntax

Example usage

(Windows)

(AIX) (Solaris)



getResourceBundle

Display an instance for the resource bundle of interest.

Argument Description
bundleName Name of the bundle of interest. For example, to get a message object from the ScriptingLibraryMessage resource bundle, specify...

com.ibm.ws.scripting.resources.scriptLibraryMessage

Syntax

Example usage



getScriptLibraryFiles

Display the file path and file names for each script library file.

Syntax

Example usage



getScriptLibraryList

Display each script name in the script library.

Syntax

Example usage



getScriptLibraryPath

Display the file path to get to the script library files on your file system.

Syntax

Example usage



help

Display help information for the AdminUtilities script library, including general library information, script names, and script descriptions.

Argument Description
scriptName Optionally specifies the name of the AdminUtilities script of interest.

Syntax

Example usage



infoNotice

This script sets the text for the information notice of a command or script.

Argument Description
message Message text or a message ID such as "Application is installed" or resourceBundle.getString("WASX7115I").

Syntax

Example usage



save

This script saves the configuration changes to the system.

Syntax

Example usage



setDebugNotices

This script enables and disables debug notices.

Argument Description
debug Whether to enable or disable debug notices. Specify true to enable debug notices, or false to disable debug notices.

Syntax

Example usage



setFailOnErrorDefault

This script enables or disables the fail on error behavior.

Argument Description
failOnError Whether to enable or disable the fail on error behavior. Specify true to enable the fail on error behavior, or false to disable the behavior.

Syntax

Example usage



sleepDelay

This script sets the number of seconds that the system waits for completion during two operations.

Argument Description
delaySeconds Number of seconds to wait for completion.

Syntax

Example usage



warningNotice

This script sets the text to display as the warning message.

Argument Description
message Non-translated text for the warning notice or a message ID such as resourceBundle.getString("WASX7411W").

Syntax

Example usage



configureAutoSave

This script enables and disables the automatic saving of configuration changes to the master configuration repository.

Argument Description
autosave Whether to save configuration changes to the master configuration repository automatically. The default value is true.

Syntax

Example usage


Use the script library to automate the application serving environment using wsadmin.sh

+

Search Tips   |   Advanced Search