• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1646
  • Last Modified:

wsadmin script for WebShere Variables

I am looking for WASADMIN script on W.P.S 7.0, where script can add the WebSphere Variables at certain scope , If the variable is already found it needs to be update with new values specified in a text file.

Thanks
0
sweety_745
Asked:
sweety_745
1 Solution
 
AdminRAMCommented:
AdminConfig.list('VariableSubstitutionEntry', AdminConfig.getid( '/Cell:WASv8Cell/'))

AdminConfig.list('VariableSubstitutionEntry', AdminConfig.getid( '/Cell:WASv8Cell/Node:WebSrvTest/'))

AdminConfig.create('VariableSubstitutionEntry', '(cells/WASv8Cell/nodes/WebSrvTest|variables.xml#VariableMap_1386801398718)', '[[symbolicName "test"] [description ""] [value "est"]]')

AdminConfig.list('VariableSubstitutionEntry', AdminConfig.getid( '/Cell:WASv8Cell/Node:WebSrvTest/'))


Example WebSphere Jython to set variables at scope
http://www.midvision.com/community/code-blog-for-developers/bid/275560/Example-WebSphere-Jython-to-set-variables-at-scope

Modifying variables using wsadmin scripting
http://pic.dhe.ibm.com/infocenter/wasinfo/v8r0/topic/com.ibm.websphere.express.doc/info/exp/ae/txml_variable.html
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Tackle projects and never again get stuck behind a technical roadblock.
Join Now