EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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 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
<== Date ==> <== Thread ==>

Subject: epics snmp
From: White via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Wed, 13 Mar 2024 16:44:50 +0800 (CST)
Hi,
I'm trying to control the device using the SNMP protocol and the db file is as follows:

 

record(ai,"$(DEV):Current")

{

    field(DESC,"SNMP channel")

    field(DTYP,"Snmp")

    field(SCAN,".2 second")

    field(PREC,"3")

    field(INP,"@$(HOST) public $(MIB)::pduInputPhaseSTATUSCurrent.1.1 Float 100")

}

 

The st.cmd file are as follows:

< envPaths

 

epicsEnvSet("EPICS_CA_SERVER_PORT", 6310)

epicsEnvSet("EPICS_PVA_SERVER_PORT", 6710)

epicsEnvSet("MIBDIRS", "+$(TOP)/mibs:/usr/local/share/snmp/mibs")

epicsEnvSet("IOCNAME","npdu")

cd "${TOP}"

## Register all support components

dbLoadDatabase "dbd/npdu.dbd"

npdu_registerRecordDeviceDriver pdbbase

devSnmpSetSnmpVersion(192.168.0.1:161,SNMP_VERSION_1)

devSnmpSetMaxOidsPerReq(192.168.0.1:161,50)

dbLoadRecords "db/dbpdux.db", "DEV=TEST, HOST=192.168.0.1, MIB=ENLOGIC-PDU-MIB"

cd "${TOP}/iocBoot/${IOC}"

iocInit

But there is an error:

 caget TEST:Current

Channel connect timed out: 'TEST:Current' not found.

If there is no error in the DB, the device is not connected, is there an error in the st.cmd file?
Thanks,
White

Replies:
Re: epics snmp Priller, John via Tech-talk

Navigate by Date:
Prev: Galil controller with incremental encoder question Mark Rivers via Tech-talk
Next: Re: epics snmp Priller, John via Tech-talk
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
Navigate by Thread:
Prev: Re: Galil controller with incremental encoder question Mark via Tech-talk
Next: Re: epics snmp Priller, John via Tech-talk
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
ANJ, 22 Mar 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·