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
deploy an application | |
--------------------- | |
curl -v \ | |
-H X-Requested-By:MyClient \ | |
-H Accept:application/json \ | |
-H Content-Type:application/json \ | |
-d "{ | |
name: 'mwiapp', | |
applicationPath : '/apps/oracle-weblogic/applications/mwiapp.war', | |
targets: ['mwiCluster1'], |
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 | |
# | |
# | |
# | |
BASE_DIR=`dirname $0` | |
SCRIPT=$0 | |
_processinfo_() |
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
# set default flag to ON | |
# if you want to save the config & keyfile in default location | |
defaultflag=ON | |
username=weblogic | |
password=weblogic1 | |
adminurl=t3://localhost:17001 | |
# If the default flag is ON following variables will not be used | |
configfile=/tmp/mwidomain_configfile.secure | |
keyfile=/tmp/mwidomain_keyfile.secure |
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 | |
import re | |
from os.path import exists | |
from sys import argv | |
def conn(): | |
connect(USERNAME, PASSWORD, ADMINURL) |
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 = ''' |
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
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
# 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
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
#!/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 |