Scripts

dmk-run.bash

This script is used to call the dmk-run.pl perl script. The following list shows all arguments that can be passed to this script. Aliases are available to short cut the command lines.

Name
Description

c

Clear console

cda

Changes directory to select WebLogic Domain configuration files

cdb

Changes directory to ${WEBLOGIC_BASE}

cdc

Changes directory to select WebLogic Domain properties directory

cdd

Changes directory to ${DMK_HOME}

cdmw

Changes directory to Middleware HOME ${MW_HOME}

domains

Changes directory to domains root directory

vid

Edit the ${DMK_HOME}/etc/dmk.conf

listDomains

Prints the list of WebLogic domains declared on this machine

domainStatus

Prints the status of WebLogic domain selected

domainQuickStatus

Prints the status of WebLogic domain selected (fast version)

domainInfo

Prints runtime information of WebLogic domain selected

allDomainsStatus

Prints the status of all WebLogic domains declared on this machine

allDomainsQuickStatus

Prints the status of all WebLogic domains declared on this machine (fast version)

startDomain

Starts the WebLogic domain selected

stopDomain

Stops the WebLogic domain selected

startAdmin

Starts the WebLogic Admin Server for domain selected

stopAdmin

Stops the WebLogic Admin Server for domain selected

startCluster

Starts the WebLogic Cluster given in parameter for domain selected

stopCluster

Stops the WebLogic Cluster given in parameter for domain selected

startServer

Starts the WebLogic Server given in parameter for domain selected

stopServer

Stops the WebLogic Server given in parameter for domain selected

startComponent

Start the system component given in parameter

stopComponent

Stop the system component given in parameter

startNM

Starts the WebLogic Domain associated Node Manager using the command line

stopNM

Stops the WebLogic Domain associated Node Manager (Kill NM process)

psNM

Run a ps command to find Node Manager process

psAdmin

Run a ps command to find WebLogic Domain Admin Server process

showDomainConfig

Displays the WebLogic domain configuration declared in properties file

packWebLogicDomain

Pack the WebLogic Domain Selected and create the unpack scripts to unpack on remote machine

wlsVersion

Displays the version of the WebLogic Server. Complete information adding –verbose argument

wlst

Start the WLST scripting shell

wlsDo

DMK wrapper command – Displays the help

tailLog

Tail the WebLogic Server log file for the server given in parameter and the WebLogic Domain selected

tailOut

Tail the WebLogic Server out file for the server given in parameter and the WebLogic Domain selected

tailNMNoHupLog

Tail the Node Manager out log file

viLog

Edit the WebLogic Server log file for the server given in parameter and the WebLogic Domain selected

viNMMLog

Edit the local ocal Node Managerde Manager log file

createDomain

Create a WeLogic Domain based on the domain.properties file given in parameter

createWLSAdminSecurityFiles

Creates the WebLogic Domain Administrator user security files for the domain selected in the environment

createNMSecurityFiles

Creates the Node Manager Administrator user security files for the node manager declared in the select WebLogic Domain domain.properties file.

Unix service scripts

Init.d services

Two init.d templates are provided in the ${DMK_HOME}/templates/init.d directory

DefaultNodeMgr

The Default Node Manager is to be used if several WebLogic Domains have to be managed from a unique Node Manager. It requires that the nodemanager.properties and nodemanager.domains configuration files exist in the ${MW_HOME}/oracle_common/common/nodemanager directory. If they do not exist, thay have to be created. The nodemgr service can be installed as:

  1. As root user, Install the DefaultNodeMgr file as /etc/init.d/nodemgr

  2. Give the execution right to the nodemgr

 chmod +x /etc/init.d/nodemgr  
  1. Add the service to the Unix system

chkconfig --add nodemgr  
  1. Check if the service is added correctly to the list of Unix services

chkconfig –list  
  1. The service can be managed using the following commands:

/sbin/service nodemgr [start|stop|status]  

DomainNodeManager

The WebLogic Domain Node Manager is dedicated to one specific domain. The Node Manager configuration files are created automatically at WebLogic Domain creation time. The nodemgr service can be installed as:

  1. Confirm the domain name and path the DomainNodeMgr file

  2. As root user Install the DomainNodeMgr file as /etc/init.d/nodemgr

  3. Give the execution right to the nodemgr

chmod +x /etc/init.d/nodemgr
  1. Add the service to the Unix system

chkconfig --add nodemgr
  1. Check if the service is added correctly to the list of Unix services

chkconfig –list
  1. The service can be managed using the following commands:

/sbin/service nodemgr [start|stop|status]

Sytemd services

Two templates are provided in the ${DMK_HOME}/templates/systemd directory.

oracle_nodemanager_dbiDomain.service

This file allows to start and stop a node manager as a Unix Service. Make sure to update the variables for the service to work properly:

Place holder
description

{{ oracle_user }}

The unix user the should run the Node Manager

{{ oracle_group }}

The unix group associated with the Node Manager

{{ domain_home }}

The WebLogic Domain path

oracle_weblogic_dbiDomain.service

This file allows to start and stop a specific WebLogic Domain at Unix start and Stop

Place Holder
Description

{{ oracle_user }}

The unix user the should run the Node Manager

{{ oracle_group }}

The unix group associated with the Node Manager

{{ domain_home }}

The WebLogic Domain path

{{ DMK_HOME }}

The path to the DMK installation directory

{{ MW_CONFIG_HOME}}

The path to the domains root directories

Installation and configuration of those services

The files have to be installed in /etc/systemd/system. Once they are installed, the following command have to run as root user to enable and start/stop the services:

systemctl enable oracle_nodemanager_dbiDomain.service
systemctl start oracle_nodemanager_dbiDomain.service
systemctl stop oracle_nodemanager_dbiDomain.service
  
systemctl enable oracle_weblogic_dbiDomain.service
systemctl start oracle_weblogic_dbiDomain.service
systemctl stop oracle_weblogic_dbiDomain.service

The status can be checked using the “systemctl status <service_name>”

Last updated