How to capture traces for IBM HTTP Server and Websphere Application Server
 Technote (FAQ)
 
Problem
Instructions on how to capture -VV traces, NCF and NATIVE logs when running HTTP Server or WebSphere® Application Server for z/OS®
 
 
Solution

You can activate VV tracing in one of three ways:
  1. From OMVS shell enter: httpd -r /etc/httpd.conf -vv 2> /u/userid/vv.trace
  2. From your Webserver procedure, code the following in your jcl:

    //*IMWEBRMJ PROC LEPARM=,
    ICSPARM='-vv -r /u/userid/etc/httpd.conf',
    Note: You will need these DD statements in the PROC to capture the -vv trace
    //*************************************************
    //SYSIN DD DUMMY
    //OUTDSC OUTPUT DEST=HOLD
    //SYSTCPD DD DSN=SYS1.TCPPARMS(TCPDATA@),DISP=SHR
    //SYSPRINT DD SYSOUT=*,OUTPUT=(*.OUTDSC)
    //SYSERR DD SYSOUT=*,OUTPUT=(*.OUTDSC)
    //STDOUT DD SYSOUT=*,OUTPUT=(*.OUTDSC)
    //STDERR DD SYSOUT=*,OUTPUT=(*.OUTDSC)
    //SYSOUT DD SYSOUT=*,OUTPUT=(*.OUTDSC)
    <----[trace will be stored here (held output) or use the next line to store in a dataset.]
    //SYSOUT DD DSN=GERRYB.VV,DISP=(NEW,CATLG),SPACE=(TRK,(5,5),RLSE),
    // DCB=(DSORG=PS,RECFM=VB,LRECL=133,BLKSIZE=1330)
    //CEEDUMP DD SYSOUT=*,OUTPUT=(*.OUTDSC)
    //
  3. From your Webserver procedure you can add the PARM = statement:

//WEBSRV EXEC PGM=IMWHTTPD,REGION=0K,TIME=NOLIMIT,
//
PARM='ENVAR("_CEE_ENVFILE=/etc/httpd.envvars")/
// -r /u/user126/httpd.conf_89918_was -p 8126 -vv'


You can turn on NCF and native logging in WebSphere Application Server by coding the following in your was.conf file:

appserver.loglevel=INFO
appserver.logdirectory=some path
appserver.tracelevel=*=all=enabled
service.plugin.tracelevel=MOST

where some path is the path where the files are written.
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS > PD Tools(for example: Log Analyzer)
Operating system(s): z/OS
Software version: 4.0.1
Software edition:
Reference #: 1166035
IBM Group: Software Group
Modified date: May 25, 2004