NetWorker: Jak włączyć debugowanie interfejsu API REST

Summary: Ten artykuł zawiera instrukcje dotyczące włączania debugowania wywołań interfejsu programowania aplikacji (API) interfejsu programowania aplikacji (REST) Representational State Transfer (REST) wykonywanych w 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

  1.  Zaloguj się do serwera NetWorker.
  2.  Utwórz kopię pliku 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
  1. Otwórz plik logback.xml za pomocą edytora tekstu i wprowadź poniższą zmianę:
<!-- 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">

Do:

<!-- 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">
UWAGA: zmień podświetlone wartości poziomu z "warn" na "debug". Przenieś --> z końca wierszy WebApi na koniec wiersza komentarza. Dane w "<-- -->" są komentowane w XML i nie są odczytywane przez ustawienia usługi.
  1. Nie jest wymagane ponowne uruchomienie usługi. Odtworzenie problemu wymagającego debugowania interfejsu API REST. Aby wyłączyć debugowanie, cofnij zmiany lub usuń zmodyfikowany logback.xml i umieść kopię z powrotem na swoim miejscu.
  2. Zbierz restapi.log:
Linux:
/nsr/logs/restapi/restapi.log
Windows:
C:\Program Files\EMC NetWorker\nsr\logs\restapi\restapi.log
  1. Dzienniki uwierzytelniania NetWorker są również przydatne podczas rozwiązywania problemów związanych z interfejsem API REST:
Linux:
/nsr/authc/logs
Windows:
C:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\logs

Additional Information

Affected Products

NetWorker

Products

NetWorker Family, NetWorker Series
Article Properties
Article Number: 000206441
Article Type: How To
Last Modified: 01 ene 2026
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.