Configuration Examples To Select Modules To Shut Down; Using The Policy Default To Select Nonoverridden Modules To Shut Down; Using Parameter Substitution To Select Nonoverridden Modules To Shut Down; Configuration Examples For The Online Insertion Removal Event - Cisco Nexus 9000 Series Configuration Manual

Nx-os system management configuration guide, release 6.x
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Configuration Examples to Select Modules to Shut Down

This example shows how to shut down modules from a specified list of modules (1, 2, 7, 8) when the available
power drops below zero:
switch# configure terminal
switch(config)# event manager applet <myappletname4b> override __pfm_power_over_budget
switch(config-applet)# event poweroverbudget
switch(config-applet)# action 5 overbudgetshut module 1,2,7,8
switch(config-applet)# end
Configuration Examples to Select Modules to Shut Down

Using the Policy Default to Select Nonoverridden Modules to Shut Down

This example shows how to use the policy default to select the nonoverridden modules to shut down when a
major threshold is exceeded:
switch# configure terminal
switch(config)# event manager applet my5a1 override __pfm_tempev_major
switch(config-applet)# end
switch# configure terminal
switch(config)# event manager applet my5a2 override __pfm_tempev_major
switch(config-applet)# event temperature module 1-3 sensor 4 threshold major
switch(config-applet)# action 5 policy-default
switch(config-applet)# end

Using Parameter Substitution to Select Nonoverridden Modules to Shut Down

This example shows how to use parameter substitution to select the nonoverridden modules to shut down
when a major threshold is exceeded:
switch# configure terminal
switch(config)# event manager applet my5b1 override __pfm_tempev_major
switch(config-applet)# end
switch# configure terminal
switch(config)# event manager applet my5b2 override __pfm_tempev_major
switch(config-applet)# event temperature module 1-3 sensor 8 threshold major
switch(config-applet)# action 6 forceshut module my_module_list reset "temperature-sensor
policy trigger"
switch(config-applet)# end
To create event manager parameters, use the event manager environment command. To display the values
of event manager parameters, use the show event manager environment all command.

Configuration Examples for the Online Insertion Removal Event

The online insertion removal (OIR) event does not have a default policy.
This example shows how to configure the OIR event using the event oir command:
event oir device-type event-type [device-number]
The device-type can be fan, module, or powersupply.
The event-type can be insert, remove, or anyoir (insert or remove).
The optional device-number specifies a single device. If omitted, all devices are selected.
Cisco Nexus 9000 Series NX-OS System Management Configuration Guide, Release 6.x
248
Embedded Event Manager System Events and Configuration Examples

Advertisement

Table of Contents
loading

Table of Contents