Virtual SAN - Powershell -

Software-based VM-centric and flash-friendly VM storage + free version

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
MANU
Posts: 3
Joined: Fri Dec 14, 2018 1:18 pm

Thu Dec 20, 2018 6:35 am

Hi,

I want power shell scripts to get the general information about the server , all i want is the information showed in the general Tab. if there are any Scripts for that , i am kindly requesting to give the response with answer and in second, like Queries in WMI "Select * from Win32_Bios", is there are any WMI Queries for Starwind vSAN. please help



Image


Thanks and regards

Manu Krishnan K
Boris (staff)
Staff
Posts: 805
Joined: Fri Jul 28, 2017 8:18 am

Thu Dec 20, 2018 6:16 pm

Code: Select all

$server = New-SWServer -host 127.0.0.1 -port 3261 -user root -password starwind
$server.Connect()
Write-host "Address: " $server.IP
Write-host "Hostname: " hostname
Write-host "Port: " $server.Port
Write-host "Product: " ($server | Select-Object -ExpandProperty LicenseInfo).ProductName
Get all you need from that sample and feel free to expand it according to your needs. We cannot provide you with a ready-made solution as you need to adjust that to correspond with your expectations. You would most probably want to explore the StarWindX module and sample PowerShell scripts provided as an optional installation component.
Post Reply