How to check status of Managed Servers under weblogic console from linux instead of browser URL.

Issue:
While accessing the EBS 12.2.13 Weblogic Console to check health status of EBS managed server the browser redirects to below error as a security restriction:
The Server is not able to service this request: [Socket:000445]Connection rejected, filter blocked Socket, weblogic.security.net.FilterException: [Security:090220]rule 2

Solution:
Connect to application from OS/Linux terminal/putty

Source EBS 12.2 Run File system environment

Last login: Mon Apr 15 09:35:16 2024

E-Business Suite Environment Information


File System Type: SINGLE
RUN File System : /d01/UAT/ebiz/fs1/EBSapps/appl
PATCH File System : NOT APPLICABLE
Non-Editioned File System : /d01/UAT/ebiz/fs_ne

DB Host: ebsuat.erp.com Service/SID: UAT

Sourcing the RUN File System …

[appluat@ebsuat ~]$ echo $FMW_HOME
/d01/UAT/ebiz/fs1/FMW_Home
[appluat@ebsuat ~]$

[appluat@ebsuat ~]$ cd /d01/UAT/ebiz/fs1/FMW_Home
[appluat@ebsuat FMW_Home]$ cd wlserver_10.3/common/bin/
[appluat@ebsuat bin]$
[appluat@ebsuat bin]$ pwd
/d01/UAT/ebiz/fs1/FMW_Home/wlserver_10.3/common/bin
[appluat@ebsuat bin]$ ls -lrt
total 112
-rwxr-x—. 1 appluat dba 31219 Oct 7 2023 wlscontrol.sh
-rwxr-x—. 1 appluat dba 2089 Oct 7 2023 unpack.sh
-rwxr-x—. 1 appluat dba 2276 Oct 7 2023 config.sh
-rwxr-x—. 1 appluat dba 786 Oct 7 2023 wlst.sh
-rwxr-x—. 1 appluat dba 13854 Oct 7 2023 wlsifconfig.sh
-rwxr-x—. 1 appluat dba 3300 Oct 7 2023 upgrade.sh
-rwxr-x—. 1 appluat dba 1450 Oct 7 2023 stopDerby.sh
-rwxr-x—. 1 appluat dba 4090 Oct 7 2023 startManagedWebLogic.sh
-rwxr-x—. 1 appluat dba 4084 Oct 7 2023 startDerby.sh
-rwxr-x—. 1 appluat dba 2581 Oct 7 2023 pack.sh
-rwxr-x—. 1 appluat dba 2124 Oct 7 2023 config_builder.sh
-rwxr-x—. 1 appluat dba 22785 Oct 7 2023 commEnv.sh
-rwxr-x—. 1 appluat dba 1586 Oct 7 2023 setPatchEnv.sh

[appluat@ebsuat bin]$
[appluat@ebsuat bin]$ hostname
[appluat@ebsuat bin]$ ebsuat.erp.com
[appluat@ebsuat bin]$
[appluat@ebsuat bin]$ cat $CONTEXT_FILE | grep s_wls_adminport
[appluat@ebsuat bin]$ cat $CONTEXT_FILE | grep s_wls_adminport
7011
[appluat@ebsuat ~]$

===============================================
$FMW_HOME/common/bin/wlst.sh

[appluat@ebsuat bin]$ ./wlst.sh

CLASSPATH=/d01/UAT/ebiz/fs1/FMW_Home/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/d01/UAT/ebiz/fs1/EBSapps/comn/util/jdk64/lib/tools.jar:/d01/UAT/ebiz/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic_sp.jar:/d01/UAT/ebiz/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/d01/UAT/ebiz/fs1/FMW_Home/modules/features/weblogic.server.modules_10.3.6.0.jar:/d01/UAT/ebiz/fs1/FMW_Home/wlserver_10.3/server/lib/webservices.jar:/d01/UAT/ebiz/fs1/FMW_Home/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/d01/UAT/ebiz/fs1/FMW_Home/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/d01/UAT/ebiz/fs1/EBSapps/comn/util/jdk32/lib/dt.jar:/d01/UAT/ebiz/fs1/EBSapps/comn/util/jdk32/lib/tools.jar:/d01/UAT/ebiz/fs1/EBSapps/comn/util/jdk32/jre/lib/rt.jar:/d01/UAT/ebiz/fs1/EBSapps/comn/shared-libs/ebs-3rdparty/WEB-INF/lib/ebs3rdpartyManifest.jar:/d01/UAT/ebiz/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-fmw/WEB-INF/lib/ebsFMWManifest.jar:/d01/UAT/ebiz/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar:/d01/UAT/ebiz/fs1/FMW_Home/oracle_common/modules/oracle.uix_11.1.1/uix2.jar:/d01/UAT/ebiz/fs1/EBSapps/comn/java/classes:/d01/UAT/ebiz/fs1/EBSapps/10.1.2/forms/java:/d01/UAT/ebiz/fs1/EBSapps/10.1.2/forms/java/frmall.jar:/d01/UAT/ebiz/fs1/EBSapps/10.1.2/jlib/ewt3.jar:/d01/UAT/ebiz/fs1/EBSapps/10.1.2/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar:/d01/UAT/ebiz/fs1/FMW_Home/utils/config/10.3/config-launch.jar::/d01/UAT/ebiz/fs1/FMW_Home/wlserver_10.3/common/derby/lib/derbynet.jar:/d01/PROD/ebiz/fs1/FMW_Home/wlserver_10.3/common/derby/lib/derbyclient.jar:/d01/UAT/ebiz/fs1/FMW_Home/wlserver_10.3/common/derby/lib/derbytools.jar::

Initializing WebLogic Scripting Tool (WLST) …

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands
wls:/offline>

====================================================

You will be arrived to this Prompt –> wls:/offline>

===================================================

Use the respective values from the commands: hostname and grep s_wls_adminport above and below

wls:/offline> connect(“weblogic”,”wlscslpwd”,”ebsuat.erp.com:7011″)

Connecting to t3://ebsuat.erp.com:7011 with userid weblogic …
Successfully connected to Admin Server ‘AdminServer’ that belongs to domain ‘EBS_domain’.

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or Admin port should be used instead

wls:/EBS_domain/serverConfig> x=ls(‘Servers’,returnMap=’true’)
dr– AdminServer
dr– forms-c4ws_server1
dr– forms_server1
dr– oacore_server1
dr– oafm_server1

wls:/EBS_domain/serverConfig>

=======================================================
wls:/EBS_domain/serverConfig> x
[AdminServer, forms-c4ws_server1, forms_server1, oacore_server1, oafm_server1]
wls:/EBS_domain/serverConfig>

=======================================================

wls:/EBS_domain/serverConfig> for i in x: state(i,’Server’)

Current state of ‘AdminServer’ : RUNNING
Current state of ‘forms-c4ws_server1’ : SHUTDOWN
Current state of ‘forms_server1’ : RUNNING
Current state of ‘oacore_server1’ : RUNNING
Current state of ‘oafm_server1’ : RUNNING
wls:/EBS_domain/serverConfig>
wls:/EBS_domain/serverConfig>

wls:/EBS_domain/serverConfig> exit

========================================================

This entry was posted in Uncategorised. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *