Setup Guide
4 To communicate from Windows server, congure the user with privilege level 15. Default user is admin.
5 Install the DellNetworking DSC module.
• Unzip the DellNetworkingDSC.zip le and place it in one of the paths available in $env:PSModulePath or add the folder
to the $env:PSModulePath. For additional information, see https://msdn.microsoft.com/en-us/library/dd878326(v=vs.
85).aspx.
6 In the Windows PowerShell environment, create the conguration block.
Following example uses the name MSFT_NetworkDevice_EthernetPortViewConfig.
Configuration MSFT_NetworkDevice_EthernetPortViewConfig
{
Import-DscResource -Name MSFT_NetworkDevice_EthernetPortView
Node ("<switch-address>")
{
MSFT_NetworkDevice_EthernetPortView MyPort
{
PortId = "tengig-0-1"
EnabledState = "Enabled"
}
}
}
• PortId identies the interface. This example congures tengigabitethernet 0/1.
• EnabledState identies the status of the port. In this example, “Enabled” brings up the port.
7 In PowerShell, create the Ethernet MOF using conguration block.
MSFT_NetworkDevice_EthernetPortViewConfig -OutputPath c:\EthernetPortViewMof
This conguration creates the MOF in the C:\EthernetPortViewMof directory.
8 Connect to OMI.
$cred=Get-Credential -UserName:"admin" -Message:"Admin User?"
9 Enter the credential of the user admin.
To create a CIM-Session, use the following scripts:
• $opt = New-CimSessionOption -UseSsl:$true -SkipCACheck:$true -SkipCNCheck:$true -
SkipRevocationCheck:$true
• $box1 =New-CimSession -Credential:$cred -ComputerName:<switch—address> -Port:5986 -
Authentication:basic -SessionOption:$opt
<switch-address> is the IP address or hostname of the switch.
10 Apply the conguration using the following script:
PS C:\windows\system32> Start-DscConfiguration -CimSession:$box1 -Path:"C:
\EthernetPortViewMof" -Verbose –Wait
• CimSession is the box1 created in step 9.
• Path is the path of the MOF created in step 7.
11 Verify in the chassis for interface tengigabitethernet 0/1.
• show running-config tengig 0/1
• show interface tengig 0/1
Examples
This section shows various OMI congurations.
Ethernet Conguration
Configuration MSFT_NetworkDevice_EthernetPortViewConfig
{
60
Open Management Infrastructure