PnP Commands

pnp action

To start, stop, and restart a PnP action,use the pnp action command in global configuration mode.

pnp action command {start | stop | restart}

Syntax Description

start

Starts a PnP action.

stop

Stops a PnP action.

restart

Restarts a PnP action.

Command Default

None

Command Modes

Global configuration (config)

Command History

Release Modification
3.5.1

This command was introduced.

Examples

The following example shows how to use the pnp action command:


nfvis(config)# pnp action command start
nfvis(config)# pnp action command stop
nfvis(config)# pnp action command restart
nfvis(config)# commit

pnp automatic

To enable or disable automatic mode for PnP discovery process, use the pnp automatic command in global configuration mode. Use the no form of this command to put the automatic PnP discovery method in default mode (enabled) with a retry timeout of 60 seconds.

pnp automatic {cco | cco-ipv6 | dhcp | dhcp-ipv6 | dns-ipv6 | dns | timeout value} {enable | disable}

no pnp automatic

Syntax Description

cco

Specifies the use of the Cisco Cloud Device Redirect tool available in the Cisco Software Central for automatic PnP discovery.

cco-ipv6

Specifies the use of the Cisco Cloud Device Redirect tool available in the Cisco Software Central for automatic PnP discovery for IPv6.

dhcp

Specifies the use of a IPv4 DHCP server for automatic PnP discovery.

dhcp-ipv6

Specifies the use of a IPv6 DHCP server for automatic PnP discovery.

dns

Specifies the use of a IPv4 DNS server for automatic PnP discovery.

dns-ipv6

Specifies the use of a IPv6 DNS server for automatic PnP discovery.

timeout value

Specifies the timeout value in seconds. The default value is 60.

enable

Enables the PnP discovery method.

disable

Disables the PnP discovery method.

Command Default

The automatic discovery mode for DHCP, DNS, and CCO is enabled.

Command Modes

Global configuration (config)

Command History

Release Modification
3.5.1

This command was introduced.

Usage Guidelines

You can enable or disable the options as required. For example, you can enable all options or keep one enabled, and the rest disabled. 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 command.

Examples

The following example shows how to enable automatic mode for PnP discovery process:


nfvis(config)# pnp automatic dhcp enable
nfvis(config)# pnp automatic dns enable
nfvis(config)# pnp automatic cco enable
nfvis(config)# pnp automatic timeout 100
nfvis(config)# commit

pnp static

To specify a static IP address for the Cisco Network PnP server, use the pnp static command in global configuration mode. To remove the PnP static IP address configuration , use the no form of the command with the static keyword. To clear any PnP static and automatic configurations, and put all the automatic configurations in default mode, which is enabled, with a retry timeout of 60 seconds, use the no pnp command.

pnp static { ip-address ipv4-address | ipv6-address ipv6-address} [port number]

no pnp static

Syntax Description

ip-address ipv4-address

Specifies the IPv4 address.

ipv6-address ipv6-address

Specifies the IPv6 address.

port number

(Optional) Specifies the port number. Valid range is from 0 to 65535.

Command Default

None

Command Modes

Global configuration (config)

Command History

Release Modification

3.7.1

The ipv6-address parameter was added.

3.5.1

This command was introduced.

Usage Guidelines

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 .

Examples

The following example shows how to configure a static IP address for the Cisco Network PnP server:


nfvis(config)# pnp automatic dhcp disable
nfvis(config)# pnp automatic dns disable
nfvis(config)# pnp automatic cco disable
nfvis(config)# pnp static ip-address 192.0.2.0 port 80 
nfvis(config)# commit

show pnp

To verify the configuration of PnP discovery methods, use the show pnp command in privileged EXEC mode.

show pnp

Syntax Description

This command has no arguments or keywords.

Command Modes

Privileged EXEC (#)

Command History

Release Modification
3.5.1

This command was introduced.

Examples

The following sample output of the show pnp command 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.0
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