how can i get data of storage device through SMI-S?

1,404 views
Skip to first unread message

Luoyuan Luo

unread,
Jun 20, 2014, 5:56:12 AM6/20/14
to smi-s-devel...@googlegroups.com
hello everyone
i'm very new into SMI-S,and i want to know that if i want to get monitor data of a storage
device,what should i do.if i do not install a provider on a managed device and i install it on another device in the same area network,
 can i get monitor data of the managed device? by the way I want to use these monitor data in my web application.
thanks very much foy your help.

Gris Ge

unread,
Jun 20, 2014, 11:33:10 AM6/20/14
to Luoyuan Luo, smi-s-devel...@googlegroups.com
On Fri, Jun 20, 2014 at 02:56:12AM -0700, Luoyuan Luo wrote:
> hello everyone
Hi Luoyuan Luo,
> i'm very new into SMI-S,and i want to know that if i want to get
> monitor data
> of a storage
> device,what should i do.if i do not install a provider on a managed
> device and
You should check CIM_ComputerSystem[OperationalStatus] or
CIM_StoragePool[OperationalStatus] or etc.
> i install it on another device in the same area network,
> can i get monitor data of the managed device? by the way I want to use these
That depends on the storage array you are using.
There are two types of SMI-S provider implementation:
Proxy:
SMI-S provider is installed on a standalone host.
You should use the host's IP for WBEM communication.
Example: EMC VNX/VMAX, NetApp ONTAP
Embedded:
SMI-S provider is running and pre-build on the storage array itself.
You should use the storage array control IP for WBEM communication.
Example: IBM XIV/SVC/DS

> monitor data in my web application.
> thanks very much foy your help.

Hope that helps.
Best regards.
--
Gris Ge
signature.asc

Luoyuan Luo

unread,
Jun 21, 2014, 6:12:02 AM6/21/14
to smi-s-devel...@googlegroups.com

Luoyuan Luo

unread,
Jun 21, 2014, 6:12:32 AM6/21/14
to smi-s-devel...@googlegroups.com, ly545...@gmail.com
thank you very much,Gris.
if i want to monitor DS4300,is that the same as EMC device? And is a WBEM communication like 'wbemexec -u guest -w guest request.xml'?
thanks again.

thaks.   

Gris Ge

unread,
Jun 23, 2014, 8:59:33 AM6/23/14
to Luoyuan Luo, smi-s-devel...@googlegroups.com
On Sat, Jun 21, 2014 at 03:12:32AM -0700, Luoyuan Luo wrote:
> thank you very much,Gris.
> if i want to monitor DS4300,is that the same as EMC device? And is a WBEM
> communication like 'wbemexec -u guest -w guest request.xml'?
> thanks again.
>
> thaks.
>
Hi Luoyuan Luo,

First of all. The following information is fully based on search result
provided by Google. They have nothing to do with Red Hat, IBM, NetApp, LSI
official announcements.

IBM DS4300 is OEM-rebranded LSI Engenio which was bought by NetApp and
renamed to NetApp-E Series.

NetApp-E is using proxy SMI-S provider.

Base on instruction of this link[1], you should download the SMI-S
provider from NetApp site:
http://support.netapp.com/apbu/oemcp/protcd/ (Need register)

Please contact your IBM support to help you install and configure the
SMI-S provider.

Tips if you install the SMI-S provider on Linux (RHEL 6 x86_64):
====
yum install netapp_array-*-linux.x86_64.rpm
passwd pegasus # If you want to use root account, skip this one
echo IP_OF_NETAPP_E >> /opt/netapp/pegasus/providers/array/ArrayHosts.txt
export PEGASUS_HOME=/opt/netapp/pegasus
export PEGASUS_ROOT=/opt/netapp/pegasus
export PATH=/opt/netapp/pegasus/bin:$PATH
export LD_LIBRARY_PATH="/opt/netapp/pegasus/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="/opt/netapp/openssl/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="/opt/netapp/openslp/lib:$LD_LIBRARY_PATH"
cimserver
====

To use the SMI-S, these commands might help:

Python(with pywbem package installed):
====
import pywbem
conn = pywbem.WBEMConnection('http://e-smi:5988',
('pegasus', 'pegasus'), 'root/lsiarray13')
# Change the password if you use other account.
cim_syss = conn.EnumerateInstances('CIM_ComputerSystem')
for cim_sys in cim_syss:
print cim_sys.items()
====

CLI (with sblim-wbemcli package installed):
===
wbemcli -noverify ei \
'http://pegasus:pegasus@e-smi:5988/root/lsiarray13:CIM_ComputerSystem'
===

NetApp-E SMI-S provider support "Multiple Computer System" profile. You
need to use CIM_RegisteredProfile of interop to get the top level(root)
CIM_ComputerSystem.

If LGPL copyright is acceptable for your project, you can try this open
source project:
http://sourceforge.net/p/libstoragemgmt/

The SMI-S code are:
http://sourceforge.net/p/libstoragemgmt/code/ci/master/tree/plugin/smispy/smis.py
and
http://sourceforge.net/p/libstoragemgmt/code/ci/master/tree/plugin/smispy/eseries.py

If LGPL copyright is not acceptable, you can check my wiki page to build
your own code.
https://sourceforge.net/p/libstoragemgmt/wiki/HowDoWeUseSMIS/

Hope these helps.
Best regards.

[1] http://pic.dhe.ibm.com/infocenter/director/pubs/topic/com.ibm.director.storage.helps.doc/fqm0_c_sm_where_to_obtain_proxy_providers.html
--
Gris Ge
signature.asc

Luoyuan Luo

unread,
Aug 1, 2014, 4:35:50 AM8/1/14
to smi-s-devel...@googlegroups.com, ly545...@gmail.com
thanks very much, gris
and last question,how can i configure the provider to manage different devices?
thanks again!!!! thanks, thanks!

Gris Ge

unread,
Aug 4, 2014, 11:31:07 AM8/4/14
to Luoyuan Luo, smi-s-devel...@googlegroups.com
On Fri, Aug 01, 2014 at 01:35:50AM -0700, Luoyuan Luo wrote:
> thanks very much, gris
> and last question,how can i configure the provider to manage different
> devices?
Hi Luoyan Luo,

Sorry for the late reply.

If different devices means 'other NetApp-E devices', add ip
addresses of them to /opt/netapp/pegasus/providers/array/ArrayHosts.txt [1]

If different devices means 'different vendors or different model
devices', no. You need to install(or use) vendor specific SMI-S
provider, contact the support engineer of your array for detail.

Quick list:
EMC VNX/CX/DMAX/VMAX: EMC SMI-S provider -- ECOM
IBM DS/XIV/SVC: Build-in to Array.
NetApp ONTAP: NetApp ONTAP SMI-S provider.
HDS AMS: Hitachi Device Manager SMI-S Provider
Huawei HSV: Build-in to array.

Hope this helps.
Best regards.

[1] I only have 1 NetApp-E, I guess adding IP address of other NetApp-E array
might also works too. Anyway, Just wild guess, never tested.

--
Gris Ge
signature.asc

Luoyuan Luo

unread,
Aug 4, 2014, 9:47:54 PM8/4/14
to smi-s-devel...@googlegroups.com, ly545...@gmail.com
hi, gris:
i installed the lsi provider on a standalone host called A, beacuse i do not have a IBM DS4300 storage device to use to have a test, so 
i want to use a normal host(centos5.5) called B instead.when i add the ip address of B into file ArrayHosts.txt and execute a command
like "wbemcli -noverify ei 'http://root:rootroot@<ip address of A>/root/cimv2:ComputerSystem'", then i got computer system infomation of A not B,
change namespace to 'root/LsiArray13' donot make sense too.
i am not good at english, i donot know if you can understand what i mean.
anyway,thank you very much, my friend gris.

Gris Ge

unread,
Aug 5, 2014, 12:03:59 PM8/5/14
to Luoyuan Luo, smi-s-devel...@googlegroups.com
On Mon, Aug 04, 2014 at 06:47:54PM -0700, Luoyuan Luo wrote:
> hi, gris:
> i installed the lsi provider on a standalone host called A, beacuse i do not
> have a IBM DS4300 storage device to use to have a test, so
> i want to use a normal host(centos5.5) called B instead.when i add the ip
> address of B into file ArrayHosts.txt and execute a command
> like "wbemcli -noverify ei 'http://root:rootroot@<ip address of A>/root/
> cimv2:ComputerSystem'", then i got computer system infomation of A not B,
> change namespace to 'root/LsiArray13' donot make sense too.
> i am not good at english, i donot know if you can understand what i mean.
> anyway,thank you very much, my friend gris.
>
Hi Luoyuan Luo,

Host B is a Linux not a NetApp-E storage, of course NetApp-E SMI-S
provider cannot get information of Host B.

I am kind of confused your problem.

Please elaborate your question in this way:

Problem:
I want to get something, but failed with error:
something paniced, dumping: 1023213124

Reproduce step:
1. Install XXX on YYY.
2. Configure ZZZ on YYY.
3. Do some stuff.

Expected output:
I got 1111

Actual output:
I got 2222

--
Gris Ge
signature.asc

Luoyuan

unread,
Aug 5, 2014, 11:41:46 PM8/5/14
to smi-s-devel...@googlegroups.com, ly545...@gmail.com
hi, gris:
as you said, Host A and Host B are both not NetApp-E storage,they are linux,
but why i can got computer system infomation and operating system infomation of Host A,
is that these information was not getted through smi-s provider ?
thanks gris~!!!!

Gris Ge

unread,
Aug 6, 2014, 11:22:57 AM8/6/14
to Luoyuan, smi-s-devel...@googlegroups.com
On Tue, Aug 05, 2014 at 08:41:46PM -0700, Luoyuan wrote:
> hi, gris:
> as you said, Host A and Host B are both not NetApp-E storage,they are linux,
> but why i can got computer system infomation and operating system infomation of
> Host A,
> is that these information was not getted through smi-s provider ?
> thanks gris~!!!!
>
Hi,

NetApp-E SMI-S provider install packages contain: CIMOM(pegasus) and
their NetApp-E provider.

The information you get is provided by pegasus in 'root/cimv2' namespace.

You will get the same behaviour if you install a pegasus(for
RHEL/Centos, package name is tog-pegasus) on any OS.

The information about NetApp-E is stored in vendor specific namespace --
'root/lsiar13'.

This link might help you understand how a CIM provider[1] works:
https://fedorahosted.org/openlmi/wiki/ProviderTutorial

[1] If a CIM provider chose to implement SNIA SMI-S profiles, we call it
as SMI-S provider.

--
Gris Ge
signature.asc

Luoyuan

unread,
Aug 25, 2014, 10:34:12 PM8/25/14
to smi-s-devel...@googlegroups.com, ly545...@gmail.com
hi, gris:
i got it.thanks very much and sorry to response so late.
Reply all
Reply to author
Forward
0 new messages