Easing WLST syntax while navigating MBeans in interactive mode

This is something I have implemented in WLST but never exposed as a supported feature.

If you have used WLST in interactive mode I bet you are tired of typing those quotes around arguments for each command and not to mention the opening and closing brackets. Well not sure about you but I was definitely tired of this while developing WLST. Hence I have implemented a way to ease this syntax at least while navigating MBeans. The way it works is, while you are in Online mode execute the command ‘easeSyntax()’. After this, for commands like ‘cd’ and ‘ls’ you do not need to follow the jython syntax. As an example, currently to navigate to Server MBeans you will use,

cd(“/Servers/testServer”)

ls()

After executing easeSyntax() to navigate around you will use.

cd /Servers/testServer

ls

aah, I know what you are thinking. Sorry, there is no tab complete .. :-)

6 Responses to “Easing WLST syntax while navigating MBeans in interactive mode”

  1. Brian says:

    Sweet!

    I cant tell you how many times I wished for this. To think it was there all along!

  2. pandu says:

    hey thats really kewl ..
    I have one query.. I am unable to deploy ear file using “deploy” WLST. Could you please give me one s

  3. Unnikrishnan Pillai says:

    Hi Satya,

    I have placed 'wlstExplorer.jar'in the classpath. after this i tried to start WLST and it gies this error, any clue on this would be helpful?

    This issue also comes up when I am try to stop the server using 'stopweblogic.cmd' (i.e. anything which uses WLST – gives this error)

    D:\>java weblogic.WLST
    Problem invoking WLST – java.lang.NoSuchMethodError: weblogic.management.scripti
    ng.utils.WLSTUtil.getWLSTOptions()Ljava/util/List;

    Any pointers on this would be appriciated.

    Regards,
    Unni

  4. Unnikrishnan Pillai says:

    Hi Satya,

    I have placed 'wlstExplorer.jar'in the classpath. after this i tried to start WLST and it gies this error, any clue on this would be helpful?

    This issue also comes up when I am try to stop the server using 'stopweblogic.cmd' (i.e. anything which uses WLST – gives this error)

    D:\>java weblogic.WLST
    Problem invoking WLST – java.lang.NoSuchMethodError: weblogic.management.scripti
    ng.utils.WLSTUtil.getWLSTOptions()Ljava/util/List;

    Any pointers on this would be appriciated.

    Regards,
    Unni

  5. mmaia says:

    Hi man. Great tip. I´ve been looking for such thing for a long time. jython sintax is a pain in … most times.

    tx for thip.

  6. VidyaSagar says:

    WLST:Get the EndPoint URI of Business Service on ALSB using WLST.

    WLST.
    This is regarding WLST.
    Actually I need to get the end point URI’s of business services on ALSB, but with basic knowledge of WLST I went upto the config.xml of Config directory, but all the business service’s endpoint URI’s are there in sbconfig folder which is next to the config directory, am not able to navigate this directory.

    OK, here is the question, can I get the values which are there in the *.business.xml which is inside in the sbconfig directory in that particular domain. Please help/guide me in this regard how I have to script in such a way that I can get the values.

    Satya Please help me regarding this.

Leave a Reply