4. In a new Terminal window, navigate to middleware home for this tutorial: $ cd /scratch/u01/app/fmw/ 5. Change the directory: $ cd oracle_common/common/bin 6. Run the wlst.sh script. $ ./wlst.sh Initializing WebLogic Scripting Tool (WLST) ... Welcome to WebLogic Server Administration Scripting She ll Type help() for help on available commands wls:/offline>
If you are accessing WLST for the first time, Jython scans the JavaArchive (JAR) files that the WLST depends on before the welcomemessage and the WLST offline prompt are displayed.To change a server property by using WLST in interactive mode, performthe following steps:1. At the WLST prompt, enter the following command to connect to therunning administration server:wls:/offline>connect('<USERNAME>','<PASSWORD>','t3://<ADMIN_HOST>:<ADMIN_PORT>')Replace the sample argument values with those that match your domainenvironment. In this tutorial, the command is:Changing a Server Property
wls:/offline> connect('weblogic','welcome1','t3://localh ost:7001') Connecting to t3://localhost:7001 with userid weblogic ... Successfully connected to Admin Server "AdminServer" th at belongs to domain "mydomain". Warning: An insecure protocol was used to connect to th e server. To ensure on-the-wire security, the SSL port or Admin p ort should be used instead. wls:/mydomain/serverConfig/> Note: WLST always uses the t3 (or t3s) proprietary protocol to connect to a server. 2. Change to edit mode: wls:/mydomain/serverConfig/> edit() Location changed to edit tree. This is a writable tree with DomainMBean as the root. To make changes you will need to start an edit session via startEdit(). For more help, use help('edit').
3. Start an edit session to lock the configuration: wls:/mydomain/edit> startEdit() Starting an edit session ... Started edit session, be sure to save and activate your changes once you are done. wls:/mydomain/edit/ !> 4. Change to the Log directory of your administration server: wls:/mydomain/edit!>cd('Servers/<SERVER_NAME>/Log/<SERV ER_NAME>') Replace the sample argument values with those that match your domain environment. In this tutorial, the command is: wls:/mydomain/edit!> cd('Servers/AdminServer/Log/AdminSe rver') wls:/mydomain/edit/Servers/AdminServer/Log/AdminServer !>
You've reached the end of your free preview.
Want to read all 13 pages?
- Fall '19
- Server log, BEA Systems, OID, wlst