search cancel

How to enable full debug for webservices_rest calls

book

Article ID: 189811

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Need information on how to enable debug for the webservices_rest probe calls.

Environment

- UIM/UMP 9.02 or higher

Cause

- troubleshooting webservices_rest calls

Resolution

1. Download the log4j.properties files from the case
2. Deactivate the wasp Probe
3. Paste inside the "~\Nimsoft\probes\service\wasp\webapps\rest\WEB-INF\classes"
4. Open wasp.cfg file and take a backup of this
5. Search for <webservices_rest> in side cfg file and add the below string
        <log>
            <com.nimsoft.nms>
                loglevel = 5
            </com.nimsoft.nms>
        </log>

Ex: The <webservices_rest> tag will looks like as below

<webservices-rest>
        reloadable = true
        cross_context = true
        <log>
            <com.nimsoft.nms>
                loglevel = 5
            </com.nimsoft.nms>
        </log>
        load_on_startup = true
        unpack_war = true
        maintenance_mode_timeout = 30000
        path = /rest
        doc_base = webservices_rest
    </webservices-rest>

6. Restart the wasp probe
7. Wait for sometime and a new log file with the name "webservices_rest.log" is created inside the wasp folder.

Additional Information

log4j.rootLogger=DEBUG, R
log4j.appender.R=org.apache.log4j.RollingFileAppender 
log4j.appender.R.File=./webservices_rest.log 
log4j.appender.R.MaxFileSize=50MB 
log4j.appender.R.MaxBackupIndex=50 
log4j.appender.R.layout=org.apache.log4j.PatternLayout 
log4j.appender.R.layout.ConversionPattern= %d{dd MMM yyyy HH:mm:ss,SSS} %p %c{1} - %m%n

Attachments

1602672606391__log4j.properties get_app