![]() |
![]() ![]()
Experimental Physics and
| ||||||||||||||||
|
Thanks for your reply, I have one more question. The db file is as follows: record(ao,"$(DEV):Switch1") { field(DESC,"SNMP channel") field(DTYP,"Snmp") field(SCAN,"Passive") field(PREC,"3") field(OUT,"@$(HOST) guru $(MIB)::pduOutletSwitchedControlCommand.1.2 INTEGER: 100") } The mib file is as follows: pduOutletSwitchedControlCommand OBJECT-TYPE -- FROM ENLOGIC-PDU-MIB SYNTAX INTEGER {immediateOff(1), immediateOn(2), delayedOff(3), delayedOn(4), immediateReboot(5), delayedReboot(6), outletUnknown(7)} MAX-ACCESS read-write STATUS current DESCRIPTION "Getting this variable will return the outlet state. If the outlet is on, the immediateOn (2) value will be returned. If the outlet is off, the immediateOff (1) value will be returned. If the state of the outlet cannot be determined, the outletUnknown (7) value will be returned. If the outletUnknown condition should occur, all devices powered by the PDU should be shut down. The PDU's power should then be cycled to clear this condition. Setting this variable to immediateOn (2) will immediately turn the outlet on. Setting this variable to immediateOff (1) will immediately turn the outlet off. Setting this variable to immediateReboot (5) will cause the Switched PDU to perform an immediateOff command, wait the pduOutletSwitchedConfigRebootDuration OID time, and then perform an immediateOn command. Setting this variable to delayedOn (4) will turn the outlet on after the pduOutletSwitchedConfigPowerOnTime OID time has elapsed. Setting this variable to delayedOff (3) will turn the outlet off after the pduOutletSwitchedConfigPowerOffTime OID time has elapsed. Setting this variable to delayedReboot (6) will cause the Switched PDU to perform a delayedOff command, wait the pduOutletSwitchedConfigRebootDuration OID time, and then perform a delayedOn command." ::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) enlogic(38446) pdu(1) pduOutlet(5) pduOutletSwitchedControlTable(5) pduOutletSwitchedControlEntry(1) pduOutletSwitchedControlCommand(4) 1 2 } The value obtained with caget is 0, which does not match the
actual value: caget TEST:Switch1 TEST:Switch1 0 Is there an error somewhere in
the db file? Is there any detailed documentation of the db file for SNMP connections? Thanks,
White At 2024-03-14 18:30:42, "Priller, John via Tech-talk" <tech-talk at aps.anl.gov> wrote:
| ||||||||||||||||
ANJ, 19 Mar 2024 |
![]() · Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |