To enable static mode for PnP discovery using IPv4:
configure terminal
pnp automatic dhcp disable
pnp automatic dns disable
pnp automatic cco disable
pnp static ip-address 192.0.2.8 port 80
commit
To enable static mode for PnP discovery using IPv6:
configure terminal
pnp automatic dhcp-ipv6 disable
pnp automatic dns-ipv6 disable
pnp automatic cco-ipv6 disable
pnp static ipv6-address 192.0.2.8 port 80
commit
Note |
Either IPv4 or IPv6 can be enabled at a time.
|
To enable static mode for PnP discovery using FQDN:
configure terminal
pnp static ip-address apic-em-fqdn.cisco.com port 80 transport http
commit
Note |
In FQDN support for PnP, domain names can be specified as an input. FQDN that is configured with IPv6 on a DNS server is
not supported.
|
To enable automatic mode for PnP discovery using IPv4:
Note |
By default, the automatic discovery mode for DHCP, DNS, and CCO is enabled. You can enable or disable the options as required.
For example, you can enable all options or keep one enabled, and the rest disabled.
|
configure terminal
pnp automatic dhcp enable
pnp automatic dns enable
pnp automatic cco enable
pnp automatic timeout 100
commit
To enable automatic mode for PnP discovery using IPv6:
configure terminal
pnp automatic dhcp-ipv6 enable
pnp automatic dns-ipv6 enable
pnp automatic cco-ipv6 enable
pnp automatic timeout 30
commit
Note |
You cannot disable both static and automatic PnP discovery modes at the same time. You must restart PnP action every time
you make changes to the PnP discovery configuration. You can do this using the pnp action command restart.
|
Verifying the PnP Status
Use the show pnp command in privileged EXEC mode to verify the configuration of PnP discovery methods. The following sample output shows that
the static discovery mode is enabled, and the automatic discovery mode is disabled.
nfvis# show pnp
pnp status response "PnP Agent is running\n"
pnp status ip-address 192.0.2.8
pnp status port 80
pnp status transport ""
pnp status created_by user
pnp status dhcp_opt43 0
pnp status dns_discovery 0
pnp status cco_discovery 0
pnp status timeout 100
nfvis#
FQDN
nfvis# show pnp
pnp status response "PnP Agent is running\nserver-connection\n status: Success\n time: 19:59:38 Feb 27\nbackoff\n status: Success\n time: 19:59:38 Feb 27\n"
pnp status ip-address apic-em-fqdn.cisco.com
pnp status ipv6-address ""
pnp status port 443
pnp status transport https
pnp status cafile /etc/pnp/certs/trustpoint/pnplabel
pnp status created_by user
pnp status dhcp_opt43 0
pnp status dns_discovery 0
pnp status cco_discovery 0
pnp status dhcp-ipv6 0
pnp status dns-ipv6 0
pnp status cco-ipv6 0
pnp status timeout 0
nfvis#
The following sample output shows that the static discovery mode is disabled, and the automatic discovery mode is enabled
for DHCP, DNS, and CCO:
DHCP:
nfvis# show pnp
pnp status response "PnP Agent is running\ncli-exec\n status: Success\n time: 18:30:57 Apr 21\nserver-connection\n status: Success\n time: 15:40:41 Apr 22\ncertificate-install\n status: Success\n time: 18:31:03 Apr 21\ndevice-auth\n status: Success\n time: 18:31:08 Apr 21\nbackoff\n status: Success\n time: 15:40:41 Apr 22\n"
pnp status ip-address 192.0.2.8
pnp status port 443
pnp status transport https
pnp status cafile /etc/pnp/certs/trustpoint/pnplabel
pnp status created_by dhcp_discovery
pnp status dhcp_opt43 0
pnp status dns_discovery 0
pnp status cco_discovery 0
pnp status timeout 60
DNS:
nfvis# show pnp
pnp status response "PnP Agent is running\ncli-exec\n status: Success\n time: 17:18:42 Apr 22\nserver-connection\n status: Success\n time: 17:20:00 Apr 22\ncertificate-install\n status: Success\n time: 17:18:47 Apr 22\ndevice-auth\n status: Success\n time: 17:18:53 Apr 22\nbackoff\n status: Success\n time: 17:20:00 Apr 22\n"
pnp status ip-address 192.0.2.8
pnp status port 443
pnp status transport https
pnp status cafile /etc/pnp/certs/trustpoint/pnplabel
pnp status created_by dns_discovery
pnp status dhcp_opt43 0
pnp status dns_discovery 0
pnp status cco_discovery 0
pnp status timeout 60
CCO:
nfvis# show pnp
pnp status response "PnP Agent is running\ncli-exec\n status: Success\n time: 17:18:42 Apr 22\nserver-connection\n status: Success\n time: 17:20:00 Apr 22\ncertificate-install\n status: Success\n time: 17:18:47 Apr 22\ndevice-auth\n status: Success\n time: 17:18:53 Apr 22\nbackoff\n status: Success\n time: 17:20:00 Apr 22\n"
pnp status ip-address 192.0.2.8
pnp status port 443
pnp status transport https
pnp status cafile /etc/pnp/certs/trustpoint/pnplabel
pnp status created_by cco_discovery
pnp status dhcp_opt43 0
pnp status dns_discovery 0
pnp status cco_discovery 0
pnp status timeout 60
PnP Server APIs and Commands
PnP Server APIs
|
PnP Server Commands
|
-
/api/config/pnp
-
/api/config/pnp?deep
|
-
pnp static ip-address
-
pnp automatic
-
show pnp
|