Structure
This chapter presents the structure of DMK.
DMK Directory structure
Name
Description
${DMK_BASE}
%WEBLOGIC_BASE%\local
${DMK_HOME} \bin
Contains all binaries & scripts
\etc
Contains configuration files
\lib
Contains all required perl libraries
\doc
Contains the documentation
\templates
Contains Various templates (scrips, configurations, profiles, aso …)
\wlst
Contains wlst scripts used to stop, start,..get domain status
\log
Contains log files
Prompt customization
A well designed prompt heightens WebLogic Administrators efficiency on all UNIX platforms is provided and can be customized. One of the most known advantages is to always see which WebLogic Domain is currently administrated.
weblogic@:\u01\app\weblogic\local\dmk\ [wlsdomain]
The customization takes directly place from the PowerShell profile file prompt function. See below:
# directory where my scripts are stored
$psdir="D:\app\weblogic\local\dmk\bin\dmk.ps1"
# load all 'autoload' scripts
Get-Item "${psdir}" | %{.$_}
function prompt {
# Print the current WebLogic domain selected:
Write-Host ("[") -nonewline -foregroundcolor DarkGray
Write-Host ( $ENV:WEBLOGIC_DOMAIN) -nonewline -foregroundcolor White
Write-Host ("][") -nonewline -foregroundcolor DarkGray
# Print the working directory:
Write-Host ($PWD) -nonewline -foregroundcolor Gray
Write-Host ("]") -nonewline -foregroundcolor DarkGray
}
Write-Host "Custom PowerShell Environment Loaded"
Last updated