This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
import sys | |
import subprocess | |
from sys import argv | |
from os.path import exists | |
import re | |
from collections import deque | |
from itertools import chain | |
import xlsxwriter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
import sys | |
import subprocess | |
from sys import argv | |
from os.path import exists | |
import re | |
from collections import deque | |
from itertools import chain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#connect([username],[password],[admin url]) | |
connect('weblogic','weblogic1','t3://mwi-vm01:17001') | |
servers=cmo.getServers() | |
print "-------------------------------------------------------" | |
print "\t"+cmo.getName()+" domain status" | |
print "-------------------------------------------------------" | |
for server in servers: | |
state(server.getName(),server.getType()) | |
print "-------------------------------------------------------" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connect('weblogic','Bea@h0me','t3://ulweblogic04.wil.csc.local:33011') | |
myapps=cmo.getAppDeployments() | |
print " -------------------------------------------------- " | |
print " WLS APPLICATION STATUS REPORTER " | |
print " -------------------------------------------------- " | |
print " APPLICATION NAME\t\t\tSTATUS \t" | |
print " -------------------------------------------------- " | |
for app in myapps: | |
bean=getMBean('/AppDeployments/'+app.getName()+'/Targets/') | |
targetsbean=bean.getTargets() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Date: 12-21-2017 | |
# Author: Sarav | |
# Name: appstate.sh | |
# | |
# | |
BASEDIR=`dirname $0` | |
SCRIPT_FILE=$BASEDIR"/appstate.py" | |
java weblogic.WLST $SCRIPT_FILE > appstate.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
from os.path import exists | |
from sys import argv | |
def get_script_path(): | |
return os.path.dirname(os.path.realpath(sys.argv[0])) | |
def parsefile(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Paths | |
mwhome=/apps/oracle-weblogic/wls12213 | |
wlshome=/apps/oracle-weblogic/wls12213/wlserver | |
domainroot=/apps/oracle-weblogic/domains | |
approot=/apps/oracle-weblogic/applications | |
# Credentials | |
domain_name=mwidomain | |
domain_username=weblogic | |
domain_password=weblogic1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.logger.app; | |
import java.io.IOException; | |
import javax.servlet.*; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import org.apache.log4j.Logger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> | |
<display-name>LoggerWebApp</display-name> | |
<welcome-file-list> | |
<welcome-file>index.html</welcome-file> | |
<welcome-file>index.htm</welcome-file> | |
<welcome-file>index.jsp</welcome-file> | |
<welcome-file>default.html</welcome-file> | |
<welcome-file>default.htm</welcome-file> | |
<welcome-file>default.jsp</welcome-file> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import getopt | |
import sys | |
import re | |
def conn(): | |
connect(USERNAME, PASSWORD, ADMINURL) | |
def usage(): | |
toprint = ''' |
OlderNewer