def get_snmp_information(self):
<EOL>snmp_dict = {<EOL>'<STR_LIT>': u'<STR_LIT>',<EOL>'<STR_LIT>': {},<EOL>'<STR_LIT>': u'<STR_LIT>',<EOL>'<STR_LIT:location>': u'<STR_LIT>'<EOL>}<EOL>command = '<STR_LIT>'<EOL>output = self._send_command(command)<EOL>for line in output.splitlines():<EOL><INDENT>fields = line.split()<EOL>if '<STR_LIT>' in line:<EOL><INDENT>name = fields[<NUM_LIT:2>]<EOL>if '<STR_LIT>' not in snmp_dict.keys():<EOL><INDENT>snmp_dict.update({'<STR_LIT>': {}})<EOL><DEDENT>snmp_dict['<STR_LIT>'].update({name: {}})<EOL>try:<EOL><INDENT>snmp_dict['<STR_LIT>'][name].update({'<STR_LIT>': fields[<NUM_LIT:3>].lower()})<EOL><DEDENT>except IndexError:<EOL><INDENT>snmp_dict['<STR_LIT>'][name].update({'<STR_LIT>': u'<STR_LIT>'})<EOL><DEDENT>try:<EOL><INDENT>snmp_dict['<STR_LIT>'][name].update({'<STR_LIT>': fields[<NUM_LIT:4>]})<EOL><DEDENT>except IndexError:<EOL><INDENT>snmp_dict['<STR_LIT>'][name].update({'<STR_LIT>': u'<STR_LIT>'})<EOL><DEDENT><DEDENT>elif '<STR_LIT>' in line:<EOL><INDENT>snmp_dict['<STR_LIT:location>'] = '<STR_LIT:U+0020>'.join(fields[<NUM_LIT:2>:])<EOL><DEDENT>elif '<STR_LIT>' in line:<EOL><INDENT>snmp_dict['<STR_LIT>'] = '<STR_LIT:U+0020>'.join(fields[<NUM_LIT:2>:])<EOL><DEDENT>elif '<STR_LIT>' in line:<EOL><INDENT>snmp_dict['<STR_LIT>'] = '<STR_LIT:U+0020>'.join(fields[<NUM_LIT:2>:])<EOL><DEDENT><DEDENT>if snmp_dict['<STR_LIT>'] == '<STR_LIT>':<EOL><INDENT>command = '<STR_LIT>'<EOL>snmp_chassis = self._send_command(command)<EOL>snmp_dict['<STR_LIT>'] = snmp_chassis<EOL><DEDENT>return snmp_dict<EOL>
Returns a dict of dicts

Example Output:

{   'chassis_id': u'Asset Tag 54670',
'community': {   u'private': {   'acl': u'12', 'mode': u'rw'},
                 u'public': {   'acl': u'11', 'mode': u'ro'},
                 u'public_named_acl': {   'acl': u'ALLOW-SNMP-ACL',
                                          'mode': u'ro'},
                 u'public_no_acl': {   'acl': u'N/A', 'mode': u'ro'}},
'contact': u'Joe Smith',
'location': u'123 Anytown USA Rack 404'}