Hello,

I have configured, built, and installed net-snmp for an embedded device with a 
very basic
 custom mib. All seems to work fine except for creating a community name that
will allow access to reads or writes. No matter what I use for community name 
seems
to allow access to the agent via a snmp manager. I traced the problem to the 
snmpd.log file
which mentions "Unknown token rwcommunity". There are other definitions in the 
.conf that
work so it is not like it can't find or read the .conf file. The log file and 
the .conf file are below.

I assume the problem is in the fact that I am building for an embedded system 
and I configured
out of the build as much as I could since we require only basic v2c support. 
The configure script is below.

Does anyone know what would stop rwcommunity from working?

Thanks in advance,

Steve

./configure --host=ppc-linux --build=i386-pc-linux-gnu --target=ppc-denx-linux \
--program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin 
--sbindir=/usr/sbin \
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include 
--libdir=/usr/lib \
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com 
--mandir=/usr/share/man \
--infodir=/usr/share/info --with-endianness=big --disable-des \
--without-rpm --without-openssl --enable-mini-agent --with-out-transports="TCP 
Callback Unix Alias" \
--with-default-snmp-version="2" --enable-shared --with-cflags="-O2 
-fsigned-char" \
--with-logfile=/var/log/snmpd.log --with-persistent-directory=/var/net-snmp 
--with-mib-modules="arinc_808" \
--with-out-mib-modules="snmpv3mibs mibII/vacm mibII/vacm_vars mibII/vacm_conf 
agentx examples/ucdDemoPublic" \
--sysconfdir=/etc --with-libwrap --with-pic --disable-embedded-perl 
--with-perl-modules=no \
--disable-manuals --disable-scripts \
--with-sys-contact="unkown" --with-sys-location="unknown" \
--disable-deprecated --disable-snmptrapd-subagent --with-cc=ppc_4xxFP-gcc \
--with-linkcc=ppc_4xxFP-gcc --with-ar=ppc_4xxFP-ar






Snmpd.log
--------------------------------------------
Created directory: /var/net-snmp
Created directory: /var/net-snmp/mib_indexes
/etc/snmp/snmpd.conf: line 3: Warning: Unknown token: rwcommunity.
NET-SNMP version 5.7.1
----------------------------------------------


Snmpd.conf
-------------------------------------------
# set communities
rwcommunity    private

# System contact information
###############################################################################

syslocation    LAB1
syscontact     [email protected]
sysdescr       Device
sysname        Product 1234
sysObjectID    .1.3.6.1.4.1.13712.808.6
sysServices    72
-------------------------------------------

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to