Hello, everyone, Today I will show you how to find WebLogic URL, it just by extracting some parameters from the application context file.
Go to application tier and invoke application run file system environment file
[oracle@ebsapps ]$cd /u01/oracle/PROD/fs1/EBSapps/appl
[oracle@ebsapps appl]$ . APPSPROD_prod.env
[oracle@ebsapps appl]$ grep -i "wls_admin" $CONTEXT_FILE
<wls_admin_host oa_var="s_wls_admin_host">prod</wls_admin_host>
<wls_admin_domain oa_var="s_wls_admin_domain">testing.com</wls_admin_domain>
<wls_admin_user oa_var="s_wls_admin_user">weblogic</wls_admin_user>
<wls_adminport oa_var="s_wls_adminport" oa_type="PORT" base="7001" step="1" range="-1" label="WLS Admin Server Port">7001< wls_adminport>
So from the above output the url should look like this
http://prod.testing.com:7001/console
We can also find out the url using command
[oracle@ebsapps appl]$ echo "http://"$(cat $CONTEXT_FILE | grep s_webhost | cut -d '>' -f2 | cut -d '<' -f1)"."$(cat $CONTEXT_FILE | grep s_wls_admin_domain | cut -d '>' -f2 | cut -d '<' -f1)":"$(cat $CONTEXT_FILE | grep s_wls_adminport | cut -d '>' -f2 | cut -d '<' -f1)"/console"
http://prod.testing.com:7001/console
No comments:
Post a Comment