FreeKB - wsadmin in WebSphere - Scripting objects (AdminConfig, AdminControl, AdminApp, AdminTask)
wsadmin in WebSphere - Scripting objects (AdminConfig, AdminControl, AdminApp, AdminTask)

Home > Search


If you are not familiar with wsadmin.sh (Linux) / wsadmin.bat (Windows), check out our Getting Started article.

Wsadmin commands have a structure of Scripting Object - Command - Attributes. For example, in the following samples, AdminConfig is the scripting object, attributes is the command, and ApplicationServer is the attribute.

# Jython
wsadmin> print AdminConfig.attributes('ApplicationServer')

# Jacl
wsadmin> $AdminConfig attributes ApplicationServer

 

There are 4 scripting objects that can be used.

  • AdminConfig
  • AdminControl
  • AdminApp
  • AdminTask

The AdminConfig, AdminApp, and AdminTask scripting objects are used to interact with a configuration object, and the AdminControl is used to interact with a runtime object. For example, if you want to check the status of an application server, such as running or stopped, you would use AdminControl, since an application server status is runtime. Since AdminControl is used against runtime, the AdminControl has no impact on persistant configuration.

One of the most frequently used AdminConfig commands is save. This saves a change to the master repository.

# Jacl
$AdminConfig save

# Jython
AdminConfig.save()

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 51448 in the box below so that we can be sure you are a human.




Comments