Weblogic WLST get deployments status





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am trying to get deployments status from Weblogic Scripting tool. By deployments I mean list of deployments shown in Weblogic server administration console - Domain structure - Deployments



I found that using:



cd ('AppDeployments')
print cmo.getAppDeployments()


I can get state of "some" app deployments (I found names of these apps in config.xml), but those are not from Weblogic server administration console. Can anybody suggest where I can get that list and it's current state ?










share|improve this question























  • here there is a WLST script for listing apps & shared libs blogs.oracle.com/practicalbpm/…

    – devwebcl
    Nov 16 '18 at 15:45











  • unfortunately none of your scripts worked for me, I am now not sure if I work with some specific deployment of Weblogic application or something, but in my environment your scripts return 2 results - 'BusinessService' and 'WebServices', but on deployments page in Weblogic Administration console I have 6+ deployments (like HTTPSupport, JavaClient, WebFileService, etc ..) So far I couldn't find a way how to retrieve them and their actual states from WLST/python script. But thank you anyway, appreciate the effort.

    – mauek unak
    Nov 16 '18 at 20:53


















0















I am trying to get deployments status from Weblogic Scripting tool. By deployments I mean list of deployments shown in Weblogic server administration console - Domain structure - Deployments



I found that using:



cd ('AppDeployments')
print cmo.getAppDeployments()


I can get state of "some" app deployments (I found names of these apps in config.xml), but those are not from Weblogic server administration console. Can anybody suggest where I can get that list and it's current state ?










share|improve this question























  • here there is a WLST script for listing apps & shared libs blogs.oracle.com/practicalbpm/…

    – devwebcl
    Nov 16 '18 at 15:45











  • unfortunately none of your scripts worked for me, I am now not sure if I work with some specific deployment of Weblogic application or something, but in my environment your scripts return 2 results - 'BusinessService' and 'WebServices', but on deployments page in Weblogic Administration console I have 6+ deployments (like HTTPSupport, JavaClient, WebFileService, etc ..) So far I couldn't find a way how to retrieve them and their actual states from WLST/python script. But thank you anyway, appreciate the effort.

    – mauek unak
    Nov 16 '18 at 20:53














0












0








0








I am trying to get deployments status from Weblogic Scripting tool. By deployments I mean list of deployments shown in Weblogic server administration console - Domain structure - Deployments



I found that using:



cd ('AppDeployments')
print cmo.getAppDeployments()


I can get state of "some" app deployments (I found names of these apps in config.xml), but those are not from Weblogic server administration console. Can anybody suggest where I can get that list and it's current state ?










share|improve this question














I am trying to get deployments status from Weblogic Scripting tool. By deployments I mean list of deployments shown in Weblogic server administration console - Domain structure - Deployments



I found that using:



cd ('AppDeployments')
print cmo.getAppDeployments()


I can get state of "some" app deployments (I found names of these apps in config.xml), but those are not from Weblogic server administration console. Can anybody suggest where I can get that list and it's current state ?







weblogic12c wlst






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 16 '18 at 13:01









mauek unakmauek unak

3751522




3751522













  • here there is a WLST script for listing apps & shared libs blogs.oracle.com/practicalbpm/…

    – devwebcl
    Nov 16 '18 at 15:45











  • unfortunately none of your scripts worked for me, I am now not sure if I work with some specific deployment of Weblogic application or something, but in my environment your scripts return 2 results - 'BusinessService' and 'WebServices', but on deployments page in Weblogic Administration console I have 6+ deployments (like HTTPSupport, JavaClient, WebFileService, etc ..) So far I couldn't find a way how to retrieve them and their actual states from WLST/python script. But thank you anyway, appreciate the effort.

    – mauek unak
    Nov 16 '18 at 20:53



















  • here there is a WLST script for listing apps & shared libs blogs.oracle.com/practicalbpm/…

    – devwebcl
    Nov 16 '18 at 15:45











  • unfortunately none of your scripts worked for me, I am now not sure if I work with some specific deployment of Weblogic application or something, but in my environment your scripts return 2 results - 'BusinessService' and 'WebServices', but on deployments page in Weblogic Administration console I have 6+ deployments (like HTTPSupport, JavaClient, WebFileService, etc ..) So far I couldn't find a way how to retrieve them and their actual states from WLST/python script. But thank you anyway, appreciate the effort.

    – mauek unak
    Nov 16 '18 at 20:53

















here there is a WLST script for listing apps & shared libs blogs.oracle.com/practicalbpm/…

– devwebcl
Nov 16 '18 at 15:45





here there is a WLST script for listing apps & shared libs blogs.oracle.com/practicalbpm/…

– devwebcl
Nov 16 '18 at 15:45













unfortunately none of your scripts worked for me, I am now not sure if I work with some specific deployment of Weblogic application or something, but in my environment your scripts return 2 results - 'BusinessService' and 'WebServices', but on deployments page in Weblogic Administration console I have 6+ deployments (like HTTPSupport, JavaClient, WebFileService, etc ..) So far I couldn't find a way how to retrieve them and their actual states from WLST/python script. But thank you anyway, appreciate the effort.

– mauek unak
Nov 16 '18 at 20:53





unfortunately none of your scripts worked for me, I am now not sure if I work with some specific deployment of Weblogic application or something, but in my environment your scripts return 2 results - 'BusinessService' and 'WebServices', but on deployments page in Weblogic Administration console I have 6+ deployments (like HTTPSupport, JavaClient, WebFileService, etc ..) So far I couldn't find a way how to retrieve them and their actual states from WLST/python script. But thank you anyway, appreciate the effort.

– mauek unak
Nov 16 '18 at 20:53












1 Answer
1






active

oldest

votes


















1














My script for listing apps :



connect('weblogic','welcome1','t3://127.0.0.1:7001')
cd('AppDeployments')
deplymentsList=cmo.getAppDeployments()

for app in deplymentsList:
domainConfig()
cd ('/AppDeployments/'+app.getName()+'/Targets')
mytargets = ls(returnMap='true')
domainRuntime()
cd('AppRuntimeStateRuntime')
cd('AppRuntimeStateRuntime')
for targetinst in mytargets:
curstate4=cmo.getCurrentState(app.getName(),targetinst)
print '----', app.getApplicationName(), ' | ', app.getVersionIdentifier(), ' | ', app.getModuleType(), ' | ', targetinst, ' | ', curstate4, ' | ', app.getSecurityDDModel(), ' | ', app.getAbsoluteSourcePath()


More scripts can be found at: https://github.com/devwebcl/wls_contraption/tree/master/wlst






share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53338450%2fweblogic-wlst-get-deployments-status%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    My script for listing apps :



    connect('weblogic','welcome1','t3://127.0.0.1:7001')
    cd('AppDeployments')
    deplymentsList=cmo.getAppDeployments()

    for app in deplymentsList:
    domainConfig()
    cd ('/AppDeployments/'+app.getName()+'/Targets')
    mytargets = ls(returnMap='true')
    domainRuntime()
    cd('AppRuntimeStateRuntime')
    cd('AppRuntimeStateRuntime')
    for targetinst in mytargets:
    curstate4=cmo.getCurrentState(app.getName(),targetinst)
    print '----', app.getApplicationName(), ' | ', app.getVersionIdentifier(), ' | ', app.getModuleType(), ' | ', targetinst, ' | ', curstate4, ' | ', app.getSecurityDDModel(), ' | ', app.getAbsoluteSourcePath()


    More scripts can be found at: https://github.com/devwebcl/wls_contraption/tree/master/wlst






    share|improve this answer




























      1














      My script for listing apps :



      connect('weblogic','welcome1','t3://127.0.0.1:7001')
      cd('AppDeployments')
      deplymentsList=cmo.getAppDeployments()

      for app in deplymentsList:
      domainConfig()
      cd ('/AppDeployments/'+app.getName()+'/Targets')
      mytargets = ls(returnMap='true')
      domainRuntime()
      cd('AppRuntimeStateRuntime')
      cd('AppRuntimeStateRuntime')
      for targetinst in mytargets:
      curstate4=cmo.getCurrentState(app.getName(),targetinst)
      print '----', app.getApplicationName(), ' | ', app.getVersionIdentifier(), ' | ', app.getModuleType(), ' | ', targetinst, ' | ', curstate4, ' | ', app.getSecurityDDModel(), ' | ', app.getAbsoluteSourcePath()


      More scripts can be found at: https://github.com/devwebcl/wls_contraption/tree/master/wlst






      share|improve this answer


























        1












        1








        1







        My script for listing apps :



        connect('weblogic','welcome1','t3://127.0.0.1:7001')
        cd('AppDeployments')
        deplymentsList=cmo.getAppDeployments()

        for app in deplymentsList:
        domainConfig()
        cd ('/AppDeployments/'+app.getName()+'/Targets')
        mytargets = ls(returnMap='true')
        domainRuntime()
        cd('AppRuntimeStateRuntime')
        cd('AppRuntimeStateRuntime')
        for targetinst in mytargets:
        curstate4=cmo.getCurrentState(app.getName(),targetinst)
        print '----', app.getApplicationName(), ' | ', app.getVersionIdentifier(), ' | ', app.getModuleType(), ' | ', targetinst, ' | ', curstate4, ' | ', app.getSecurityDDModel(), ' | ', app.getAbsoluteSourcePath()


        More scripts can be found at: https://github.com/devwebcl/wls_contraption/tree/master/wlst






        share|improve this answer













        My script for listing apps :



        connect('weblogic','welcome1','t3://127.0.0.1:7001')
        cd('AppDeployments')
        deplymentsList=cmo.getAppDeployments()

        for app in deplymentsList:
        domainConfig()
        cd ('/AppDeployments/'+app.getName()+'/Targets')
        mytargets = ls(returnMap='true')
        domainRuntime()
        cd('AppRuntimeStateRuntime')
        cd('AppRuntimeStateRuntime')
        for targetinst in mytargets:
        curstate4=cmo.getCurrentState(app.getName(),targetinst)
        print '----', app.getApplicationName(), ' | ', app.getVersionIdentifier(), ' | ', app.getModuleType(), ' | ', targetinst, ' | ', curstate4, ' | ', app.getSecurityDDModel(), ' | ', app.getAbsoluteSourcePath()


        More scripts can be found at: https://github.com/devwebcl/wls_contraption/tree/master/wlst







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 16 '18 at 16:15









        devwebcldevwebcl

        659923




        659923
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53338450%2fweblogic-wlst-get-deployments-status%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Florida Star v. B. J. F.

            Error while running script in elastic search , gateway timeout

            Adding quotations to stringified JSON object values