EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  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  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: devSNMP: Thread error?
From: "Bertrand H.J. Biritz" <[email protected]>
To: [email protected]
Date: Tue, 14 Nov 2006 06:58:52 -0800
Forgot to CC it to Tech-Talk.

Begin forwarded message:

From: "Bertrand H.J. Biritz" <[email protected]>
Date: November 13, 2006 9:35:55 PM PST
To: Janet Anderson <[email protected]>
Subject: Re: devSNMP: Thread error?

Hi Janet,

thank you very much for the information and the IOC.

I compiled it and tried running the IOC, but got the same thread error message - see below.

Also, how hard would it be for me to implement SNMP writes? My programming skills right now with EPICS are going to be looking at how the reads and done and duplicating those, subbing in "writes" where appropriate.

Thanks for taking the time,

Bertrand

$../../bin/linux-x86/test st.cmd
#!../../bin/solaris-sparc/test
## You may have to change test to something else
## everywhere it appears in this file
< envPaths
epicsEnvSet(ARCH,"linux-x86")
epicsEnvSet(IOC,"ioctest")
epicsEnvSet(TOP,"/opt/epics/modules/soft/snmp/")
epicsEnvSet(EPICS_BASE,"/opt/epics/base-3.14.8.1")
cd /opt/epics/modules/soft/snmp/
## Register all support components
dbLoadDatabase("dbd/test.dbd")
test_registerRecordDeviceDriver(pdbbase)
## Load record instances
dbLoadRecords("db/ioctraffic.db","device=testHost,community=public")
cd /opt/epics/modules/soft/snmp//iocBoot/ioctest
iocInit()
Starting iocInit
############################################################################
###  EPICS IOC CORE built on Dec 28 2005
###  EPICS R3.14.8.1 $R3-14-8-1$ $2005/12/20 14:59:00$
############################################################################
commonSessionSetup: Calling init_snmp
net-snmp version=5.0.9
pthread_attr_setstacksize error Invalid argument
epicsSnmpInit: Created thread snmpTaskRead
Opening snmp session to testHost
Opening snmp session to testHost
Opening snmp session to testHost
Opening snmp session to testHost
iocInit: All initialization complete
#Repeat the following command to process the SNMP records
dbpf "snmp:eventGen.PROC","1"
DBR_UCHAR:          1         0x1
snmpTaskSend: sess == NULL: Unknown host (testHost)
snmpTaskSend: sess == NULL: Unknown host
snmpTaskSend: sess == NULL: Unknown host
snmpTaskSend: sess == NULL: Unknown host



On Nov 13, 2006, at 11:55 AM, Janet Anderson wrote:

Hi Bertrand,

I started with the original devSNMP written by Richard Dabney at
LANL and I could not get it to work at all (core dumps) when I had
a large number of snmp records, so I made major modifications to the
code, making the devSNMP records true EPICS asynchronous records with
callbacks. I now have a test soft ioc running with 2000+ snmp records
and have had no problems.

I have not committed my snmp changes but I have attached a tar file of
my code for you if you are interested. I made changes to all 4 supported
record types and have tested my changes for the Si record type. I did some
testing for the Ai, and Li record type changes and very minor testing for
the Wf changes.

So far only gets are supported. No writes are done and traps are not handled.


Janet



Navigate by Date:
Prev: RE: Scaling Database entries David Dudley
Next: Re: Scaling Database entries Kay-Uwe Kasemir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: devSNMP: Thread error? Bertrand H.J. Biritz
Next: Motion control failure at APS Ron Sluiter
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·