From 66c25e9832b56d7d45b02f7da5012821a7dd0ff2 Mon Sep 17 00:00:00 2001
From: thl-cmk <thl-cmk@outlook.com>
Date: Fri, 20 Oct 2023 08:58:23 +0000
Subject: [PATCH] Update README.md

---
 pnp/README.md | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/pnp/README.md b/pnp/README.md
index f49da66..cc1ee29 100644
--- a/pnp/README.md
+++ b/pnp/README.md
@@ -13,6 +13,7 @@
   * [Command Line Options](pnp/README.md#command-line-options)
 * [PnP server discovery](pnp/README.md#pnp-server-discovery)
 * [PnP Status page](pnp/README.md#pnp-status-page)
+* [Debug the PnP process on the network device](pnp/README.md/debug-the-pnp-process-on-the-network-device)
 
 # Introduction
 
@@ -284,3 +285,34 @@ You can monitor the PnP progress on the PnP server status page.
 **Hint** you can change the status page output by modifying the [**_status.html_**](/pnp/templates/status.html) file in the templates' subdirectory.
 
 [back to top](pnp/README.md#plug-and-play-pnp-server-for-iosios-xe-based-devices)
+
+---
+### Debug the PnP process on the network device
+
+After the network devis is connected to the PnP server you can access the decvice on the console. This will not stop the PnP process any more.
+If the device conncted to the PnP server you sould find the PnP profile in the config i.e.
+```
+pnp profile pnp-zero-touch
+ transport http ipv4 192.168.10.133 port 8080
+end
+```
+By removing and re-creationg the PnP profile you will restart the PnP process for the device. This way you can also connect a device by hand to the PnP server.
+```
+conf t
+no pnp profile pnp-zero-touch
+pnp profile pnp-zero-touch
+ transport http ipv4 192.168.10.133 port 8080
+end
+```
+Here are some usefull commnads to debug the PnP process on the device
+```
+debug pnp service copy
+debug pnp service image-install
+debug pnp service config
+debug pnp service exec
+debug pnp service inventory
+debug pnp service script
+debug pnp service reload
+```
+
+[back to top](pnp/README.md#plug-and-play-pnp-server-for-iosios-xe-based-devices)
-- 
GitLab