Community

Subscribe
Highlighted
Accepted Solution

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

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

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

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


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

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

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

Heres a screen cap for the same.