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

 

 

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