This is really a reload of my previous SMI-S post regarding how to get started with SMI-S.
Since that time we have released a new version of the SMI-S Agent which supports Clsutered DataONTAP and is conformant to SMI-S Spec 1.6, but has only been 1.5 certified yet.
Within Windows 2012+ may have noticed a new feature called 'Windows Storage Management Service". This feature lets a Serveradministrator do what have historically been storage management functions directly from the windows Server Manager pane. We already have MMCs for our applications such as SnapDrive (7.0 which also just came out) and we already have complete command coverage in our PowerShell Toolkit but most storage vendors have not had the foresight to do this.
This feature is about using a standards approach (in this case the SNIA SMI-S) to allow a common set of PowerShell commands to do common storage deployment tasks such as creating an aggregate, create a LUN, create a masking group, and map a LUN to that masking group. The obvious advantage to you is that a common PowerShell script or application can request storage from multiple vendors storage without needing a script rewrite.
Ok, let’s do this.
Look for Data ONAP SMI-S Agent, and click. It will open a Command window.
|C:\Program Files (x86)\Ontap\smis\pegasus\bin> SMIS CIMSERVER STATUS
Data ONTAP SMI-S Agent is running.
In this step you will create an account that will be given permissions to access an array. In this case I would create a user named SMIUser1 with a password of SMIPass1, and on the controller I would create an account called FASUser1 with the password FASPass1. Once these accounts exist, use the following command to make the connection.
C:\Program Files (x86)\Ontap\smis\pegasus\bin> CimServer –s enableAuthentication=true
C:\Program Files (x86)\Ontap\smis\pegasus\bin> SMIS cimserver start
C:\Program Files (x86)\Ontap\smis\pegasus\bin> SMIS addsecure 10.20.30.40 FASUser1 FASPass1
|C:\Program Files (x86)\Ontap\smis\pegasus\bin> SMIS disks
From the Windows 2012 server, you can either use Server Manager to add a new feature or use PowerShell command window.
PS C:\Users\Administrator> Add-WindowsFeature WindowsStorageManagementService
The acts of connecting to the SMI-S Agent will in addition to saving the credentials for future use, itwill also add the security certificate to the proper store and perform a ursory discovery of the environment.
|PS C:\Users\Administrator> Register-SMISProvidor –connectionuri https://smis5.sea-tm.netapp.com
WARNING: Failed: Certificate Authority not recognized.
Do you want to add the following certificate to Trusted Certificate Store? [Y] Yes [N] No [S} Suspend [?} Help (default is “Y”): y
The command get-storagesubsystems can be used to get alist of controllers that are currently available via that SMI-S controller. Inthe case above, we only have a single controller inventoried by an SMI-S Agent,but an agent could be used to inventory a farm of controllers. The output of those commands should look similar to the following.
The default discovery level of 0 will not let you see LUNs and Aggregates or create such. We need to increase the discovery level to allow us to get useful data and then to create assets on the target device. The second command will let you increase this default discovery level.
PS C:\Users\Administrator> get-StorageSubsystem
Friendly Name HealthStatus OperationalStatus
PS C:\Users\Administrator> get-StorageSubsystem FAS6240A | update-StorageProviderCache –DiscoveryLevelLevel2
The Storage Service has an iterative, multi-level cache. Once objects arediscovered, they can be operated upon efficiently. But deep discoveries can take a long time, depending on the number of manageable objects! The response from a successful change is only a new command prompt with no status or error.
Once this discovery has been made, you will want to launch the Windows Server Manager to get a graphical representation of the Storage within windows.