Data Backup and Recovery Discussions

Parsing sdcli iscsi initiator list in powershell




I was in need of getting iscsi configuration data off of Windows Server 2008 r2 hosts to upload into a database, *cough* WFA *cough* . The only decent information I found was using the sdcli to get the iscsi information remotely.  So I wrote this powershell function to parse through the raw text that "sdcli iscsi_initiator list -m $server -s" gives you back, and return a custom powershell object.


I'm doing this so that I can compare the target IP addresses with what the array currently has to make sure the iscsi session is configured with all the paths.


Use at your own risk. I have tested it on a couple machines. It is quite possible that I didn't code for every scenari

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner