Solved

wsadmin script for WebShere Variables

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Variable is a place holder or reserved memory locations to store any value. Which means whenever we create a variable, indirectly we are reserving some space in the memory. The interpreter assigns or allocates some space in the memory based on the d…
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 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 modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

705 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