1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 <2024> 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 <2024> 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Control device via epics-snmp |
From: | White via Tech-talk <tech-talk at aps.anl.gov> |
To: | tech-talk at aps.anl.gov |
Date: | Wed, 20 Mar 2024 16:20:22 +0800 (CST) |
Hi,
I'm trying to control the device using the SNMP protocol. But I can caget to the value, when I caput, the value does not change.
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) private $(MIB)::pduOutletSwitchedControlCommand.1.1 ( 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. "
::= { 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 }