NetWorker: Come abilitare il debug API REST
Summary: Questo articolo fornisce istruzioni su come abilitare il debug per le chiamate API (Application Programming Interface) REST (Representational State Transfer) eseguite in NetWorker.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
- Accedere al server NetWorker.
- Creare una copia del file logback.xml:
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
- Aprire il file logback.xml con un editor di testo e apportare la modifica riportata di seguito:
<!-- 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">
A:
<!-- 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">
NOTA: modificare i valori di livello evidenziati da "warn" a "debug". Spostare il --> dalla fine delle righe WebApi alla fine della riga di commento. I dati all'interno di "<-- -->" sono commentati in XML e non letti dalle impostazioni del servizio.
- Non è necessario riavviare il servizio. Riprodurre il problema che richiede il debug dell'API REST. Per disabilitare il debug, annullare le modifiche o rimuovere il logback.xml modificato e rimettere la copia al suo posto.
- Raccogliere i restapi.log:
Linux:
/nsr/logs/restapi/restapi.log
Windows:
C:\Program Files\EMC NetWorker\nsr\logs\restapi\restapi.log
- I registri authc di NetWorker sono utili anche per la risoluzione dei problemi relativi all'API REST:
Linux:
/nsr/authc/logs
Windows:
C:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\logs
Additional Information
Affected Products
NetWorkerProducts
NetWorker Family, NetWorker SeriesArticle Properties
Article Number: 000206441
Article Type: How To
Last Modified: 01 كانون الثاني 2026
Version: 6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.