P Commands

Table Of Contents

P Commands

port-monitor activate

port-monitor enable

port-monitor name

port-type

poweroff module

power redundancy-mode


P Commands


This chapter describes the Cisco NX-OS system management commands that begin with the letter P.

port-monitor activate

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]

Syntax Description

policy-name

(Optional) Port-monitor policy. The maximum number of alphanumeric characters is 32.


Defaults

None

Command Modes

Global configuration (config)

Supported User Roles

network-admin
vdc-admin

Command History

Release
Modification

4.1(2)

This command was introduced.


Usage Guidelines

This command does not require a license.

Examples

This example shows how to activate an SNMP port-monitor policy:

switch(config)# port-monitor name policy_1
switch(config-port-monitor)# port monitor activate 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)#

Related Commands

Command
Description

counter

Configures an individual counter.


port-monitor enable

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.

port-monitor enable

no port-monitor enable

Syntax Description

This command has no arguments or keywords.

Defaults

None

Command Modes

Global configuration (config)

Supported User Roles

network-admin
vdc-admin

Command History

Release
Modification

4.1(2)

This command was introduced.


Usage Guidelines

This command does not require a license.

Examples

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)#

Related Commands

Command
Description

port-monitor activate

Activates the specified port-monitor policy.


port-monitor name

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.

port-monitor name policy-name

no port-monitor name policy-name

Syntax Description

policy-name

Policy name. The maximum number of alphanumeric characters is 32.


Defaults

None

Command Modes

Global configuration (config)

Supported User Roles

network-admin
vdc-admin

Command History

Release
Modification

4.1(2)

This command was introduced.


Usage Guidelines

This command does not require a license.

Examples

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 a SNMP port-monitor policy:

switch(config)# no port-monitor name PM1
switch(config)

Related Commands

Command
Description

port-monitor activate

Activates the specified port-monitor policy.


port-type

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}

Syntax Description

access-port

Configures port monitoring for access ports.

all

Configures port monitoring for all ports.

trunks

Configures port monitoring for trunk ports.


Defaults

None

Command Modes

Port-monitor configuration (config-port-monitor)

Supported User Roles

network-admin
vdc-admin

Command History

Release
Modification

4.1(2)

This command was introduced.


Usage Guidelines

This command does not require a license.

Examples

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)#

Related Commands

Command
Description

port-monitor activate

Activates the specified port-monitor policy.


poweroff module

To power off a module, use the poweroff module command. To return power to the module, use the no form of this command.

poweroff module module

no poweroff module module

Syntax Description

module

The module number. The range is from 1 to 18.


Defaults

None

Command Modes

Global configuration

Supported User Roles

network-admin
vdc-admin

Command History

Release
Modification

4.0(1)

This command was introduced.


Usage Guidelines

This command does not require a license.

Examples

This example shows how to power off module 2:

switch# poweroff module 2

Related Commands

Command
Description

show module

Displays information about a module.


power redundancy-mode

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}

Syntax Description

combined

Specifies the combined power supply mode.

force

(Optional) Forces the device to choose the combined mode without prompting the user.

insrc-redundant

Specifies the input source redundancy mode.

ps-redundant

Specifies the power supply redundancy mode.

single-input

(Optional) Specifies a single power input.

redundant

Specifies the full redundancy mode.


Defaults

ps-redundant

Command Modes

Global configuration mode

Supported User Roles

network-admin

Release
Modification

4.2(1)

This command was introduced.


Usage Guidelines

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:

Combined mode—This mode does not provide power redundancy. The available power for this mode is the total power capacity of all power supplies.

Input source redundancy mode—This mode utilizes two electrical grids, each one powering a half module within each power supply. If one power grid goes down, each power supply continues to draw power through its other half module. The available power is the amount of power by the lesser of the two grids through the power supplies.

Power supply redundancy mode—This mode provides an extra power supply in case an active power supply goes down. The power supply that can supply the most power operates in standby mode. The other one or two power supplies are active. The available power is the amount of power provided by the active power supply units.

Full redundancy mode—This mode combines power supply redundancy and input source redundancy, which means that the chassis has an extra power supply and one half of each power supply is connected to one electrical grid while the other half of each power supply is connected to the other electrical grid. The available power is the lesser of the available power for power supply redundancy mode and input source redundancy mode.

This command does not require a license.

Examples

This example shows how to configure the power supply redundancy mode:

switch# config t
switch(config)# power redundancy-mode ps-redundant

This example shows how to disable the power supply redundancy mode:

switch# config t
switch(config)# no power redundancy-mode ps-redundant

Related Commands

Command
Description

show environment power

Displays information about the power capacity and power distribution of the system.