NetWorker: How to Enable REST API Debugging
Samenvatting: This article provides instructions on how to enable debugging for Representational State Transfer (REST) Application Programming Interface (API) calls performed in NetWorker.
Dit artikel is van toepassing op
Dit artikel is niet van toepassing op
Dit artikel is niet gebonden aan een specifiek product.
Niet alle productversies worden in dit artikel vermeld.
Instructies
- Log in to the NetWorker server.
- Make a copy of the logback.xml file:
Linux:
/nsr/authc/webapps/nwrestapi/WEB-INF/classes/logback.xml
Windows:
C:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\webapps\nwrestapi\WEB-INF\classes\logback.xml
- Open the logback.xml file with a text editor and make the below change:
<!-- Note: Supported levels are "error", "warn", "info", "debug", and "trace". --> <logger name="com.emc.nw.webapi" level="info"/> <logger name="com.emc.nw.comm" level="info"/> <logger name="com.emc.nw.util" level="info"/> <!-- Note: For API call logging, enable the following trace settings. <logger name="com.emc.nw.webapi.WebApiRequest" level="trace"/> <logger name="com.emc.nw.webapi.WebApiResponse" level="trace"/> --> <logger name="org.springframework" level="warn"/> <logger name="org.apache.cxf.jaxrs.provider" level="error"/> <root level="warn">
To:
<!-- Note: Supported levels are "error", "warn", "info", "debug", and "trace". --> <logger name="com.emc.nw.webapi" level="debug"/> <logger name="com.emc.nw.comm" level="debug"/> <logger name="com.emc.nw.util" level="debug"/> <!-- Note: For API call logging, enable the following trace settings. --> <logger name="com.emc.nw.webapi.WebApiRequest" level="trace"/> <logger name="com.emc.nw.webapi.WebApiResponse" level="trace"/> <logger name="org.springframework" level="debug"/> <logger name="org.apache.cxf.jaxrs.provider" level="debug"/> <root level="debug">
NOTE: change the highlighted level values from "warn" to "debug." Move the --> from the end of the WebApi lines to the end of the comment line. Data within "<!-- -->" is commented in XML and not read by the service settings.
- No service restart is required. Reproduce issue requiring REST API debugging. To disable debug, revert the changes or remove the modified logback.xml and put the copy back in its place.
- Collect the restapi.log:
Linux:
/nsr/logs/restapi/restapi.log
Windows:
C:\Program Files\EMC NetWorker\nsr\logs\restapi\restapi.log
- The NetWorker authc logs are also useful in troubleshooting REST API-related issues:
Linux:
/nsr/authc/logs
Windows:
C:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\logs
Extra informatie
Getroffen producten
NetWorkerProducten
NetWorker Family, NetWorker SeriesArtikeleigenschappen
Artikelnummer: 000206441
Artikeltype: How To
Laatst aangepast: 12 aug. 2025
Versie: 5
Vind antwoorden op uw vragen via andere Dell gebruikers
Support Services
Controleer of uw apparaat wordt gedekt door Support Services.