diff options
author | elie <elie> | 2005-10-14 14:31:42 +0000 |
---|---|---|
committer | elie <elie> | 2005-10-14 14:31:42 +0000 |
commit | ec761a2813b60d27e11b1437bb4310a87d6f9211 (patch) | |
tree | 8b62fe8b89f501c46d96a3deedf8bea15ccfb00f | |
parent | 07e8829d03317d3fabd1a75daadeba024d73ff9d (diff) | |
download | pysnmp-ec761a2813b60d27e11b1437bb4310a87d6f9211.tar.gz |
pretty print Agent response
-rw-r--r-- | examples/v1arch/manager/nextgen.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/v1arch/manager/nextgen.py b/examples/v1arch/manager/nextgen.py index 132d601..61fddf6 100644 --- a/examples/v1arch/manager/nextgen.py +++ b/examples/v1arch/manager/nextgen.py @@ -46,8 +46,10 @@ def cbRecvFun(transportDispatcher, transportDomain, transportAddress, # Report SNMP table for tableRow in varBindTable: for name, val in tableRow: + if val is None: + continue print 'from: %s, %s = %s' % ( - transportAddress, name, val + transportAddress, name.prettyOut(name), val.prettyOut(val) ) # Stop on EOM for oid, val in varBindTable[-1]: |