Microsoft Virtualization Discussions

How to check for number of iscsi sessions using powershell or sdcli?

DAVID_PUCKETT_KAREO
5,195 Views

Hello,

We have a need to check the number of issues sessions periodically.

Any suggestions on how to do this with powershell or sdcli?

Thanks

1 ACCEPTED SOLUTION

vinith
5,195 Views

Hello David, You can use Get-NaHostIscsiSession to get current iSCSI sessions on the host machine.

You can get detailed help for this cmdlet using

PS C:\Windows\system32> Get-Help Get-NaHostIscsiSession -Detailed


View solution in original post

3 REPLIES 3

vinith
5,196 Views

Hello David, You can use Get-NaHostIscsiSession to get current iSCSI sessions on the host machine.

You can get detailed help for this cmdlet using

PS C:\Windows\system32> Get-Help Get-NaHostIscsiSession -Detailed


DAVID_PUCKETT_KAREO
5,195 Views

Installed: Data ONTAP PowerShell Toolkit v2.3

Module Imported: Import-module DataONTAP

Command works: Get-NaHostIscsiSession

Now working on a powershell script to check the number of iscsi session from servers to storage and put that into PRTG

Thanks

David

vinith
5,195 Views

Heres a screen cap for the same.

Public