### Start the WebLogic Admin Server Source: https://github.com/oracle-samples/maa/blob/main/maa_wls_lifecycle_scripts/Generic/README.md This command starts the Administration Server. It must be executed on the admin host. ```bash ./wls_start.sh aserver ``` -------------------------------- ### Start the WebLogic Node Manager Source: https://github.com/oracle-samples/maa/blob/main/maa_wls_lifecycle_scripts/Generic/README.md Use this command to start the Node Manager process on the current host. ```bash ./wls_start.sh nm ``` -------------------------------- ### Run Verification Utility (Example Single Domain) Source: https://github.com/oracle-samples/maa/blob/main/fmw_maa_vu/README.md An example demonstrating how to run the verification utility for a specific domain directory, using provided paths for configuration and output. ```bash python3 wls_yaml_report.py --domain-dir /stagingforMAAChecks/WLSConfig/SAMPLE_Domain --checks-yaml /stagingforMAAChecks/maa_checks.yml --out report_SAMPLE_Domain.html ``` -------------------------------- ### Example File System 1 Configuration Source: https://github.com/oracle-samples/maa/blob/main/apps-unlimited/PeopleSoft/dr_scripts/Replication/README.md Example configuration for replicating the 'fs1' file system, including its log file name and source/target directories. ```shell FS_ALIAS=fs1 LOG_FILE_NAME=fs1_psft_rsync.log SOURCE_RSYNC_DIR=/u02/app/psft/ps TARGET_RSYNC_DIR=/u02/app/psft/ps ``` -------------------------------- ### Example File System 2 Configuration Source: https://github.com/oracle-samples/maa/blob/main/apps-unlimited/PeopleSoft/dr_scripts/Replication/README.md Example configuration for replicating the 'fs2' file system, including its log file name and source/target directories. ```shell FS_ALIAS=fs2 LOG_FILE_NAME=fs2_psft_rsync.log SOURCE_RSYNC_DIR=/u01/app/psft/pt TARGET_RSYNC_DIR=/u01/app/psft/pt ``` -------------------------------- ### Run WLS Full Setup Script Source: https://github.com/oracle-samples/maa/blob/main/wls-hydr/README.md Execute the main setup script with the prepared sysconfig CSV file. Use the -d flag for debugging. ```bash /./wls_full_setup.py -i sysconfig_discovery.csv ``` -------------------------------- ### Start WebLogic Managed Server Source: https://github.com/oracle-samples/maa/blob/main/maa_wls_lifecycle_scripts/PaaS/README.md Execute this command to start the Managed Server process on the current host. It also starts the Node Manager if it is down. ```shell ./wls_start.sh mserver ``` -------------------------------- ### Start a WebLogic Managed Server Source: https://github.com/oracle-samples/maa/blob/main/maa_wls_lifecycle_scripts/Generic/README.md Use this command to start a specific managed server by its name. The node manager must be running on the host. ```bash ./wls_start.sh mserver WLS_WSM1 ``` -------------------------------- ### Start All WebLogic Processes Source: https://github.com/oracle-samples/maa/blob/main/maa_wls_lifecycle_scripts/PaaS/README.md Execute this command to start all WebLogic processes, including the Node Manager, Administration Server, and Managed Server, on the current host. ```shell ./wls_start.sh all ``` -------------------------------- ### Install PyYAML Source: https://github.com/oracle-samples/maa/blob/main/fmw_maa_vu/README.md Use this command to install the PyYAML library, which is a requirement for the verification utility. ```bash python3 -m pip install pyyaml ``` -------------------------------- ### Example Rsync Script for Products Source: https://github.com/oracle-samples/maa/blob/main/manual_hybrid_dr/hybrid_dr_rsync_scripts/README.md Example script to copy the MW products folder to a remote midtier node. Ensure this script is in the same folder as rsync_copy_and_validate.sh and customize values in the 'CUSTOM VALUES' section. ```bash #!/bin/bash # CUSTOM VALUES REMOTE_NODE="WLS1" ORIGIN_FOLDER="/u01/oracle/middleware/products" DEST_FOLDER="/u01/oracle/middleware/products" EXCLUDE_LIST="--exclude 'mbeans/' --exclude 'diagnostics/'" # SCRIPT FOLDER SCRIPT_FOLDER=$(dirname "$0") # SCRIPT EXECUTION "$SCRIPT_FOLDER/rsync_copy_and_validate.sh" "$ORIGIN_FOLDER" "$DEST_FOLDER" "$REMOTE_NODE" "$EXCLUDE_LIST" ``` -------------------------------- ### Run Discovery for COMPLETE DR SETUP Source: https://github.com/oracle-samples/maa/blob/main/wls-hydr/README.md Execute the discovery script for the 'COMPLETE DR SETUP' use case. This typically involves connecting to primary hosts to gather detailed information. ```bash /lib/Discovery.py ``` -------------------------------- ### Start a WebLogic Cluster Source: https://github.com/oracle-samples/maa/blob/main/maa_wls_lifecycle_scripts/Generic/README.md Execute this command to start all managed servers within a specified WebLogic cluster. Node managers must be running. ```bash ./wls_start.sh cluster SOA_Cluster ``` -------------------------------- ### Example Rsync Script for Local Config Source: https://github.com/oracle-samples/maa/blob/main/manual_hybrid_dr/hybrid_dr_rsync_scripts/README.md Example script to copy the local config to a remote midtier node. Ensure this script is in the same folder as rsync_copy_and_validate.sh and customize values in the 'CUSTOM VALUES' section. ```bash #!/bin/bash # CUSTOM VALUES REMOTE_NODE="WLS1" ORIGIN_FOLDER="/u01/oracle/weblogic/config" DEST_FOLDER="/u01/oracle/weblogic/config" EXCLUDE_LIST="--exclude 'AdminServer/tmp/' --exclude 'AdminServer/upload/' --exclude 'AdminServer/diagnostics/' --exclude 'AdminServer/mbeans/'" # SCRIPT FOLDER SCRIPT_FOLDER=$(dirname "$0") # SCRIPT EXECUTION "$SCRIPT_FOLDER/rsync_copy_and_validate.sh" "$ORIGIN_FOLDER" "$DEST_FOLDER" "$REMOTE_NODE" "$EXCLUDE_LIST" ``` -------------------------------- ### Run WLS Full Setup Script Source: https://github.com/oracle-samples/maa/blob/main/wls-hydr/README.md Executes the main setup script for WLS, providing the sysconfig discovery CSV file and indicating no connectivity to the primary system. Use the -d flag for debugging. ```bash /wls_full_setup.py -i sysconfig_discovery.csv -n ``` -------------------------------- ### Install DRS Required Libraries Source: https://github.com/oracle-samples/maa/blob/main/drs_mp_soa/PREPARE_DRS_VENV.md Install all Python libraries required for DRS execution from the 'requirements-drs-plain.txt' file within the active virtual environment. ```bash (pythonvenv) [opc@host _internal_python]$ python3 -m pip install -r requirements-drs-plain.txt ``` -------------------------------- ### Install Requirements Source: https://github.com/oracle-samples/maa/blob/main/wls-hydr/README.md Installs all necessary Python packages required by the WLS_HYDR framework from the requirements.txt file. Navigate to the framework's directory before running this command. ```bash cd /path/to/wls_hydr python3 -m pip install -r requirements.txt ``` -------------------------------- ### Example Rsync Script for OraInventory Source: https://github.com/oracle-samples/maa/blob/main/manual_hybrid_dr/hybrid_dr_rsync_scripts/README.md Example script to copy the orainventory folder to a remote midtier node. Ensure this script is in the same folder as rsync_copy_and_validate.sh and customize values in the 'CUSTOM VALUES' section. ```bash #!/bin/bash # CUSTOM VALUES REMOTE_NODE="WLS1" ORIGIN_FOLDER="/u01/oracle/oraInventory" DEST_FOLDER="/u01/oracle/oraInventory" EXCLUDE_LIST="" # SCRIPT FOLDER SCRIPT_FOLDER=$(dirname "$0") # SCRIPT EXECUTION "$SCRIPT_FOLDER/rsync_copy_and_validate.sh" "$ORIGIN_FOLDER" "$DEST_FOLDER" "$REMOTE_NODE" "$EXCLUDE_LIST" ``` -------------------------------- ### XML Each Check Example (Database Leasing Warn) Source: https://github.com/oracle-samples/maa/blob/main/fmw_maa_vu/README.md Warns if the 'migration-basis' for a 'cluster' is not 'database'. ```yaml - id: cluster_db_leasing_warn type: xml_each file: "config/config.xml" description: "WARN if cluster is not using database leasing" context: "cluster" require_children: ["name"] value: "migration-basis" operator: equals expected: "database" on_fail: WARN recommendation: "If leasing is required, set database." ``` -------------------------------- ### Node Manager Domains Check Example (Min Paths) Source: https://github.com/oracle-samples/maa/blob/main/fmw_maa_vu/README.md Ensures the nodemanager.domains file lists at least two paths for the domain. ```yaml - id: nm_domains_two_paths type: nodemanager_domains file: "nodemanager/nodemanager.domains" description: "nodemanager.domains lists two paths for the domain" operator: min_paths expected: 2 on_fail: FAIL recommendation: "List two domain paths separated by ';' if AdminServer and Managed Servers use separate domain directories." ``` -------------------------------- ### Example Rsync Script for Shared Config Source: https://github.com/oracle-samples/maa/blob/main/manual_hybrid_dr/hybrid_dr_rsync_scripts/README.md Example script to copy the WLS shared config to a remote midtier node. Ensure this script is in the same folder as rsync_copy_and_validate.sh and customize values in the 'CUSTOM VALUES' section. ```bash #!/bin/bash # CUSTOM VALUES REMOTE_NODE="WLS1" ORIGIN_FOLDER="/u01/oracle/shared/config" DEST_FOLDER="/u01/oracle/shared/config" EXCLUDE_LIST="--exclude 'nodemanager/' --exclude 'servers/AdminServer/tmp/' --exclude 'servers/AdminServer/upload/' --exclude 'servers/AdminServer/diagnostics/' --exclude 'servers/AdminServer/mbeans/'" # SCRIPT FOLDER SCRIPT_FOLDER=$(dirname "$0") # SCRIPT EXECUTION "$SCRIPT_FOLDER/rsync_copy_and_validate.sh" "$ORIGIN_FOLDER" "$DEST_FOLDER" "$REMOTE_NODE" "$EXCLUDE_LIST" ``` -------------------------------- ### Example Rsync Script for OHS Products Source: https://github.com/oracle-samples/maa/blob/main/manual_hybrid_dr/hybrid_dr_rsync_scripts/README.md Example script to copy the OHS products folder to a remote webtier node. Ensure this script is in the same folder as rsync_copy_and_validate.sh and customize values in the 'CUSTOM VALUES' section. ```bash #!/bin/bash # CUSTOM VALUES REMOTE_NODE="OHS1" ORIGIN_FOLDER="/u01/oracle/ohs/products" DEST_FOLDER="/u01/oracle/ohs/products" EXCLUDE_LIST="--exclude 'mbeans/' --exclude 'diagnostics/'" # SCRIPT FOLDER SCRIPT_FOLDER=$(dirname "$0") # SCRIPT EXECUTION "$SCRIPT_FOLDER/rsync_copy_and_validate.sh" "$ORIGIN_FOLDER" "$DEST_FOLDER" "$REMOTE_NODE" "$EXCLUDE_LIST" ``` -------------------------------- ### Example Rsync Script for Shared Runtime Source: https://github.com/oracle-samples/maa/blob/main/manual_hybrid_dr/hybrid_dr_rsync_scripts/README.md Example script to copy the shared runtime to a remote midtier node. Ensure this script is in the same folder as rsync_copy_and_validate.sh and customize values in the 'CUSTOM VALUES' section. ```bash #!/bin/bash # CUSTOM VALUES REMOTE_NODE="WLS1" ORIGIN_FOLDER="/u01/oracle/shared/runtime" DEST_FOLDER="/u01/oracle/shared/runtime" EXCLUDE_LIST="--exclude 'tmp/' --exclude 'diagnostics/'" # SCRIPT FOLDER SCRIPT_FOLDER=$(dirname "$0") # SCRIPT EXECUTION "$SCRIPT_FOLDER/rsync_copy_and_validate.sh" "$ORIGIN_FOLDER" "$DEST_FOLDER" "$REMOTE_NODE" "$EXCLUDE_LIST" ``` -------------------------------- ### Properties Check Example (Node Manager ListenAddress) Source: https://github.com/oracle-samples/maa/blob/main/fmw_maa_vu/README.md Checks if the 'ListenAddress' in nodemanager.properties is blank, indicating it listens on any interface. ```yaml - id: nm_listen_any type: properties file: "nodemanager/nodemanager.properties" description: "Node Manager ListenAddress is blank (ANY interface)" key: "ListenAddress" operator: equals expected: "" on_fail: FAIL recommendation: "Set ListenAddress= (blank) if your standard requires NM listening on all interfaces." ``` -------------------------------- ### Skip Starting and Verifying WLS Processes with DRS Source: https://github.com/oracle-samples/maa/blob/main/drs_mp_soa/README.md Employ the --do_not_start flag to prevent DRS from starting and verifying WLS processes on the standby site. This is recommended when custom actions are required post-DR setup but before WLS startup. ```bash $ sh drs_run.sh --config_dr --do_not_start ``` ```bash $ sh drs_run.sh --config_dr --do_not_start --skip_checks ``` -------------------------------- ### Re-execute DRS After Resetting Standby Domain Source: https://github.com/oracle-samples/maa/blob/main/drs_mp_soa/README.md When DRS fails during SOA mid-tier setup, reset the standby domain and re-execute DRS with the --skip_checks option. This example demonstrates the command to re-run DRS after a domain reset. ```bash $ sh drs_run.sh --config_dr --skip_checks ``` -------------------------------- ### Install and Update Pip Source: https://github.com/oracle-samples/maa/blob/main/wls-hydr/README.md Ensures pip is installed and updated to the latest version on the bastion host. This is a prerequisite for installing other Python packages. ```bash sudo yum install python3-pip ``` ```bash sudo python3 -m pip install --upgrade pip ``` -------------------------------- ### Provisioning Environment with Response Files Source: https://github.com/oracle-samples/maa/blob/main/1412EDG/IDM/README.md Invokes the main provisioning script, optionally specifying custom response and password files. Ensure these files exist in the responsefile directory. ```bash ./provision.sh ``` ```bash ./provision.sh -r my.rsp -p .mypwds ``` -------------------------------- ### Run Provisioning Script (with Discovery) Source: https://github.com/oracle-samples/maa/blob/main/wls-hydr/README.md Execute the main provisioning script when the discovery phase has been completed. Provide the exported discovery CSV file as a parameter. ```bash /wls_hydr.py -i -a ``` -------------------------------- ### Initialize Data Replication Stage Folder Source: https://github.com/oracle-samples/maa/blob/main/wls-hydr/README.md Creates the necessary directory structure on the bastion host for staging data replication. Specify the number of WLS and OHS nodes. ```bash /lib/DataReplication.py init -w -o ``` -------------------------------- ### Perform Initial Data Push Source: https://github.com/oracle-samples/maa/blob/main/wls-hydr/README.md Execute the data replication push operation to copy WLS/FMW binaries and configuration from a bastion stage to OCI compute instances. Ensure the oci.env file is verified before running. ```bash /lib/DataReplication.py push ``` -------------------------------- ### Run Provisioning Script (without Discovery) Source: https://github.com/oracle-samples/maa/blob/main/wls-hydr/README.md Execute the main provisioning script when the discovery phase has NOT been completed. Provide the exported system configuration CSV file. ```bash /wls_hydr.py -i ``` -------------------------------- ### Example Rsync Script for OHS Config Source: https://github.com/oracle-samples/maa/blob/main/manual_hybrid_dr/hybrid_dr_rsync_scripts/README.md Example script to copy the OHS config to a remote webtier node. Ensure this script is in the same folder as rsync_copy_and_validate.sh and customize values in the 'CUSTOM VALUES' section. ```bash #!/bin/bash # CUSTOM VALUES REMOTE_NODE="OHS1" ORIGIN_FOLDER="/u01/oracle/ohs/config" DEST_FOLDER="/u01/oracle/ohs/config" EXCLUDE_LIST="--exclude 'instances/OHS1/tmp/' --exclude 'instances/OHS1/diagnostics/'" # SCRIPT FOLDER SCRIPT_FOLDER=$(dirname "$0") # SCRIPT EXECUTION "$SCRIPT_FOLDER/rsync_copy_and_validate.sh" "$ORIGIN_FOLDER" "$DEST_FOLDER" "$REMOTE_NODE" "$EXCLUDE_LIST" ```