Browse Community
Help
Log In
Responses(5)
Solutions(1)
cadencep45
3 Apprentice
•
318 Posts
0
December 21st, 2018 00:00
for reference
Inorder to query metrics, you need to enable it by invoking enable_perf_stats():
```python
import storops
# New unity system
unity = storops.UnitySystem('192.168.100.10', 'admin', 'password')
# Enable matric query
```
Then, you can get the object and metrics:
disk = unity.get_disk(name=xxx)
You can refer snmp-agent project for further usage:
https://github.com/emc-openstack/snmp-agent/blob/master/snmpagent_unity/unity_impl/DiskReadThroughput.py
Rainer_EMC
4 Operator
8.6K Posts
well storops is open source
so you can read the source, fix yourself and contribute
or create a ticket on github
Yup.
But as storops was developed internally, and has a nice python interface, seemed to be worth asking, as its really a question about abstraction.
If metrics are missing, I would simply revert to the REST API as you indicated.
True, thanks.
interesting
I assume that storops just pulls the matrics that are available from our REST API
see the support site for our REST API reference
Its actually also online on every Unity or UnityVSA
you just need to open https:// /apidocs/index.html
Dell Support Resources
View All
Top
cadencep45
3 Apprentice
•
318 Posts
0
December 21st, 2018 00:00
for reference
Inorder to query metrics, you need to enable it by invoking enable_perf_stats():
```python
import storops
# New unity system
unity = storops.UnitySystem('192.168.100.10', 'admin', 'password')
# Enable matric query
```
Then, you can get the object and metrics:
disk = unity.get_disk(name=xxx)
You can refer snmp-agent project for further usage:
https://github.com/emc-openstack/snmp-agent/blob/master/snmpagent_unity/unity_impl/DiskReadThroughput.py
Rainer_EMC
4 Operator
•
8.6K Posts
0
December 21st, 2018 00:00
well storops is open source
so you can read the source, fix yourself and contribute
or create a ticket on github
cadencep45
3 Apprentice
•
318 Posts
0
December 21st, 2018 00:00
Yup.
But as storops was developed internally, and has a nice python interface, seemed to be worth asking, as its really a question about abstraction.
If metrics are missing, I would simply revert to the REST API as you indicated.
cadencep45
3 Apprentice
•
318 Posts
0
December 21st, 2018 00:00
True, thanks.
Rainer_EMC
4 Operator
•
8.6K Posts
0
December 21st, 2018 00:00
interesting
I assume that storops just pulls the matrics that are available from our REST API
see the support site for our REST API reference
Its actually also online on every Unity or UnityVSA
you just need to open https:// /apidocs/index.html