James,
I tried it myself (as this may come to my way for the problem for STAR HFT). Eric is correct: if you do ../../bin/linux-x86_64/snmp st.cmd as Eric suggests, it works. On the other hand, if you do ./st.cmd, then, it probably won't work.
The reason for that is that there is no envPaths file included in the tarball. Since no tarball, TOP is not defined, therefore, it can't find the MIBDIR, etc.
On Feb 21, 2013, at 2:41 PM, Eric Norum wrote:
> I think that there's something wrong with the 'shebang' line at the top of your st.cmd. It appears to be attempting to use the system shell instead of the IOC executable to interpret the st.cmd lines.
>
> Try running the executable explicitly:
> ./../bin/darwin-x86/wienerCrateExample st.cmd
> (where darwin-x86 would be replaced with whatever you have for EPICS_HOST_ARCH).
>
>
>
> On Feb 21, 2013, at 12:10 PM, James F Ross <[email protected]> wrote:
>
>> I dont think it's an issue with the environment variable. I tried
>> commenting them out and it gave the same syntax error about the
>> dbLoadDatabase command.
>>
>> The IOC isn't getting far enough to get to the console output. Here
>> is what I do after building it:
>> 1. cd <TOP>/iocBoot/iocsnmp
>> 2. ./st.cmd
>>
>> Output:
>> ./st.cmd: line 7: syntax error near unexpected token `"MIBDIRS",'
>> ./st.cmd: line 7: `epicsEnvSet("MIBDIRS", "+$(TOP)/mibs")'
>>
>> I'm running scientific linux 5.8 with epics base 3.14.12.1.
>> Thanks
>> James
>>
>
>
- Replies:
- Re: asyn and snmp James F Ross
- References:
- asyn and snmp James F Ross
- Re: asyn and snmp Paul Nord
- Re: asyn and snmp James F Ross
- Re: asyn and snmp Eric Norum
- Re: asyn and snmp James F Ross
- Re: asyn and snmp Eric Norum
- Navigate by Date:
- Prev:
Re: EPICS Modbus module + PLC Robert Emery
- Next:
Re: asyn and snmp James F Ross
- 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: asyn and snmp Eric Norum
- Next:
Re: asyn and snmp James F Ross
- 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
|