Wednesday Aug 17, 2016

Bash script to deploy webapp to Weblogic server domain via WLST

I wrote a bash script to deploy a war file to ALL managed servers in a Weblogic domain. You should be able to modify it to work for your needs.

#!/bin/bash HOST_NAME=${1-localhost} HOST_USER=${2-weblogic} HOST_PASS=${3-welcome1} HOST_PORT=${4-7001} JAVA_BIN="/usr/bin/java" SCRIPT_HOME="$(dirname $(readlink -f $0))" WL_JAR="${SCRIPT_HOME}/middleware/wlserver_10.3/server/lib/weblogic.jar" JAM_JAR="myapp.war" function getServerList() { WLST_SERVER_LIST=$(${JAVA_BIN} -cp ${WL_JAR} weblogic.WLST <<EOF connect("${HOST_USER}", "${HOST_PASS}", "t3://${HOST_NAME}:${HOST_PORT}") cd('Servers') ls('a') EOF ) SERVER_LIST="" while read -r CURR_LINE; do if [[ ${CURR_LINE} =~ drw-* ]] then SERVER_LIST+=$(printf ${CURR_LINE#*drw-},) fi done <<< "${WLST_SERVER_LIST}" SERVER_LIST=${SERVER_LIST%,*} #echo $SERVER_LIST } function agentDeployer() { ${JAVA_BIN} -cp ${WL_JAR} weblogic.Deployer -adminurl t3://${HOST_NAME}:${HOST_PORT} -user ${HOST_USER} -password ${HOST_PASS} -targets ${SERVER_LIST} -deploy -upload ${JAM_JAR} } echo "Deploying" getServerList agentDeployer
 

Monday Apr 04, 2016

Oracle Enterprise Manager 13c: Centralized Administration and Auditing of Oracle WebLogic Server

Oracle Enterprise Manager Cloud Control 13c enables administrators to perform administration operations against Oracle WebLogic Server as well as to view the audit records for those operations.  Traditionally, administrators were required to use the WebLogic Server Administration Console or the Oracle Enterprise Manager Fusion Middleware Control console to administer their domain. However, administration and configuration operations are available directly from the Oracle Enterprise Manager Cloud Control 13c console. From the Cloud Control console, administrators can do the following:

  • Leverage Change Center to lock a domain configuration prior to making configuration changes.
  • Configure domain, cluster, server, machine – as well as multi tenancy settings.

  • Manage JDBC data sources.

  • Access the System MBean Browser to view, invoke or edit MBeans.

· Start, stop or restart middleware components.

  • Schedule and track execution of WLST scripts.

· View the audit trail of WebLogic operations performed from either the Oracle Enterprise Manager Cloud Control console or the Oracle Enterprise Manager Command Line Interface (EMCLI).

Having a single tool for monitoring, administering and viewing audit records for Oracle WebLogic Server not only simplifies an administrator’s job and increases productivity, but also maintains security of a middleware environment.

To see first-hand some of the Oracle WebLogic Server administration and auditing capabilities available from Oracle Enterprise Manager Cloud Control 13c, watch and listen to the recorded demonstration available on the Oracle Learning Library here. Additional information can also be obtained from the Oracle Enterprise Manager Cloud Control 13c Online Documentation Library:

Monday Mar 28, 2016

Oracle Enterprise Manager 13c: Track Compliance with the Oracle WebLogic Server 12c Security Technical Implementation Guide (STIG)

Oracle Enterprise Manager Cloud Control 13c enables administrators to track compliance of their WebLogic Server environments to the Defense Information Systems Agency’s Oracle WebLogic Server 12c Security Technical Implementation Guide (STIG).  The Security Technical Implementation Guide contains technical guidance to “lock down” information systems and software that might otherwise be vulnerable to a malicious computer attack. Originally published by the Defense Information Systems Agency for the Department of Defense, the STIG for Oracle WebLogic Server 12c can be used by administrators from public or private sectors to ensure their WebLogic Server environments are sufficiently secure and not vulnerable to attack.

Beginning with Oracle Enterprise Manager Cloud Control 13c Release 1 and the Fusion Middleware Plug-in Release 13.1.1.0.0, a predefined compliance standard named “Security Technical Implementation Guide (STIG Version 1.1) for Oracle WebLogic Server 12c“ is available from the Cloud Control console. Administrators can associate this compliance standard with their 12c WebLogic Domains to ensure that those domains adhere to strict security guidelines.

The below screenshot highlights one of the 72 predefined rules included in the Security Technical Implementation Guide (STIG Version 1.1) for Oracle WebLogic Server 12c compliance standard.

The below screenshot highlights a violation event to one of the automated rules included in the Security Technical Implementation Guide (STIG Version 1.1) for Oracle WebLogic Server 12c compliance standard.

To see first-hand how to use Oracle Enterprise Manager Cloud Control 13c to track compliance to the Oracle WebLogic Server 12c STIG, watch and listen to the recorded demonstration available on the Oracle Learning Library here.   Additional information can also be obtained from the Oracle Enterprise Manager Cloud Control 13c Online Documentation Library:

About

Latest information on Oracle Enterprise Manager and Oracle Management Cloud.

Related Blogs




Search


Archives
« March 2017
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
       
Today