The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS system management commands that begin with the letter P.
To activate a Simple Network Management Protocol (SNMP) port-monitor policy, use the port-monitor activate command. To deactivate a port-monitor policy, use the no form of this command.
port-monitor activate [ policy-name ]
no port-monitor activate [ policy-name ]
(Optional) Port-monitor policy. The maximum number of alphanumeric characters is 32. |
Global configuration mode (config)
|
|
This example shows how to activate an SNMP port-monitor policy:
switch(
config)#
port-monitor name policy_1
switch(
config)#
This example shows how to deactivate a port-monitor policy:
switch(
config-port-monitor)#
no port-monitor activate policy_1
switch(
config)#
|
|
---|---|
To enable the Simple Network Management Protocol (SNMP) port-monitor feature, use the port-monitor enable command. To disable the port-monitor feature, use the no form of this command.
Global configuration mode (config)
|
|
This example shows how to enable the SNMP port-monitor feature:
switch(config)#
port-monitor enable
switch(config)#
This example shows how to disable the SNMP port-monitor feature:
switch(config)#
no port-monitor enable
switch(config)#
|
|
---|---|
To create a Simple Network Management Protocol (SNMP) port-monitor policy, use the port-monitor name command. To delete a port-monitor policy, use the no form of this command.
no port-monitor name policy-name
Policy name. The maximum number of alphanumeric characters is 32. |
Global configuration mode (config)
|
|
This example shows how to create an SNMP port-monitor policy:
switch(
config)#
port-monitor name PM1
switch(
config-port-monitor)#
This example shows how to remove an SNMP port-monitor policy:
switch(
config)#
no
port-monitor name PM1
switch(
config)
|
|
---|---|
To configure a port type for the Simple Network Management Protocol (SNMP) port monitoring, use the port-type command. To delete the port-type configuration for port monitoring, use the no form of this command.
port-type { access-port | all | trunks }
no port-type { access-port | all | trunks }
Port-monitor configuration (config-port-monitor)
|
|
This example shows how to configure a port type for the SNMP port-monitor configuration:
switch(
config)#
port-monitor name PM1
switch(config-port-monitor)#
port-type all
switch(config-port-monitor)#
This example shows how to remove a port-type configuration:
switch(config-port-monitor)#
no
port-type all
switch(config-port-monitor)#
|
|
---|---|
To enable Energy Efficient Ethernet (EEE) for the port or port range, use the power efficient-ethernet command. To disable this feature, use the no form of this command.
power efficient-ethernet auto | sleep threshold aggressive
no power efficient-ethernet auto | sleep threshold aggressive
|
|
This example shows how to enable auto negotiation for EEE for the port or port range:
This example shows how to enable EEE LPI threshold aggressive sleep mode:
|
|
---|---|
To power off a module, use the poweroff module command. To return power to the module, use the no form of this command.
Global configuration mode (config)
|
|
This example shows how to power off module 2:
switch#
poweroff module 2
|
|
---|---|
To configure the power supply redundancy mode, use the power redundancy-mode command. To disable this mode, use the no form of this command.
power redundancy-mode { combined [ force ] | insrc-redundant | ps-redundant [ single-input ] | redundant }
no power redundancy-mode { combined [ force ] | insrc-redundant | ps-redundant [ single-input ] | redundant }
(Optional) Forces the device to choose the combined mode without prompting the user. |
|
Global configuration mode (config)
|
|
You can use the power redundancy-mode command only in the default virtual device context (VDC).
You can configure the power supplies with the following modes:
This example shows how to configure the power supply redundancy mode:
This example shows how to disable the power supply redundancy mode:
|
|
---|---|
Displays information about the power capacity and power distribution of the system. |
To configure the interval between Precision Time Protocol (PTP) announce messages on an interface or the number of PTP intervals before a timeout occurs on an interface, use the ptp announce command. To remove the interval configuration for PTP messages, use the no form of this command.
ptp announce {interval seconds | timeout count}
no ptp announce {interval seconds | timeout count}
Specifies the interval between Precision Time Protocol (PTP) announce messages on an interface. |
|
Specifies the number of PTP intervals before a timeout occurs on an interface. |
|
Interface configuration mode (config-if)
|
|
Make sure that you are in the correct virtual device context (VDC). To change the VDC, use the switchto vdc command.
Make sure that you have globally enabled PTP on the device and configured the source IP address for PTP communication.
This example shows how to configure the interval between PTP announce messages on an interface:
This example shows how to remove the interval configuration for PTP messages:
To configure the minimum interval allowed between Precision Time Protocol (PTP) delay-request messages when the port is in the master state, use the ptp delay-request minimum interval command. To remove the minimum interval configuration for PTP delay-request messages, use the no form of this command.
ptp delay-request minimum interval seconds
no ptp delay-request minimum interval seconds
Interface configuration mode (config-if)
|
|
Make sure that you are in the correct virtual device context (VDC). To change the VDC, use the switchto vdc command.
Make sure that you have globally enabled PTP on the device and configured the source IP address for PTP communication.
This example shows how to configure the minimum interval allowed between PTP delay-request messages:
This example shows how to remove the minimum interval configuration for PTP delay-request messages:
To configure a domain number for the Precision Time Protocol (PTP) clock, use the ptp domain command. To remove the domain configuration for the PTP clock, use the no form of this command.
Global configuration mode (config)
|
|
This example shows how to configure a domain number for the PTP clock:
This example shows how to remove the PTP domain configuration:
|
|
---|---|
Configures the priority1 value to use when advertising this clock. |
|
Configures the priority2 value to use when advertising this clock. |
|
To configure an encapsulation for the Precision Time Protocol (PTP), use the ptp encapsulation command. To deactivate the encapsulation, use the no form of this command.
ptp encapsulation {layer-2 | layer 3}
no ptp encapsulation {layer-2 | layer 3}
Global configuration mode (config)
|
|
This example shows how to configure PTP Layer 2 encapsulation:
|
|
---|---|
Configures the maximum estimate switch latency value in nano-secs (ns). |
|
To configure the Precision Time Protocol (PTP) device mode, use the ptp mode command. To deactivate the device mode, use the no form of this command.
ptp mode {boundary-clock | generalized-ptp | transparent-clock}
no ptp mode {boundary-clock | generalized-ptp | transparent-clock}
Global configuration mode (config)
|
|
This example shows how to configure PTP mode:
|
|
---|---|
Configures the maximum estimate switch latency value in nano-secs (ns). |
|
Displays link delay and residency delay information for all interfaces. It is used in AVB. |
|
To configure the maximum estimate switch latency value for Precision Time Protocol (PTP), use the ptp switchlatency-estimated command. To reset the maximum estimate switch latency value, use the no form of this command.
ptp switchlatency-estimated value
no ptp switchlatency-estimated value
The maximum estimate switch latency value. It is used in AVB. Range: 0 to 2147483647 ns. Default: 5000 ns. |
Global configuration mode (config)
|
|
This example shows how to configure the estimated value for switch latency:
|
|
---|---|
To configure the priority1 value when advertising the Precision Time Protocol (PTP) clock, use the ptp priority1 command. To remove the priority1 value, use the no form of this command.
no ptp priority1 priority-number
Global configuration mode (config)
|
|
This example shows how to configure the priority1 value when advertising the PTP clock:
This example shows how to remove the priority1 value when advertising the PTP clock:
|
|
---|---|
Configures the priority2 value to use when advertising this clock. |
|
To configure the priority2 value when advertising the Precision Time Protocol (PTP) clock, use the ptp priority2 command. To remove the priority2 value when advertising the PTP, use the no form of this command.
no ptp priority2 priority-number
Global configuration mode (config)
|
|
This example shows how to configure the priority2 value when advertising the PTP clock:
This example shows how to remove the priority2 value configuration for use when advertising the PTP clock:
|
|
---|---|
Configures the priority1 value to use when advertising this clock. |
|
To configure the global source for all the Precision Time Protocol (PTP) packets, use the ptp source command. To remove the global source for PTP packets, use the no form of this command.
ptp source ip_address [vrf vrf-id]
no ptp source ip_address [vrf vrf-id]
Global configuration mode (source)
|
|
This example shows how to configure the global source for all PTP packets:
This example shows how to remove the global source configuration for all PTP packets:
|
|
---|---|
Configures the priority1 value to use when advertising this clock. |
|
Configures the priority2 value to use when advertising this clock. |
|
To configure the interval between Precision Time Protocol (PTP) synchronization messages on an interface, use the ptp sync interval command. To remove the interval configuration for PTP messages synchronization, use the no form of this command.
Interface configuration mode (config-if)
|
|
Make sure that you are in the correct virtual device context (VDC). To change the VDC, use the switchto vdc command.
Make sure that you have globally enabled PTP on the device and configured the source IP address for PTP communication.
This example shows how to configure the interval between PTP synchronization messages on an interface:
This example shows how to remove the interval configuration for PTP messages synchronization:
To configure the Precision Time Protocol (PTP) VLAN value on an interface, use the ptp vlan command. To remove the PTP VLAN value from an interface, use the no form of this command.
Interface configuration mode (config-if)
|
|
Make sure that you are in the correct virtual device context (VDC). To change the VDC, use the switchto vdc command.
Make sure that you have globally enabled PTP on the device and configured the source IP address for PTP communication.
This example shows how to configure the PTP VLAN value on an interface:
This example shows how to remove the PTP VLAN value from an interface: