You are on page 1of 18

Open source Windows Management Infrastructure server implemented by Microsoft.

Scalable Small footprint

Includes Windows Server Management protocol stack.

Interacts with MI client and Windows PowerShell out of the box.

Uses the same MI provider interface as Windows Management Infrastructure.

Can share provider development tools with Windows Management Infrastructure.

Global Settings
Computer System Physical Computer System View Global Ethernet Switch Settings Features

Switch Service Ethernet Port VLANs IP Protocol EndPoint Link Aggregation Switch Virtual Interface .

User Management
Role Based Authorization Service Account Management Service Accounts Roles Privileges ..

Network Policy
ACL Conditions Actions Rules .

BGP Routing
BGP Service Configuration Peer Template Peer Address Family .

$tors = "", "", "" $so = New-CimSessionOption -UseSsl $s = New-CimSession -CN $tors -port 7779 -Auth Basic -Credential $cred -Sessionoption $so #enable SSH Feature $ssh = Get-CimInstance -CimSession $s MSFT_Feature | ? FeatureName -eq 2 Set-CimInstance -CimSession $s $ssh -Property @{ IsEnabled = $true } #Enable all ports $ports = Get-CimInstance -CimSession $s CIM_EthernetPort $ports | Invoke-CimMethod -Method RequestStateChange -Parameter @{ RequestedState = 2}

#Set a Port $lanep = $vlanep = $vlanepsd =

to trunk mode and specify list of VLANs Get-CimAssociatedInstance $ports[5] -ResultClassName Cim_LanEndpoint Get-CimAssociatedInstance $lanep -ResultClassName Cim_VLanEndpoint Get-CimAssociatedInstance $vlanep -ResultClassName Cim_VLanEndpointSettingData #Set Port Mode to Trunk Set-CimInstance $vlanep -Property @{DesiredEndpointMode = 5} #Set list of trunk VLANs Set-CimInstance $vlanepsd -Property @{TrunkVlanList= 2,3,4}

#### #### #### #### # #

Currently customers have no easy way to automate hardware management . Different vendors support different protocols /mechanisms - and PowerShell coverage is low In Windows Server v.Next - customers will be able to consistently manage hardware from different vendors Key point to note here - Simplicity and elegance - Rich PowerShell experience

# Get data from the devices - In this demo we are managing three different BMCs $a = Get-PCSVDevice -Credential admin -Auth Default -Protocol IPMI $b = Get-PCSVDevice -Credential admin -Auth Digest -Protocol SMASH $c = Get-PCSVDevice -Credential admin -Auth Digest -Protocol PCSV $hosts = $a,$b,$c $hosts $hosts $hosts $hosts | | | | Select Manufacturer, Model, FirmwareVersion Select PowerState Set-PcsvDevice -NextBoot "Network Restart-PcsvDevice # # # # # # Show Manufacturer, Model and Firmware Version Show Current Power State Set to PXE Boot from network Restart the machines. This will prompt the user to confirm because this is a "high impact action" Use force to suppress prompt and restart machine

$hosts | Restart-PcsvDevice Force

PS C:\> $ip = "" PS C:\> Get-PcsvDevice -TargetComputerName $ip -ManagementProtocol IPMI -Credential $cred TargetComputerName Manufacturer Model SerialNumber EnabledState ------------------ ------------------------------------- DELL PowerEdge R720 CN7123456700EH Disabled


$cred # Switch ON the machine

# Common automation scenario - set the machine to boot from network and restart the machine. # Lets see how to do it using PCSV cmdlets in a pipeline # Step 1 - Set the machine to boot from network , but just for the next boot # Step 2 - Reboot the machine $bmc $ip $cred $bmc