2016년 5월 25일 수요일

[WebLogic] Log Switch

http://docs.oracle.com/cd/E21764_01/web.1111/e13739/config_logs.htm
http://docs.oracle.com/cd/E21764_01/web.1111/e13715/nav_edit.htm


Listing 3-5 Log Rotation on Demand

#invoke
WLSTC:\>java weblogic.WLST

#connect WLST to an Administration Server
wls:/offline> connect('weblogic','welcome1', 't3://localhost:7001')

#navigate to the ServerRuntime MBean hierarchy
wls:/ucm_domain/serverConfig> serverRuntime()
wls:/ucm_domain/serverRuntime>ls()

#navigate to the server LogRuntimeMBean
wls:/ucm_domain/serverRuntime> cd('LogRuntime/AdminServer')
wls:/ucm_domain/serverRuntime/LogRuntime/AdminServer> ls()
-r--   Name                                         AdminServer
-r--   Type                                         LogRuntime
-r-x   forceLogRotation                             java.lang.Void :

#force the immediate rotation of the server log file
wls:/ucm_domain/serverRuntime/LogRuntime/AdminServer> cmo.forceLogRotation()

------------------

wls:/offline> connect('weblogic','welcome1', 't3://localhost:7001')
wls:/ucm_domain/serverConfig> cmo
wls:/ucm_domain/serverConfig> cd('Servers')
wls:/ucm_domain/serverConfig/Servers> ls()
wls:/ucm_domain/serverConfig/Servers> cd('AdminServer')
wls:/ucm_domain/serverConfig/Servers/AdminServer> cd('AdminServer')
wls:/ucm_domain/serverConfig/Servers/AdminServer> cd('Log/AdminServer')

wls:/ucm_domain/serverRuntime> cd('LogRuntime/UCM_server1')

댓글 없음:

댓글 쓰기