Re: net-snmp-version5.4.1:::Logging option in snmpd.conf

2016-09-12 Thread Niels Baggesen
Den 01-09-2016 kl. 09:15 skrev Manjula B.R.:
> In snmpd.conf following lines have been added for logging into a file
> /mnt/jffs2/conf/snmpd.log
> #Logging specifications 
> logging /mnt/jffs2/conf/snmpd.log enabled
> logging level=2 size=10

This does not look like any logging options that Net-SNMP understands.
Have you read "man snmpcmd"?

/Niels

-- 
Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


net-snmp-version5.4.1:::Logging option in snmpd.conf

2016-09-01 Thread Manjula B.R.
Hi,
we have 2 issues:
Issue number1:
we are starting snmpd daemon using following command:
 snmpd -a -c /mnt/jffs2/conf/snmpd.conf


In snmpd.conf following lines have been added for logging into a file 
/mnt/jffs2/conf/snmpd.log#Logging specifications logging 
/mnt/jffs2/conf/snmpd.log enabledlogging level=2 size=10
but no logging is happening in file /mnt/jffs2/conf/snmpd.log
all prints are coming on console ;

Issue number2:

we have created  our own PRIVATE MIB, cross  compiled with net-snmp, when we 
are starting snmpd by giving the following command:
snmpd -a -c /mnt/jffs2/conf/snmpd.conf -LF 7 /mnt/jffs2/conf/snmpd.log

inside our agent c file we are using snmp_log(LOG_DEBUG,)snmp_log 
(LOG_DEBUG, "\n s   \n" ); for printing;
we have observed that logging is happening in file and  prints are coming on 
console also. console is getting cluttered, not able to give any other commands 
on CLI

To avoid this I am giving the following command:
snmpd -a -c /mnt/jffs2/conf/snmpd.conf  -Ln in this case no prints on console 
as well as in file


but we require prints only in file not on console. how do we do this>

Thanks and regards,
Manjula

--
___
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders