You cannot define IBM WebSphere Application Server variables for a cluster using wsadmin. Defining variables for a server using wsadmin can be done easily with the following commands:
#getting the varMap
wsadmin>set varMap [$AdminConfig getid /Node:/Server:/VariableMap:/]
(cells//nodes//servers/:variables.xml#
VariableMap_1)
#setting a mapping and creating it in this varMap
wsadmin>set attrs [list [list symbolicName Test] [list value 10]]
wsadmin>$AdminConfig create VariableSubstitutionEntry $varMap $attrs
For a cluster:
wsadmin>set a [$AdminConfig getid /ServerCluster:/]
arztest(cells/tcwas601/clusters/arztest|cluster.xml#ServerCluster1118831111774)
wsadmin>set b [$AdminConfig list VariableMap $a]
The second command returns nothing. A reference to the VariableMap object is not found.
[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Administrative Scripting Tools (for example: wsadmin or ANT)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF012","label":"IBM i"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0;6.1","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.