Command to view running weblogic manage server - Weblogic

This is a discussion on Command to view running weblogic manage server - Weblogic ; Hi all, I'm new at Unix. I would like to know the command for weblogic to view the running manage server and its instances. Also if we need to start/stop/restart an instance, how can we do this? Thanks,...

+ Reply to Thread
Results 1 to 6 of 6

Thread: Command to view running weblogic manage server

  1. Command to view running weblogic manage server

    Hi all,

    I'm new at Unix. I would like to know the command for weblogic to view the running manage server and its instances. Also if we need to start/stop/restart an instance, how can we do this?

    Thanks,

  2. Lightbulb Re: Command to view running weblogic manage server

    Well there are several ways to do so...

    you can use wlst scripts.

    Also you can use ps -ef | grep java and look for the processes running.

    To start stop. You can login to console and the click
    Env --> Servers --> Control --> stop.
    same way to start (only if you have nodemanager configured)/
    If not then you need to go to domainhome/startManagedWeblogic.sh script with the name of managed server you want to start.

    Thanks
    ITFORUMZ
    ------------------
    Webmaster Forum Dofollow Links
    Webmaster Forum with dofollow links
    ---------------------
    Last edited by itforumz; 09-01-2011 at 05:42 PM.

  3. Re: Command to view running weblogic manage server

    try wlproc

  4. Re: Command to view running weblogic manage server

    It depends on what you need it to be able to run, and what sort of document management requirements you have.

  5. Talking Re: Command to view running weblogic manage server

    use that script if you have weblogic managed server PID file

    #!/bin/ksh
    LOGDIR_V=

    tolookfor=`find -name "*.pidfile" | sort -u -t/ -k5,8`

    echo "LOGS Directory for Apps: $LOGDIR_V"
    echo

    printf "%-10s %-15s %-10s %-18s %-10s %-10s\n" STATUS PROCESS PID RECENT_START_TIME USER DOMAIN_PATH
    printf "%-10s %-15s %-10s %-18s %-10s %-10s\n" ------ ------- --- --------------- ---- -----------
    for i in $tolookfor
    do
    ps=`echo $i | cut -d. -f1 | cut -d/ -f6`
    pid=`cat $i`
    LST=`ls -l $i | awk ' { print $6 $7"-"$8 } '`
    USER=`ls -l $i | awk ' { print $3 } '`
    domain=/home/${USER}/BEA/`echo $i | cut -d. -f1 | cut -d/ -f4`
    tt=`ps -p $pid | grep -v "PID" | wc -l`
    if [ $tt -ge 1 ]; then
    printf "%-10s %-15s %-10s %-18s %-10s %-10s\n" [UP] $ps $pid $LST $USER $domain
    else
    printf "%-10s %-15s %-10s %-18s %-10s %-10s\n" [DOWN] $ps $pid $LST $USER $domain
    fi
    done

    exit
    $

  6. Re: Command to view running weblogic manage server

    use that below script if you have weblogic managed server pid file in log or domain location

    #!/bin/ksh
    LOGDIR_V=

    tolookfor=`find -name "*.pidfile" | sort -u -t/ -k5,8`

    echo "LOGS Directory for Apps: $LOGDIR_V"
    echo

    printf "%-10s %-15s %-10s %-18s %-10s %-10s\n" STATUS PROCESS PID RECENT_START_TIME USER DOMAIN_PATH
    printf "%-10s %-15s %-10s %-18s %-10s %-10s\n" ------ ------- --- --------------- ---- -----------
    for i in $tolookfor
    do
    ps=`echo $i | cut -d. -f1 | cut -d/ -f6`
    pid=`cat $i`
    LST=`ls -l $i | awk ' { print $6 $7"-"$8 } '`
    USER=`ls -l $i | awk ' { print $3 } '`
    domain=/home/${USER}/BEA/`echo $i | cut -d. -f1 | cut -d/ -f4`
    tt=`ps -p $pid | grep -v "PID" | wc -l`
    if [ $tt -ge 1 ]; then
    printf "%-10s %-15s %-10s %-18s %-10s %-10s\n" [UP] $ps $pid $LST $USER $domain
    else
    printf "%-10s %-15s %-10s %-18s %-10s %-10s\n" [DOWN] $ps $pid $LST $USER $domain
    fi
    done

    exit
    $

+ Reply to Thread