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?
Solved! Go to Solution.
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
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.
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.
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?
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?