|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JACL Issue : $AdminConfig modify |
« View previous topic :: View next topic » |
Author |
Message
|
chauhan_vin1 |
Posted: Tue Sep 15, 2009 4:18 pm Post subject: JACL Issue : $AdminConfig modify |
|
|
Apprentice
Joined: 24 Feb 2006 Posts: 36 Location: Phoenix AZ
|
Hi All,
I am trying to achive something which seems to be impossible using jacl , I am trying to create a script to enable/disable trace for the App server , this seems to be easy , but I want to pass on the TraceString from the command promt. Some how if I capture my parameters from the command promt and store them is some variable , I am not able to get the value of those varibles.
-------------------------------------------------------------------------------------
Lets say there is a variable
set a {true}
set b {false}
Why am I not able to do :
$AdminConfig modify (cells/ws-wcpwits333poca4Cell01/nodes/WPHWPS01Node01/servers/WPHWPS01|server.xml#TraceService_1225740535870) {{enable '$a'}}
WASX7435W: Value '$a' is converted to a boolean value of false
-----------------------------------------------------------------------------------
Jacl is not taking my value for variable a , which ever way I try , it need something like
$AdminConfig modify (cells/ws-wcpwits333poca4Cell01/nodes/WPHWPS01Node01/servers/WPHWPS01|server.xml#TraceService_1225740535870) {{enable false}}
or
$AdminConfig modify (cells/ws-wcpwits333poca4Cell01/nodes/WPHWPS01Node01/servers/WPHWPS01|server.xml#TraceService_1225740535870) {{enable true}}
Is there a way I can use variable value inside the properties:
Same way is I use a variable
set traceString {*=info}
and do
$AdminConfig modify (cells/ws-wcpwits333poca4Cell01/nodes/WPHWPS01Node01/servers/WPHWPS01|server.xml#TraceService_1225740535870) {{startupTraceSpecification $traceString}}
It does not take the value of traceString variable.
Please help if someone has a good way to implement it. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Sep 15, 2009 8:17 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Looks like you need a script to generate the jacl script.
Passing that script the variable should then give you the hardcoded value in the jacl script.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
WMBEAI |
Posted: Mon Sep 21, 2009 10:53 pm Post subject: |
|
|
Acolyte
Joined: 02 Mar 2009 Posts: 66
|
Hi ,
did u succeed in doing .
i have a similar requirement .Can you help me out in this.
Thanks |
|
Back to top |
|
 |
chauhan_vin1 |
Posted: Wed Oct 14, 2009 10:26 am Post subject: |
|
|
Apprentice
Joined: 24 Feb 2006 Posts: 36 Location: Phoenix AZ
|
fjb_saber,
Sorry to mention thanks to you , I was able to do it .
I created a dynamic jacl script within the shell script and ran it within the main shell script , this was I was able to pass true and false.
Thanks again to you,
Any one needing the solution :
Drop me an email at chauhan.vineet@gmail.com
Vineet |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|