Modifying EnergyWise agent attributes

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: Christopher Verges on 24-07-2010 12:17:15 AM
The EnergyWise SDK uses a function callback in the agent to notify vendor-specific code of changes to attributes.  This is defined by the registry.energywise_modified_attribute callback.  This function pointer is called whenever the following attributes are modified:
 
- level
- importance
- name
- role
- keywords
 
In theory, the function can persist any of these values so that they are set whenever the agent is restarted.
 
The implementation of this solution is very straightforward.  The new attribute can be obtained through energywise_svc_getAttribute() from inside the function handler.
 
How would one change these attributes via the EnergyWise protocol?  For example:
 
energywise query importance 20 keyword lobby set level 0
 
will cause the level attribute to change on any endpoints that have an importance <= 20 and a keyword matching "lobby."
 
What about importance, name, role, and keywords?  How should a vendor implementing an agent test the dynamic updating of these attributes?  The Cisco IOS command set for energywise query does not seem to extend to these other four attributes.
 
Thanks,
Chris

Subject: RE: Modifying EnergyWise agent attributes
Replied by: Christopher Verges on 26-07-2010 09:45:22 PM
These attributes can be set via the Mgmt API.

 
Hi Brad,
 
From a plain user's perspective, how would they go about doing this?  Is there an IOS command that will allow me to update these values on an EndPoint?  Does Orchestrator do this?  I'm looking for a solution that does not require additional coding.
 
Thanks,
Chris

Subject: RE: Modifying EnergyWise agent attributes
Replied by: Charles Schoening on 26-07-2010 09:42:33 PM
These attributes can be set via the Mgmt API. 
 
Also keep in mind the new SDK will eliminate energywise_modified_attribute and replace it with direct callbacks to set importance, name, role, and keywords. 

Attachments

    Outcomes