diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py index 0bebaa7b..3cc1f45b 100644 --- a/pyghmi/ipmi/command.py +++ b/pyghmi/ipmi/command.py @@ -145,6 +145,19 @@ class Command(object): """ return session.Session.wait_for_rsp(timeout=timeout) + def _get_device_id(self): + response = self.raw_command(netfn=0x06, command=0x01) + if 'error' in response: + raise exc.IpmiException(response['error'], code=response['code']) + return { + 'device_id': response['data'][0], + 'device_revision': response['data'][1] & 0b1111, + 'manufacturer_id': struct.unpack( + '