Chapter 1
Installing the Cisco Nexus 1000V for Microsoft Hyper-V
This script simplifies the approach, as it helps you to refresh the VSEM and make the necessary
associations.
To demonstrate this, we will create a new VM network (eg. VMNetworkB), a new port classification (eg.
Veth-policy-new), and new uplink network (eg. NexusUplink-New) on the Cisco VSM.
Note
The following were already created on Cisco VSM as shown in Deploy-Nexus1000V-VSEM.ps1.
Existing VM network (VMNetworkA)
•
existing port classification (Veth-policy)
•
existing uplink network (NexusUplink)
•
Below is a sample run :-
PS C:\Program Files\Cisco\Nexus1000V\Scripts\VMMConfig> .\Refresh-Nexus1000V-VSEM.ps1
-VsmIP 10.105.234.211 -LogicalSwitch Nexus-Logical-Switch
###############################################################################
## SCRIPT NAME: Refresh-Nexus1000V-VSEM.ps1
## VERSION: 1.1
## DESCRIPTION: This script will refresh an existing Cisco Nexus1000V
##
##
##
##
###############################################################################
Importing Virtual Machine Manager Libraries ..
-------------------------------------------------
-------------------------------------------------
---------------------------------------------------------
Retrieve Cisco Extension with IP = 10.105.234.211
---------------------------------------------------------
Cisco Switch Extension Manager with ip '10.105.234.211' is detected on this VMM
server.
Reading Cisco Switch Extension Manager now...
--------------------------------------------------------------------------------------
Retrieving Logical Switch 'Nexus-Logical-Switch'.
--------------------------------------------------------------------------------------
Logical Switch 'Nexus-Logical-Switch' with extension ip '10.105.234.211' was detected
on this VMM server.
--------------------------------------------------------------------------------------
Populating Uplink Port Profile Sets for Logical Switch 'Nexus-Logical-Switch'.
--------------------------------------------------------------------------------------
1 : Uplink Port Profile Set ==> 'NexusUplink-New'
--------------------------------------------------------------------------------------
Populating Virtual Port Profile Sets and Classifications for Logical Switch
'Nexus-Logical-Switch'.
OL-30997-01
Extension to SCVMM and create the following SCVMM objects:
1: Associate Uplink Port Profiles with Logical Switch.
2: Associate Virtual Port Profile with Logical Switch.
3: Create VMNetworks from Cisco published Network Segments.
Refresh Cisco Nexus1000V VSEM :
VSM IP : 10.105.234.211
HOSTGROUP: All Hosts
NAME: Cisco Systems Nexus 1000V
LOGICAL SWITCH NAME: Nexus-Logical-Switch
SCVMM VERSION: 3.2.7510.0
Cisco Nexus 1000V for Microsoft Hyper-V Installation Guide, Release 5.2(1)SM1(5.2)
Installing the VSM Software
##
##
##
##
##
##
##
1-21