How to extract IQN from Linux and Windows

Linux

cat /etc/iscsi/initiatorname.iscsi

Windows

(Get-WmiObject -Namespace root\wmi -Class MSiSCSIInitiator_MethodClass).iSCSINodeName
Advertisements