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,
Printable View
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,
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
------------------
[url=http://www.togotutor.com/forums/forum.php]Webmaster Forum Dofollow Links[/url]
Webmaster Forum with dofollow links
---------------------
try wlproc
It depends on what you need it to be able to run, and what sort of document management requirements you have.
use that script if you have weblogic managed server PID file
#!/bin/ksh
LOGDIR_V=<Log location>
tolookfor=`find <Log location> -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
$
use that below script if you have weblogic managed server pid file in log or domain location
#!/bin/ksh
LOGDIR_V=<Log location>
tolookfor=`find <Log location> -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
$