Quantcast
Viewing all articles
Browse latest Browse all 14

Bash script to determine WebSphere Application Server Cell Name

A script to determine the WebSphere instance’s Cell Name

#!/bin/bash
if [[ -z "${1}" ]]; then
            echo "Please pass in a full path to the profile's location!"
            echo "e.g. getCellName.sh <path_to_profile>"
            exit 1
fi
theFile=${1}/bin/setupCmdLine.sh
cat ${theFile} | grep -oP '(?<=WAS_CELL=)[^ ]*'

 


Viewing all articles
Browse latest Browse all 14

Trending Articles