EnergyWise SDK setup number of chilren: a question

Document created by cdnadmin on Jan 24, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Luigi Borghetti on 11-02-2011 06:34:01 AM

Hi EnergyWise Team


in the new version of energywise agent in cisco-energywise-toolkit v1.2-alpha 3-src.tar is possible to set the number of children the endpoint has, I presume to show the specific power consumption for each child. How is it possible to do it using CLI?


Thanks for your support


Subject: RE: EnergyWise SDK setup number of chilren: a question
Replied by: Brock Miller on 16-02-2011 03:01:45 PM

Hi EnergyWise Team


in the new version of energywise agent in cisco-energywise-toolkit v1.2-alpha 3-src.tar is possible to set the number of children the endpoint has, I presume to show the specific power consumption for each child. How is it possible to do it using CLI?


Thanks for your support

Hi,
 
I presume you are referring to the RefAgent in this case?  When running the RefAgent, you can supply the number of children to simulate on the command line using the '-n num_of_child' option.
 
Once the device is successfully connected, you can query it from the CLI of the switch similar to:
 
Switch#energywise query importance 100 name * collect usage all
 
The connected parent switch will only show the RefAgent device itself via the 'show energywise chilren' output but will not break down the sub-child devices.
 
Thanks!

Subject: RE: EnergyWise SDK setup number of chilren: a question
Replied by: Christopher Verges on 16-02-2011 04:25:40 PM
Hi Luigi,

A quick note about the "energywise query" command that Brock mentioned in his reply that we've run into a few times.  If your entity is a consumer, then the "all" suffix at the end of the command is not needed.  However, if your entity is NOT a consumer (like a meter, for example), then you must add the category type at the end.  "All" is a good choice since it queries all categories, but you can specify a particular one like "meter" if you choose.

The same "all" issue exists when issuing "set level" commands, too.

Chris

Attachments

    Outcomes