Solved

wsadmin script for WebShere Variables

Posted on 2013-11-21
1
1,359 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
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Python Hue issue with import 12 73
INSERT for sqlite3 in Python 9 81
BIG IP GTM upgrade 2 119
Python variable _ manually assigned 9 63
The really strange introduction Once upon a time there were individuals who intentionally put the grass seeds to the soil with anticipation of solving their nutrition problems. Or they maybe only played with seeds and noticed what happened... Som…
Sequence is something that used to store data in it in very simple words. Let us just create a list first. To create a list first of all we need to give a name to our list which I have taken as “COURSE” followed by equals sign and finally enclosed …
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 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…

912 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

15 Experts available now in Live!

Get 1:1 Help Now