Breaking News
Home / ServerSide / Weblogic / How to check if Weblogic Server is Up via command Line?

How to check if Weblogic Server is Up via command Line?

Weblogic Command to Bounce PoolThe following command line Windows BAT shell script can be used to remotely found out if the weblogic Server is up and running. It uses weblogic.Admin class/utility to issue a CONNECT command and see if the server is up and running. The weblogic server credentials are needed to authenticate and connect to the server remotely.

<!>Script

@echo off
@rem set environment variable for WebLogic Home
set WL_HOME=f:beaweblogic81
@rem set the environment
call %WL_HOME%serverbinsetWLSEnv.cmd
@rem Run the Administration Command
echo off
java weblogic.Admin -url t3://localhost:7001 -username %1 -password %2 CONNECT
echo off
if %ERRORLEVEL% == 1 (
    echo Server is DOWN.
) else (
    echo Server is UP.
)

[pb_builder]

Check Also

Error – Remote side declared peer gone on this JVM

Issue When trying to sent a JMS message to a remote Weblogic Application Server the …

Advertisment ad adsense adlogger