ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Process Server (WID/WPS/WAS+) » JACL Issue : $AdminConfig modify

Post new topic  Reply to topic
 JACL Issue : $AdminConfig modify « View previous topic :: View next topic » 
Author Message
chauhan_vin1
PostPosted: Tue Sep 15, 2009 4:18 pm    Post subject: JACL Issue : $AdminConfig modify Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
fjb_saper
PostPosted: Tue Sep 15, 2009 8:17 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
WMBEAI
PostPosted: Mon Sep 21, 2009 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
chauhan_vin1
PostPosted: Wed Oct 14, 2009 10:26 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Process Server (WID/WPS/WAS+) » JACL Issue : $AdminConfig modify
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.