Solved

wsadmin script for WebShere Variables

Posted on 2013-11-21
1
1,435 Views
Last Modified: 2014-07-21
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
Comment
Question by:sweety_745
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 8

Accepted Solution

by:
AdminRAM earned 500 total points
ID: 39712846
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

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction On September 29, 2012, the Python 3.3.0 was released; nothing extremely unexpected,  yet another, better version of Python. But, if you work in Microsoft Windows, you should notice that the Python Launcher for Windows was introduced wi…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question