semvec/pypi-packages huggingface dataset:
pyomreport 0.0.5
Python library for Dell OpenManage's omreport utility
License: Apache 2.0
Requires Python: >=2.7

# pyomreport

[![PyPI](https://img.shields.io/pypi/v/pyomreport.svg?maxAge=3600)](https://pypi.org/project/pyomreport)
[![Pthon Version](https://img.shields.io/pypi/pyversions/pyomreport.svg)](https://pypi.org/project/pyomreport)
[![Build Status](https://travis-ci.org/but3k4/pyomreport.svg?branch=master)](https://travis-ci.org/but3k4/pyomreport)
[![License](https://img.shields.io/github/license/but3k4/pyomreport)](https://opensource.org/licenses/Apache-2.0)

Python library for Dell OpenManage's omreport utility.

This library parses omreport output and returns it as an associative array.

## Features

* It can gather information about:

  * batteries
  * controllers
  * enclosures
  * processors
  * memory DIMMs
  * fans
  * power supplies
  * physical disks
  * virtual disks

## Dependencies

It depends on Dell OpenManage Server Administrator (OMSA). For more information on how to install OMSA, please visit: http://linux.dell.com/repo/hardware/omsa.html

## Install


Installing from pypi::

    pip install -U pyomreport

pyomreport is supported on Python 2.7, as well as Python 3.4 and above.

## Usage

A quick example on how to pull the battery information:

```python
>>> from pyomreport import omreport
>>> storage = omreport.Storage()
>>> storage.battery()
OrderedDict([('0', OrderedDict([('ID', '0'), ('Status', 'Ok'), ('Name', 'Battery'), ('State', 'Ready'), ('Recharge Count', 'Not Applicable'), ('Max Recharge Count', 'Not Applicable'), ('Learn State', 'Not Applicable'), ('Next Learn Time', 'Not Applicable'), ('Maximum Learn Delay', 'Not Applicable')]))])
```

For enclosure information:

```python
>>> from pyomreport import omreport
>>> storage = omreport.Storage()
>>> storage.enclosure()
OrderedDict([('0:1', OrderedDict([('ID', '0:1'), ('Status', 'Ok'), ('Name', 'Backplane'), ('State', 'Ready'), ('Connector', '0'), ('Target ID', 'Not Applicable'), ('Configuration', 'Not Applicable'), ('Firmware Version', '2.41'), ('Downstream Firmware Version', 'Not Applicable'), ('Service Tag', 'Not Applicable'), ('Express Service Code', 'Not Applicable'), ('Asset Tag', 'Not Applicable'), ('Asset Name', 'Not Applicable'), ('Backplane Part Number', 'Not Applicable'), ('Split Bus Part Number', 'Not Applicable'), ('Enclosure Part Number', 'Not Applicable'), ('SAS Address', '500056B357B52BFD'), ('Enclosure Alarm', 'Not Applicable')]))])
```

## License

pyomreport is provided under the Apache 2.0 license.