Solved

wsadmin script for WebShere Variables

Posted on 2013-11-21
1
1,325 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
1 Comment
 
LVL 8

Accepted Solution

by:
AdminRAM earned 500 total points
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now