Date: November 13, 2006 9:35:55 PM PST
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