---
title: ZTP
slug: enterprise-v6p1/tG07-ztp
createdAt: 2025-12-18T09:00:14.982Z
---

# <font color="#1d50a2">AsterNOS-ZTP</font>

This chapter provides examples on how to use Netconf to manage ZTP configurations on AsterNOS devices.

## <font color="#1d50a2">Enable ZTP</font>

Request example to set ztp admin status via rpc **set-ztp-admin-status**.

```xml
<set-ztp-admin-status>
  <enabled>true</enabled>
</set-ztp-admin-status>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:90f520b1-0da5-4bb9-85ed-81138ba10bdf">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Disable ZTP</font>

Request example to set ztp admin status via rpc **set-ztp-admin-status**.

```xml
<set-ztp-admin-status>
  <enabled>false</enabled>
</set-ztp-admin-status>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:dfe0e6f4-471e-4dc9-ab82-e0182efebf65">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">R</font>

Request example to restart ztp process via rpc **restart-ztp**.

```xml
<restart-ztp/>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:b34dc760-089e-454b-b0e3-36f9bb409b54">
  <ok/>
</rpc-reply>
```

## <font color="#1d50a2">Show ZTP Status</font>

Request example to show ztp status via rpc **show-ztp**.

```xml
<show-ztp/>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:4be3864b-e602-4bdb-b4ee-469a8bdec322">
  <data xmlns="http://asterfusion.com/ns/yang/asternos-ztp">
    ZTP Admin Mode : False
    ZTP Service    : Inactive
    ZTP Status     : Not Started

    ZTP Service is not running

  </data>
</rpc-reply>
```

## <font color="#1d50a2">Show ZTP Status Details</font>

Request example to show ztp status details via rpc **show-ztp**.

```xml
<show-ztp>
  <verbose>true</verbose>
</show-ztp>
```

Response example

```xml
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:31b66a2f-a6e3-4ea7-b2d1-e8053986f078">
  <data xmlns="http://asterfusion.com/ns/yang/asternos-ztp">
    Command: ztp status --verbose
    ========================================
    ZTP
    ========================================
    ZTP Admin Mode : False
    ZTP Service    : Inactive
    ZTP Status     : Not Started

    ZTP Service is not running

  </data>
</rpc-reply>
```

