Visitors

HOW TO: Add Cisco Nexus 1000V licenses

A couple of days ago I had a strange problem on newly deployed VMware ESX hosts which were added to Cisco 1000V Distributed Virtual Switch. Both, the Management Network and vMotion interfaces were OK but VMs on any other port groups did not have network connection. The UCS server profiles were configured correctly and all necessary VLANs were presented on the vNICs. As a test, I created a new Standard Switch, configured a Port Group and put a test VM on it. It worked just fine. It was time to troubleshoot Cisco 1000V DVS… As there were already a few hosts configured on Cisco 1000V switch, I was confident that the basic configuration was correct. It turned out to be the licensing issue. Unfortunately, there are times when we built new ESXi hosts at a faster rate than we add licenses… :)

  1. Login to Cisco Nexus 1000V VSM (Virtual Supervisor Module) and check the number of licenses available:
    C1000v-01# show license usage
    Feature                      Ins  Lic   Status Expiry Date Comments
    Count
    --------------------------------------------------------------------------------
    NEXUS_VSG_SERVICES_PKG        No    0   Unused             -
    NEXUS1000V_LAN_SERVICES_PKG   Yes  28   In use Never       -
    NEXUS_ASA1000V_SERVICES_PKG   No    0   Unused             -
    --------------------------------------------------------------------------------
  2. Check what hosts are licensed. As you can see, two servers are unlicensed:
    C1000v-01# show module
    Mod  Ports  Module-Type                       Model               Status
    ---  -----  --------------------------------  ------------------  ------------
    1    0      Virtual Supervisor Module         Nexus1000V          active *
    2    0      Virtual Supervisor Module         Nexus1000V          ha-standby
    4    248    Virtual Ethernet Module           NA                  ok
    5    248    Virtual Ethernet Module           NA                  ok
    7    248    Virtual Ethernet Module           NA                  ok
    8    248    Virtual Ethernet Module           NA                  ok
    9    248    Virtual Ethernet Module           NA                  ok
    10   248    Virtual Ethernet Module           NA                  unlicensed
    11   248    Virtual Ethernet Module           NA                  unlicensed
    17   248    Virtual Ethernet Module           NA                  ok
    {skipped}
    Mod  Server-IP        Server-UUID                           Server-Name
    ---  ---------------  ------------------------------------  --------------------
    1    192.168.38.15      NA                                    NA
    2    192.168.38.15      NA                                    NA
    4    192.168.38.115     00000000-0000-0000-0101-0a0b0c0d0110  dc1esx015.vStrong.info
    5    192.168.38.116     00000000-0000-0000-0101-0a0b0c0d010f  dc1esx016.vStrong.info
    7    192.168.38.119     00000000-0000-0000-0101-0a0b0c0d0111  dc1esx019.vStrong.info
    8    192.168.38.120     00000000-0000-0000-0101-0a0b0c0d0112  dc1esx020.vStrong.info
    9    192.168.38.121     00000000-0000-0000-0101-0a0b0c0d0113  dc1esx021.vStrong.info
    10   192.168.38.122     00000000-0000-0000-0101-0a0b0c0d0115  dc1exc04n01.vStrong.info
    11   192.168.38.123     00000000-0000-0000-0101-0a0b0c0d0114  dc1exc04n02.vStrong.info
  3. OK, it is time to contact your Cisco account manager and buy new licenses.
    Cisco Nexus 1000V is licensed per physical CPU i.e. if you have dual CPU, quad core host, you need two Cisco Nexus 1000V licenses. Please refer to “Cisco Nexus 1000V Switch for VMware vSphere Licensing Information“.

    • You will be sent a PAK (Product Authorization Key) which you need to register with Cisco;
    • Login to www.Cisco.com, Support, Manage Software, Register and Manager Licenses, click on “Continue to Product License Registration”;
    • Enter PAK or click ‘Load More PAKs…’ to register multiple PAKs, click Fulfill Selecte PAKs;
    • Type the Host ID for the Cisco Nexus 1000V switch that you need to add the licenses to (see below);
      C1000v-01# show license host-id
      License hostid: VDH=9623761541319554XXX
    • Click Assign, click Next;
    • Select End User, confirm that the email address is correct, click on Get Licenses. The licenses will be emailed to you in a .ZIP file or you can download them straight away;
    • If you registered multiple PAKs or split up license, you will get multiple license files (.lic). If you don’t remember which one is for which 1000V switch – no problem: a) you will not be able to add license that is assigned to another switch (different host ID) and b) license file contains the switch host id:
      These license files were carved out of one PAK (3711J318XXX):

      • License1.lic:
        SERVER this_host ANY
        VENDOR cisco
        INCREMENT NEXUS1000V_LAN_SERVICES_PKG cisco 1.0 permanent 2
        HOSTID=VDH=9623761541319554XXX
        NOTICE="<LicFileID>20130722020450170</LicFileID><LicLineID>1</LicLineID>
        <PAK>3711J318XXX</PAK>" SIGN=29650F741XXX
      • License2.lic:
        SERVER this_host ANY
        VENDOR cisco
        INCREMENT NEXUS1000V_LAN_SERVICES_PKG cisco 1.0 permanent 2
        HOSTID=VDH=9641345861319634XX
        NOTICE="<LicFileID>20130722020450XXX</LicFileID><LicLineID>1</LicLineID>
        <PAK>3711J318XXX</PAK>" SIGN=9224DF2E1XXX
  4. Download license file from a FTP site:
    C1000v-01# copy ftp://User_Name@192.168.36.89/N1KVFEAT20130722020450XXX.lic bootflash:
  5. Make sure the license file has been coppied:
    C1000v-01# dir bootflash:
    248     Jul 23 09:30:55 2013  N1KVFEAT20130722020450XXX.lic
    {skipped}
    Usage for bootflash://sup-local
    713424896 bytes used
    881451008 bytes free
    1594875904 bytes total
  6. Install Cisco Nexus 1000V license:
    C1000v-01# install license bootflash:N1KVFEAT20130722020450XXX.lic
    Installing license ......done
  7. Check the license file has been added:
    C1000v-01# show license brief
    N1KVFEAT20111101083251XXX.lic
    N1KVFEAT20130722020450XXX.lic <-- new license file
    C1000v-01# show license usage
    Feature                      Ins  Lic   Status Expiry Date Comments
    Count
    --------------------------------------------------------------------------------
    NEXUS_VSG_SERVICES_PKG        No    0   Unused             -
    NEXUS1000V_LAN_SERVICES_PKG   Yes  30   In use Never       -
    NEXUS_ASA1000V_SERVICES_PKG   No    0   Unused             -
    --------------------------------------------------------------------------------
  8. Check the VEMs are licensed:
    C1000v-01# show moduleMod  Ports  Module-Type                       Model               Status
    ---  -----  --------------------------------  ------------------  ------------
    1    0      Virtual Supervisor Module         Nexus1000V          active *
    2    0      Virtual Supervisor Module         Nexus1000V          ha-standby
    4    248    Virtual Ethernet Module           NA                  ok
    5    248    Virtual Ethernet Module           NA                  ok
    7    248    Virtual Ethernet Module           NA                  ok
    8    248    Virtual Ethernet Module           NA                  ok
    9    248    Virtual Ethernet Module           NA                  ok
    10   248    Virtual Ethernet Module           NA                  ok
    11   248    Virtual Ethernet Module           NA                  ok
    {skipped}
    Mod  Server-IP        Server-UUID                           Server-Name
    ---  ---------------  ------------------------------------  --------------------
    1    192.168.38.15      NA                                    NA
    2    192.168.38.15      NA                                    NA
    4    192.168.38.115     00000000-0000-0000-0101-0a0b0c0d0110  dc1esx015.vStrong.info
    5    192.168.38.116     00000000-0000-0000-0101-0a0b0c0d010f  dc1esx016.vStrong.info
    7    192.168.38.119     00000000-0000-0000-0101-0a0b0c0d0111  dc1esx019.vStrong.info
    8    192.168.38.120     00000000-0000-0000-0101-0a0b0c0d0112  dc1esx020.vStrong.info
    9    192.168.38.121     00000000-0000-0000-0101-0a0b0c0d0113  dc1esx021.vStrong.info
    10   192.168.38.122     00000000-0000-0000-0101-0a0b0c0d0115  dc1exc04n01.vStrong.info
    11   192.168.38.123     00000000-0000-0000-0101-0a0b0c0d0114  dc1exc04n02.vStrong.info
  9. Happy days!? Not really!…
    Run show license usage <package_name> to get a real picture:
    C1000v-01# show license usage NEXUS1000V_LAN_SERVICES_PKG
    ----------------------------------------
    Feature Usage Info
    ----------------------------------------
    Installed Licenses : 30
    Default Eval Licenses : 0
    Max Overdraft Licenses : 16
    Installed Licenses in Use : 30
    Overdraft Licenses in Use : 12  <-- We need more licenses...
    Default Eval Lic in Use : 0
    Default Eval days left : 0
    Licenses Available : 4  <-- Well, there is hope!...
    Shortest Expiry : Never

Hope this will help…

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

This site uses Akismet to reduce spam. Learn how your comment data is processed.