{"id":118,"date":"2017-10-10T22:58:20","date_gmt":"2017-10-10T20:58:20","guid":{"rendered":"http:\/\/corsaire-consulting.fr\/blog\/?p=118"},"modified":"2017-11-11T13:17:01","modified_gmt":"2017-11-11T12:17:01","slug":"wlst-lister-les-sessions-http-dune-application-web","status":"publish","type":"post","link":"https:\/\/corsaire-consulting.fr\/blog\/index.php\/2017\/10\/10\/wlst-lister-les-sessions-http-dune-application-web\/","title":{"rendered":"WLST &#8211; Lister les sessions HTTP d&rsquo;une application web"},"content":{"rendered":"<p>Le script WLST suivant affiche la liste des sessions HTTP d&rsquo;une application web tournant dans un serveur WebLogic Server.<\/p>\n<p><!--more--><\/p>\n<p>[pastacode lang=\u00a0\u00bbpython\u00a0\u00bb manual=\u00a0\u00bb%0A%0Ahost%3D%22&#8230;%22%0Aport%3D%22&#8230;%22%0Ausername%3D%22&#8230;%22%0Apassword%3D%22&#8230;%22%0A%0AwebApp%3D%22&#8230;%22%0AentApp%3D%22&#8230;%22%0A%0AserverName%3D%22AdminServer%22%0A%0Aprint%20%22Connexion%20au%20serveur&#8230;%22%0Aconnect(username%2Cpassword%2C%20host%2B%22%3A%22%2Bport)%0A%0AserverRuntime()%0Acd(&lsquo;ApplicationRuntimes%2F&rsquo;%20%2B%20entApp%20%2B%20&rsquo;%2FComponentRuntimes%2F&rsquo;%20%2B%20serverName%20%2B%20&rsquo;_%2F&rsquo;%20%2B%20webApp)%20%0AMIDs%20%3D%20mon_ids%20%3D%20cmo.getServletSessionsMonitoringIds()%0A%0Aprint%20%22Nombre%20de%20sessions%20dans%20l&rsquo;application%20%22%2BentApp%2B%22%2F%22%2BwebApp%2B%22%20%3A%20%22%2Bstr(len(MIDs))%0A%0Afor%20mid%20in%20MIDs%3A%0A%20%20%20%20%20%20%20%20print%20mid%0A%0A%0Aprint%20%22Deconnexion%20du%20serveur&#8230;%22%0Adisconnect()%0A%0A%0A\u00a0\u00bb message=\u00a0\u00bblistHttpSessions.py\u00a0\u00bb highlight=\u00a0\u00bb\u00a0\u00bb provider=\u00a0\u00bbmanual\u00a0\u00bb\/]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Le script WLST suivant affiche la liste des sessions HTTP d&rsquo;une application web tournant dans un serveur WebLogic Server.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4,5],"tags":[10,8,11],"class_list":["post-118","post","type-post","status-publish","format-standard","hentry","category-weblogic","category-wlst","tag-session-http","tag-weblogic-server","tag-wlst"],"_links":{"self":[{"href":"https:\/\/corsaire-consulting.fr\/blog\/index.php\/wp-json\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/corsaire-consulting.fr\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/corsaire-consulting.fr\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/corsaire-consulting.fr\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/corsaire-consulting.fr\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":3,"href":"https:\/\/corsaire-consulting.fr\/blog\/index.php\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":171,"href":"https:\/\/corsaire-consulting.fr\/blog\/index.php\/wp-json\/wp\/v2\/posts\/118\/revisions\/171"}],"wp:attachment":[{"href":"https:\/\/corsaire-consulting.fr\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/corsaire-consulting.fr\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/corsaire-consulting.fr\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}