Python 3 and SNMP Traps

2010-12-29 Thread Joe Hughes
All: I'm using Python 3.1.3 and need to incorporate sending SNMP traps from my script. I've researched and I found pysnmp and net-snmp with python bindings. The first appears to be only for Python 2.x. The second I'm not certain about. Has anyone experience with this and able to giv

Issue with logging.config

2010-07-08 Thread Joe Hughes
Hi Python Help: I'm doing some work with logging.config and I'm running into an interesting situation. I've run this by python-help, but that didn't help so I thought I would send to the list. Here is the config file [loggers] keys=root,log,syslog [handlers] keys=console,log,syslog

Re: Issue with logging.config

2010-07-14 Thread Joe Hughes
tly what I was looking for. Joe On Jul 13, 2010, at 8:02 AM, Peter Otten wrote: > Joe Hughes wrote: > >> I'm doing some work with logging.config and I'm running into an >> interesting situation. I've run this by python-help, but that didn't help >> so I

Re: Issue with logging.config

2010-07-14 Thread Joe Hughes
This is why I did what I did, because I couldn't figure it out either. I did find issue 5421 at python.org which is where I got the idea for the code change. Joe On Jul 14, 2010, at 12:35 PM, Peter Otten wrote: > Vinay Sajip wrote: > >> On Jul 14, 3:21 pm, Joe Hughes wrot

Re: Issue with logging.config

2010-07-14 Thread Joe Hughes
= str(BOM) + "Status - " + mcu_dict[pinged.ip] + " is " + status[pinged.status] syslog.info(msg) This would add the BOM to the message that RFC 5424 requires. Or did I totally misread it? Thanks, Joe On Jul 14, 2010, at 8:20 PM, Vinay Sajip wrote: > On Jul 14, 7:08 pm, Joe Hug