# Unauthenticated iLO and Chassis OA data

Unless you have disabled it, both server/blade iLO’s and chassis onboard administrators, expose a lot of basic information on an unauthenticated https url. While not technically part of the iLO API, this is still a useful function to have, and is the only way to programmatically get data from an onboard Administrator.

class hpilo.Ilo
  xmldata(item='all')

    Get basic discovery data which all iLO versions expose over unauthenticated https. The default item to query is ‘all’. Despite its name, it does not return all information. To get license information, use ‘cpqkey’ as argument.

        >>> ilo.xmldata()
        {'bladesystem': {'bay': 4,
                         'manager': {'encl': 'OA-002655FF2F7B',
                                     'mgmtipaddr': '10.42.128.101',
                                     'rack': 'UnnamedRack',
                                     'st': 2,
                                     'type': 'Onboard Administrator'}},
         'health': {'status': 2},
         'hsi': {'cuuid': '30313436-3631-5A43-3334-313534343843',
                 'nics': [{'description': 'iLO 4',
                           'ipaddr': '10.42.128.100',
                           'location': 'Embedded',
                           'macaddr': '9c:b6:54:8e:4b:7c',
                           'port': 1,
                           'status': 'OK'},
                          {'description': 'N/A',
                           'ipaddr': 'N/A',
                           'location': 'Embedded',
                           'macaddr': 'fc:15:b4:0a:9d:58',
                           'port': 1,
                           'status': 'Unknown'},
                          {'description': 'N/A',
                           'ipaddr': 'N/A',
                           'location': 'Embedded',
                           'macaddr': 'fc:15:b4:0a:9d:5c',
                           'port': 2,
                           'status': 'Unknown'}],
                 'productid': ' 641016-B21      ',
                 'sbsn': 'CZ3415448C      ',
                 'sp': 1,
                 'spn': 'ProLiant BL460c Gen8',
                 'uuid': '641016CZ3415448C',
                 'virtual': {'state': 'Inactive',
                             'vid': {'bsn': None, 'cuuid': None}}},
         'mp': {'bblk': '03/05/2013',
                'ealert': 1,
                'ers': 0,
                'fwri': '2.10',
                'hwri': 'ASIC: 16',
                'ipm': 1,
                'pn': 'Integrated Lights-Out 4 (iLO 4)',
                'pwrm': '3.3',
                'sn': 'ILOCZ3415448C      ',
                'sso': 0,
                'st': 1,
                'uuid': 'ILO641016CZ3415448C'},
         'spatial': {'bay': 4,
                     'cuuid': '30313436-3631-5A43-3334-313534343843',
                     'discovery_data': 'Unknown data',
                     'discovery_rack': 'Not Supported',
                     'enclosure_cuuid': '42473930-3038-3430-4850-523000000000',
                     'rack_description': 0,
                     'rack_id': 0,
                     'rack_id_pn': 0,
                     'rack_uheight': 0,
                     'tag_version': 0,
                     'uheight': 0,
                     'ulocation': 0,
                     'uoffset': 0,
                     'uposition': 0}}