Cisco Systems OL-19806-03 manual Querying with the Name Attribute

Page 42

Chapter 2 Managing Multiple Entities

Examples

Querying with the Name Attribute

To show the power usage of the domain entities with names beginning with shipping and with importance values less than or equal to 80, run this query on Switch 1:

Switch# energywise query importance 80 name shipping.* collect usage

EnergyWise query, timeout is 3 seconds:

Host

Name

Usage

 

Level

Imp

----

----

-----

 

-----

---

192.168.20.1

shipping.1

6.3

(W)

10

1

192.168.20.2

shipping.2

8.5

(W)

10

1

Queried: 2

Responded: 2

Time: 0.4 seconds

 

 

 

The first row (shipping.1) is from Switch 1. The second row (shipping.2) is from Switch 2, a neighbor of Switch 1.

Querying with Keywords

To show the power usage of IP phones with different names, different roles, and importance values less than or equal to 80, but all that have the Admin keyword, run this query on Switch 1:

Switch# energywise query importance 80 keyword Admin collect usage

EnergyWise query, timeout is 3 seconds:

Host

Name

Usage

 

Level

Imp

----

----

-----

 

-----

---

192.168.40.2

shipping.1

6.3

(W)

10

1

192.168.50.2

orders.1

10.3

(W)

10

1

192.168.60.3

pc.1

200.0

(W)

8

75

Queried: 3

Responded: 3

Time: 0.5 seconds

 

 

 

Switch 1 reports two phones connected to Switch 2, a neighbor of Switch 1.

Querying to Set Power Levels

Run these queries on Switch 1 to

Set the power level of the shipping.2 entity to 0:

Switch# energywise query importance 80 name shipping.2 set level 0

Manually set the power level of the shipping.1 entity and the shipping.2 entity to 0:

Switch# energywise query importance 90 name shipping.* set level 0

Set the power level of devices that have the keyword Admin to 10:

Switch# energywise query importance 60 keyword Admin set level 10

EnergyWise query, timeout is 3 seconds:

!!!!

Success rate is (2/2) setting entities

Queried: 2

Responded: 2

Time: 0.15 seconds

Cisco EnergyWise Configuration Guide

2-6

OL-19806-03

 

 

Image 42
Contents Cisco EnergyWise Configuration Guide Americas HeadquartersCisco EnergyWise Configuration Guide N T E N T S Important Notice C-1 Audience PurposeConventions Preface Related Publications For information about the Cisco network devices, seeObtaining Documentation, Support, and Security Guidelines Managing Single Entities Overview Network management stations Domain membersCreating an EnergyWise Domain Power Levels Category Level DescriptionRecurring Event Definition DefaultsAttributes Secure Domain CommunicationMIBs Switch Connected to an IP Phone Management station Domain memberSwitch Connected to a PC Switch and PC ScenarioConfiguration Guidelines Cisco EnergyWise Configuration Guide Using the Call In-Progress Feature This is the configuration for the PoE portEnergyWise Entity PoE Mode Auto Never Static PoE and EnergyWise InteractionsPreventing Network Access to a Non-Cisco End Point CLI Compatibility Issues PC without Access to the EnergyWise Network and the InternetManually Managing Power Enabling EnergyWise, Configuring Entity Attributes,Command Purpose Energywise keywords word,word Shared-secret 0 7 mgmt-password portEnergywise importance importance Energywise management securityEnergywise role role Energywise name nameEnergywise neighbor hostname ip-address Energywise allow query save setEnergywise level level Copy running-config startup-configInterface interface-id Show energywise childrenEnergywise name name Energywise role roleEnergywise activitycheck Configuring Recurring EventsShow running-config Energywise allow query setMonday , Tuesday , Wednesday , Thursday , Friday Copy running-config startup-config Energywise level level recurrence importanceShow energywise recurrence Command Mode Purpose Dayofmonth month Dayofweek timerangeDisabling EnergyWise To power on the lab IP phones ExamplesAutomatically Managing Power To power off anIP phone connected to a PoE portIf the time range has end times and days such as Pc-mgrManaging Multiple Entities Running QueriesManaging Multiple Entities Running Queries Multiple Switches Connected to Multiple End Points Management station End point Domain memberEnergywise query importance importance Using Queries to Manage Power in the DomainDelta usage timeout timeout Keywords word,word, ... name name collectOptional Runs a query to power on or off the domain members Keywords word,word, ... name name set levelQuerying with the Name Attribute Setting the Time-Out Value Verify the power levelsOL-19806-03 EnergyWise CLI Commands Clear energywise neighbors Endpoint Debug energywiseDebug energywise endpoint management ManagementSave-Responds to a query to save the running configuration Energywise global configurationDomain member, configures the switch to Energywise allow query save setNeighbor hostname Level levelName name Role roleNeighbors are not assigned Role is the model number KeywordsAllow query save set keywords were added Management passwords Activitycheck Energywise interface configurationNo energywise domain Allow query setImportance importance Keywords word,wordRecurrence Time-rangeCommand Default Command Modes Command History SecurityUdp port Absolute Command Description Ntp-shared-secret Energywise domainSecurity Protocol udp portCommand Modes Command History Related Commands DescriptionUsage Guidelines Examples Timeout timeout Energywise queryCollect delta usage Members and end points Set level levelSum delta usage Delta-Display the delta vectorSwitch# energywise query importance 90 name * collect delta These examples show how to filter results with keywords Switch# energywise query importance 90 name * set levelLevel-change Snmp-server enable traps energywiseEvent-occured Neighbor-addedTo send EnergyWise traps to the NMS To send only EnergyWise event traps to the NMSShow energywise Switch# show energywise children Domain Cisco Protocol Statistics Energywise interface configuration Energywise global configurationEnables and configures EnergyWise on the entity Configures EnergyWise on the PoE portOL-19806-03 Using CLI Commands Verifying the Power Usage Cisco EnergyWise and Catalyst 4500 Switches OL-19806-03 Cisco EnergyWise and Catalyst 6500 Switches OL-19806-03 Important Notice DisclaimerCisco EnergyWise Configuration Guide Statement 1071-Warning Definition Bewaar Deze InstructiesWarnung Wichtige Sicherheitshinweise Avvertenza Importanti Istruzioni Sulla SicurezzaAviso Instruções Importantes DE Segurança Guarde Estas InstruçõesGEM Disse Anvisninger Page OL-19806-03