You are here

HP blade Virtual Connect CLI examples

Hi,

Here and example on using the VC from the CLI:

we are going to create and uplink with 2 uplinkports, it has 3 vlans running in the trunk, so we will create 3 networks with vlan, and another network without uplink for Heartbeat inside the chassis.

->show uplinkport
===============================================================================
===
ID Enclosure Status Type Speed Used By

===============================================================================
===
enc0:1:1 OA-00215AEDEB6F Linked RJ45 Auto/Auto -- --

(100Mb/Full) (external)

-------------------------------------------------------------------------------
---
enc0:1:2 OA-00215AEDEB6F Not Linked RJ45 Auto/Auto -- --

(external)

-------------------------------------------------------------------------------
---
enc0:1:3 OA-00215AEDEB6F Not Linked RJ45 Auto/Auto -- --

(external)

-------------------------------------------------------------------------------
---
enc0:1:4 OA-00215AEDEB6F Linked RJ45 Auto/Auto -- --

(100Mb/Full) (external)

-------------------------------------------------------------------------------

Here we can see we have 2 uplinks from the datacenter enc0:1:1 and enc0:1:4, so we create the uplink with these ports:

->add uplinkset VCuplink ConnectionMode=Failover
SUCCESS: Shared uplink port set added : VCuplink

->add uplinkport enc0:1:4 UplinkSet=VCuplink Speed=Auto Role=Primary
SUCCESS: Port added : enc0:1:4

->add uplinkport enc0:1:1 UplinkSet=VCuplink Speed=Auto Role=Secondary
SUCCESS: Port added : enc0:1:1

->show uplinkset VCuplink
Name : VCuplink
Status : OK
Connection Mode : Failover

External Uplink Ports
========================================================
ID Status Type Speed Role
========================================================
enc0:1:4 Linked (Standby) RJ45 Auto Primary
(100Mb)
--------------------------------------------------------
enc0:1:1 Linked (Standby) RJ45 Auto Secondary
(100Mb)
--------------------------------------------------------

->

Ok, now we can create our networks:

->add network VCproduction -quiet NAGs=Default UplinkSet=VCuplink VLanID=999 Color=red
SUCCESS: Network added : VCproduction

->add network VCstorage -quiet NAGs=Default UplinkSet=VCuplink VLanID=977 Color=green
SUCCESS: Network added : VCstorage

->add network VCprepro -quiet NAGs=Default UplinkSet=VCuplink VLanID=988 Color=blue
SUCCESS: Network added : VCprepro

->add network HBcluster -quiet NAGs=Default Color=orange
SUCCESS: Network added : HBcluster

->show network
===========================================================================
Name Status Shared VLAN ID Native Private Preferred
Uplink Set VLAN Speed
===========================================================================
HBcluster OK -- -- -- -- -- -- Disabled Auto
---------------------------------------------------------------------------
VCproducti OK VCuplink 999 Disabled Disabled Auto
on
---------------------------------------------------------------------------
VCstorage OK VCuplink 977 Disabled Disabled Auto
---------------------------------------------------------------------------
VCprepro OK VCuplink 988 Disabled Disabled Auto
---------------------------------------------------------------------------

Now we can create the profiles for our blade servers, we are first going to create a profile for the BL860c:

->add profile Profile_Bl860c -NoDefaultEnetConn -NoDefaultFcConn -NoDefaultFcoeConn NAG=Default
SUCCESS: Profile added : Profile_Bl860c

->add enet-connection Profile_Bl860c Network=VCproduction PXE=UseBIOS
SUCCESS: Connection added to server profile : Profile_Bl860c

->add enet-connection Profile_Bl860c Network=VCstorage PXE=UseBIOS
SUCCESS: Connection added to server profile : Profile_Bl860c

->show profiles
ERROR: Invalid managed element : profiles
Enter 'show -help' to see a list of valid managed elements for this command

->show profile
======================================================
Name Device Bay Server Status NAG
======================================================
Profile_Bl860 -- -- OK Default
c
------------------------------------------------------

->show profile Profile_Bl860c
Name : Profile_Bl860c
Device Bay :
Server : -- --
Status : OK
Serial Number :
UUID : -- --
NAG : Default

Ethernet Network Connections
====================================================================
Port Network Name Status PXE MAC Address Allocated
Speed
====================================================================
1 VCproduction OK UseBIOS 00-17-A4-77-00-00 -- --
2 VCstorage OK UseBIOS 00-17-A4-77-00-02 -- --

->show enet-connection
=========================================================================
Profile Port Network PXE MAC Address Allocated Status
Name Speed
=========================================================================
Profile_ 1 VCproduc UseBIOS 00-17-A4-77-00-00 -- -- OK
Bl860c tion
-------------------------------------------------------------------------
Profile_ 2 VCstorag UseBIOS 00-17-A4-77-00-02 -- -- OK
Bl860c e
-------------------------------------------------------------------------

We also add the other 2 networks:

->add enet-connection Profile_Bl860c Network=VCprepro PXE=UseBIOS
SUCCESS: Connection added to server profile : Profile_Bl860c

->add enet-connection Profile_Bl860c Network=HBcluster PXE=UseBIOS
SUCCESS: Connection added to server profile : Profile_Bl860c

So now we have used the 4 lom ports on the blade connected to interconnect on IOBAY 1

Now we are going to add the same 4 networks to the mezzazine Flex-10 adapter, for the example we are going to share 1 downlink port for all the networks, with the flex-10 you have 2 ports, each port has 4 downlinks to configure, so in total we have 8 ports, each port has 10 gig bandwith, so you have to share 10Gb over the 4 downlink ports:

->add enet-connection Profile_Bl860c Network=VCproduction PXE=UseBIOS
SUCCESS: Connection added to server profile : Profile_Bl860c

->add enet-connection Profile_Bl860c Network=VCproduction PXE=UseBIOS
SUCCESS: Connection added to server profile : Profile_Bl860c

->show enet-connection
=========================================================================
Profile Port Network PXE MAC Address Allocated Status
Name Speed
=========================================================================
Profile_ 1 VCproduc UseBIOS 00-17-A4-77-00-00 -- -- OK
Bl860c tion
-------------------------------------------------------------------------
Profile_ 2 VCstorag UseBIOS 00-17-A4-77-00-02 -- -- OK
Bl860c e
-------------------------------------------------------------------------
Profile_ 3 VCprepro UseBIOS 00-17-A4-77-00-04 -- -- OK
Bl860c
-------------------------------------------------------------------------
Profile_ 4 HBcluste UseBIOS 00-17-A4-77-00-06 -- -- OK
Bl860c r
-------------------------------------------------------------------------
Profile_ 5 VCproduc UseBIOS 00-17-A4-77-00-08 -- -- OK
Bl860c tion
-------------------------------------------------------------------------
Profile_ 6 VCproduc UseBIOS 00-17-A4-77-00-0A -- -- OK
Bl860c tion
-------------------------------------------------------------------------

as you can see ports 5 and 6 are going to be on our mezzazine once we assing the profile to a chassis blade, we are going to add the 4 networks to ports 5 and 6:

->add server-port-map Profile_Bl860c:5 VCproduction UplinkSet=VCuplink Untagged=false
SUCCESS: Server port mapping added

->add server-port-map Profile_Bl860c:6 VCproduction UplinkSet=VCuplink Untagged=false
SUCCESS: Server port mapping added

->add server-port-map Profile_Bl860c:5 VCstorage UplinkSet=VCuplink Untagged=false
SUCCESS: Server port mapping added

->add server-port-map Profile_Bl860c:6 VCstorage UplinkSet=VCuplink Untagged=false
SUCCESS: Server port mapping added

->add server-port-map Profile_Bl860c:5 VCprepro UplinkSet=VCuplink Untagged=false
SUCCESS: Server port mapping added

->add server-port-map Profile_Bl860c:6 VCprepro UplinkSet=VCuplink Untagged=false
SUCCESS: Server port mapping added

Now we can see how we have multiple networks going through downlink ports 5 and 6

->show enet-connection
=========================================================================
Profile Port Network PXE MAC Address Allocated Status
Name Speed
=========================================================================
Profile_ 1 VCproduc UseBIOS 00-17-A4-77-00-00 -- -- OK
Bl860c tion
-------------------------------------------------------------------------
Profile_ 2 VCstorag UseBIOS 00-17-A4-77-00-02 -- -- OK
Bl860c e
-------------------------------------------------------------------------
Profile_ 3 VCprepro UseBIOS 00-17-A4-77-00-04 -- -- OK
Bl860c
-------------------------------------------------------------------------
Profile_ 4 HBcluste UseBIOS 00-17-A4-77-00-06 -- -- OK
Bl860c r
-------------------------------------------------------------------------
Profile_ 5 Multiple UseBIOS 00-17-A4-77-00-08 -- -- OK
Bl860c Network
-------------------------------------------------------------------------
Profile_ 6 Multiple UseBIOS 00-17-A4-77-00-0A -- -- OK
Bl860c Network
-------------------------------------------------------------------------

->show server-port-map
====================================================
ID Network
====================================================
Profile_Bl860c:5 VCstorage,VCprepro,VCproduction,
Profile_Bl860c:6 VCstorage,VCprepro,VCproduction

We can also set the speed for our downlink ports, remember we have 10Gb's for four ports, in our case, we only are going to use 2 downlinkports, so we assing the 10Gb to each one

->set enet-connection Profile_Bl860c 5 SpeedType=Custom Speed=10000
SUCCESS: Connection modified : Profile_Bl860c

->set enet-connection Profile_Bl860c 6 SpeedType=Custom Speed=10000
SUCCESS: Connection modified : Profile_Bl860c

->show profile Profile_Bl860c
Name : Profile_Bl860c
Device Bay : enc0:2
Server : server BL870c
Status : OK
Serial Number : DEH9421L2A
UUID : D3AE0700-D92F-11DE-9F5C-A8ACB540E13F
NAG : Default

Ethernet Network Connections
=======================================================================
Port Network Name Status PXE MAC Address Allocated
Speed
=======================================================================
1 VCproduction OK UseBIOS 00-17-A4-77-00-00 1Gb
-----------------------------------------------------------------------
2 VCstorage OK UseBIOS 00-17-A4-77-00-02 1Gb
-----------------------------------------------------------------------
3 VCprepro OK UseBIOS 00-17-A4-77-00-04 1Gb
-----------------------------------------------------------------------
4 HBcluster OK UseBIOS 00-17-A4-77-00-06 1Gb
-----------------------------------------------------------------------
5 Multiple OK UseBIOS 00-17-A4-77-00-08 10Gb
Network
-----------------------------------------------------------------------
6 Multiple OK UseBIOS 00-17-A4-77-00-0A 10Gb
Network
-----------------------------------------------------------------------

Now we can assign the profile to our chassis,

->show server
=========================================================================
ID Enclosure Bay Description Status Power Profile
=========================================================================
enc0:2 OA-00215AEDE 2 server BL870c OK Off
B6F
-------------------------------------------------------------------------
enc0:3 OA-00215AEDE 3 server BL860c OK Off
B6F
-------------------------------------------------------------------------
enc0:8 OA-00215AEDE 8 HP OK On
B6F StorageWorks
SB40c
-------------------------------------------------------------------------

->assign profile Profile_Bl860c enc0:3
SUCCESS: Profile 'Profile_Bl860c' assigned to device bay enc0:3

Now we create a new profile for the other blade with the same config:

->add profile Profile_Bl870c -NoDefaultEnetConn -NoDefaultFcConn -NoDefaultFcoeConn NAG=Default
SUCCESS: Profile added : Profile_Bl870c

->add enet-connection Profile_Bl870c Network=VCproduction PXE=UseBIOS
SUCCESS: Connection added to server profile : Profile_Bl870c

->add enet-connection Profile_Bl870c Network=VCstorage PXE=UseBIOS
SUCCESS: Connection added to server profile : Profile_Bl870c

->add enet-connection Profile_Bl870c Network=VCprepro PXE=UseBIOS
SUCCESS: Connection added to server profile : Profile_Bl870c

->add enet-connection Profile_Bl870c Network=HBcluster PXE=UseBIOS
SUCCESS: Connection added to server profile : Profile_Bl870c

->add server-port-map Profile_Bl870c:5 VCstorage UplinkSet=VCuplink Untagged=false
ERROR: Invalid connection

->add enet-connection Profile_Bl870c Network=Unassigned PXE=UseBIOS
SUCCESS: Connection added to server profile : Profile_Bl870c

->add enet-connection Profile_Bl870c Network=Unassigned PXE=UseBIOS
SUCCESS: Connection added to server profile : Profile_Bl870c

->add server-port-map Profile_Bl870c:5 VCstorage UplinkSet=VCuplink Untagged=false
SUCCESS: Server port mapping added

->add server-port-map Profile_Bl870c:5 VCprepro UplinkSet=VCuplink Untagged=false
SUCCESS: Server port mapping added

->add server-port-map Profile_Bl870c:5 VCproduction UplinkSet=VCuplink Untagged=false
SUCCESS: Server port mapping added

->add server-port-map Profile_Bl870c:6 VCstorage UplinkSet=VCuplink Untagged=false
SUCCESS: Server port mapping added

->add server-port-map Profile_Bl870c:6 VCprepro UplinkSet=VCuplink Untagged=false
SUCCESS: Server port mapping added

->add server-port-map Profile_Bl870c:6 VCproduction UplinkSet=VCuplink Untagged=false
SUCCESS: Server port mapping added

->assign profile Profile_Bl870c enc0:2
SUCCESS: Profile 'Profile_Bl870c' assigned to device bay enc0:2

Now we power on the blades and lets check network conectivity:

The NICs on the LOM are working directly with out problems, on the flex-10 port we need to use hpux vlans

root@vmcluste:/> nwmgr -a -S vlan -A vlanid=999, pri=3, ppa=5
VLAN interface lan5000 successfully configured.
lan5000 current values:
VPPA = 5000
Related PPA = 5
VLAN ID = 999
VLAN Name = UNNAMED
Priority = 3
Priority Override Level = CONF_PRI
ToS = 0
ToS Override Level = IP_HEADER
root@vmcluste:/> nwmgr -a -S vlan -A vlanid=977, pri=3, ppa=5
VLAN interface lan5001 successfully configured.
lan5001 current values:
VPPA = 5001
Related PPA = 5
VLAN ID = 977
VLAN Name = UNNAMED
Priority = 3
Priority Override Level = CONF_PRI
ToS = 0
ToS Override Level = IP_HEADER
root@vmcluste:/> nwmgr -a -S vlan -A vlanid=988, pri=3, ppa=5
VLAN interface lan5002 successfully configured.
lan5002 current values:
VPPA = 5002
Related PPA = 5
VLAN ID = 988
VLAN Name = UNNAMED
Priority = 3
Priority Override Level = CONF_PRI
ToS = 0
ToS Override Level = IP_HEADER

# ifconfig lan5001 10.10.20.21 netmask 255.255.255.0
# ping 10.10.20.20
PING 10.10.20.20: 64 byte packets
64 bytes from 10.10.20.20: icmp_seq=0. time=0. ms

ok working...

Unix Systems: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.

Fatal error: Class CToolsCssCache contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (DrupalCacheInterface::__construct) in /homepages/37/d228974590/htdocs/sites/all/modules/ctools/includes/css-cache.inc on line 52