diff options
author | elie <elie> | 2002-11-14 11:33:09 +0000 |
---|---|---|
committer | elie <elie> | 2002-11-14 11:33:09 +0000 |
commit | 383059ca5c5047457b7fbf2e42c114cbc1230f80 (patch) | |
tree | 04364db91905ac4e2e673ff7b1e3fd9c59e3c2e5 | |
parent | 0da632478472b28a01c22b0905c9e043d7b35c4c (diff) | |
download | pysnmp-383059ca5c5047457b7fbf2e42c114cbc1230f80.tar.gz |
An example on asn1.ChoiceTypeAsn1Object.get() usage added
-rw-r--r-- | README | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -94,6 +94,8 @@ Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> vals = map(lambda x: x['value'], rsp['pdu']['get_response']['variable_bindings']) >>> print vals [ObjectSyntax(simple=SimpleSyntax(string=OctetString('Cisco Internetwork Operating System Software \015\012IOS (tm) 5400 Software (C5400-JS-M), Version 12.2(11.8b), MAINTENANCE INTERIM SOFTWARE\015\012Copyright (c) 1986-2002 by cisco Systems, Inc.\015\012Compiled Tue 30-Jul-02 19:02 by pwade')))] +>>> print map(lambda x: x.get(), vals) +['Cisco Internetwork Operating System Software \015\012IOS (tm) 5400 Software (C5400-JS-M), Version 12.2(11.8b), MAINTENANCE INTERIM SOFTWARE\015\012Copyright (c) 1986-2002 by cisco Systems, Inc.\015\012Compiled Tue 30-Jul-02 19:02 by pwade'] >>> 8X---------------- cut here -------------------- |