03-11-2010 05:43 AM
Hello community,
I'm devolopping an SNMP application to monitor my Cisco energywise device.
I'm using CISCO-ENERGYWISE-MIB to query the switch's database.
I'm able to get and set througth my query all the information I need,
But I can't create an Event even if CISCO-ENERGYWISE-MIB allow this (cewEventTable Access = read/create). I get bad value from the switch.
is somebody able to create an event throuth SNMP? or more general add row in a table?
Michel
Solved! Go to Solution.
03-16-2010 10:01 AM
I did some more searching, and it seems creating events via the cewEventTable is not yet supported for the current release of EnergyWise. The internal bug is CSCtc17050. I do not have an ETA at this time on when full support is planned.
03-11-2010 09:40 AM
Exactly what version of code is running on your device? What are the exact SNMP SETs you are doing?
03-12-2010 01:03 AM
Hello Joe,
My device are Cisco Ip phone and Cisco Cam, but dosn't matter what kind of device is, I'm querying the switch and it's interface.
In accord with CISCO-ENERGYWISE-MIB, the cewEventTable is:
cevEventIndex, not accessible
cewEvenTlevel, read-create
cewEventRecurrence, read-create
cewEventTime, read-create
cewEventStorage, read-create
cewEventStatus , read-create
and the indexes are: entPhysicalIndex(the interface where the device is plugin), cewEventIndex (uniqe numbers).
So my set is:
cewEvenTlevel MIB + 1004.20 = 10
cewEventRecurrence MIB + 1004.20 = 1
cewEventTime MIB + 1004.20 = (date)
cewEventStorage MIB + 1004.20 = 2
cewEventStatusl MIB + 1004.20 = 3(createANDgo)
where 1004.20 are respectably : entPhysicalIndex and cewEventIndex.
Michel.
03-12-2010 11:08 AM
What I wanted to know was the type of switch and its IOS version.
03-15-2010 12:56 AM
Yes you right,
This is the information: C3560-ipservicesk9-m version 12.2(53)SE
Bye!
03-15-2010 12:41 PM
Are you really using 3 for the row status? The value 3 is notReady, not createAndGo (which is 4). Also, what is the exact cewEventTime value you are using? I couldn't see any obvious bugs in the code.
03-16-2010 01:22 AM
Hi!
I tried with several value in row status, but the only response is Bad value...
The exact cewEventTime I used is: 30 0 * 1,6,12 1-5. Like is explained in the documentation...
I have used 30 20 * * * because I received that from my switch. (I did an event by telnet and I captured it by wireShark)
do you think it has not been implemented yet?
03-16-2010 10:01 AM
I did some more searching, and it seems creating events via the cewEventTable is not yet supported for the current release of EnergyWise. The internal bug is CSCtc17050. I do not have an ETA at this time on when full support is planned.
03-17-2010 07:10 AM
What a pity!
But anyway you result my doubts.
Thanks for your time!
Michel
05-18-2010 07:52 AM
Hello!
I'm comming back!
In order to see the new Cisco IOS, I have updated my switch with this version: 12.2(53)SE2.
But now I can't modify the "CewEntEnergyLevel" from the switch by a SNMP request.
What I get is: SET Failed. Information. General Error.
What does it means?
Maybe a bug or soon it will change the SNMP mib too? or worst it will not anymore implementad?
Thank you!
Michel
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide