How to install license in CISCO SAN switches

The below process explains the license installation process in CISCO SAN switches.
The main thing you need to have is an FTP server to store the license files and that should have network connectivity to switch.
The process is as follows, 


1, keep the license files in default FTP folder. The license files normally will have an extension ".lic"
2. Login to switch and verify the  serial number.
3. copy the license files from FTP server to switch bootflash.
4. install the license files using "install license" command.
5. verify the installed license using :show license usage" command.


for example:-
192.168.1.1 is our test FTP server and we have "MDS20090813092533874.lic" license file available in default FTP directory.


login to switch


The Cisco MDS CookbookCISCO login: admin
Password: 
Cisco Storage Area Networking Operating System (SAN-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2008, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained herein are owned by
other third parties and are used and distributed under license.
Some parts of this software may be covered under the GNU Public
License or the GNU Lesser General Public License. A copy of 
each such license is available at
http://www.gnu.org/licenses/gpl.html and
http://www.gnu.org/licenses/lgpl.html
CISCO#


in this example we are going to install PORT_ACTIVATION_PKG license. verify the current license status using "show license usage" command.


CISCO# show license usage 


Feature                      Ins  Lic   Status Expiry Date Comments
                                 Count
--------------------------------------------------------------------------------
FM_SERVER_PKG                 Yes   -   Unused never       -
ENTERPRISE_PKG                Yes   -   Unused never       -
PORT_ACTIVATION_PKG           No   12   In use never       -
10G_PORT_ACTIVATION_PKG       No    0   Unused             -
--------------------------------------------------------------------------------


here we have 12 PORT_ACTIVATION_PKG available. now we are going to increase the port count by adding another 12 port license.


CISCO# show port-license 


 Available ext port activation licenses are 0
 Available bay port activation licenses are 0
-----------------------------------------------
  Interface   Cookie    Port Activation License 
-----------------------------------------------
  bay1        16838656        ineligible       
  bay2        16834560        acquired         
  bay3        16818176        ineligible       
  bay4        16809984        acquired         
  bay5        16789504        acquired         
  bay6        16781312        acquired         
  bay7        16805888        eligible         
  bay8        16863232        eligible         
  bay9        16850944        eligible         
  bay10       16842752        acquired         
  bay11       16822272        acquired         
  bay12       16826368        acquired         
  bay13       16785408        acquired         
  bay14       16797696        eligible         
  bay15       16801792        eligible         
  bay16       16859136        eligible         
  ext1        16814080        acquired 


Available bay port activation licenses are 0


Port Activation License Status
acquired means The port is licensed and active.
eligible means The port is eligible to receive a license but does not yet have one.
ineligible means The port is not allowed to receive a license.


Now we are ready to start the license installation.
From switch execute the copy command to download the license file to switch.


CISCO# copy ftp://192.168.1.1/MDS20090813092533874.lic bootflash:MDS20090813092533874.lic
Enter username: ftpuser
Password: 


Enter user name and password. The license file will move to bootflash of switch.now run "install license" command from switch prompt to start the installation.


CISCO# install license bootflash:MDS20090813092533874.lic
Installing license ........done


installation of license file is completed. Now you can verify the installation. Run "show license usage" command from switch prompt.


CISCO# show license usage 


Feature                      Ins  Lic   Status Expiry Date Comments
                                 Count
--------------------------------------------------------------------------------
FM_SERVER_PKG                 Yes   -   Unused never       -
ENTERPRISE_PKG                Yes   -   Unused never       -
PORT_ACTIVATION_PKG           Yes  24   In use never       -
10G_PORT_ACTIVATION_PKG       No    0   Unused             -
--------------------------------------------------------------------------------


PORT_ACTIVATION_PKG is upgraded to port count 24.



CISCO# show port-license 


 Available ext port activation licenses are 0
 Available bay port activation licenses are 8
-----------------------------------------------
  Interface   Cookie    Port Activation License 
-----------------------------------------------
  bay1        16838656        ineligible       
  bay2        16834560        acquired         
  bay3        16818176        ineligible       
  bay4        16809984        acquired         
  bay5        16789504        acquired         
  bay6        16781312        acquired         
  bay7        16805888        eligible         
  bay8        16863232        eligible         
  bay9        16850944        eligible         
  bay10       16842752        acquired         
  bay11       16822272        acquired         
  bay12       16826368        acquired         
  bay13       16785408        acquired         
  bay14       16797696        eligible         
  bay15       16801792        eligible         
  bay16       16859136        eligible         
  ext1        16814080        acquired         


Available bay port activation licenses count changed to 8


exit from the switch


CISCO# exit







How to find HBA WWN in HP Unix

HP-UX: HP Certification Systems Administrator, Exam HP0-A01 - Training Guide and Administrator's Reference, 3rd Edition
in HPUX we have inbuilt  utilities/commands to find  HBA details. The easy way to find HBA details is by using "fcmsutil" command.

1.fcmsutil - Fibre Channel Mass Storage Utility Command for Fibre Channel Host Bus Adapters.

Usage:-
/opt/fcms/bin/fcmsutil device_file [options]


The device_file specifies the Fibre Channel device special file associated with the Fibre Channel HBA port. The device file has the format /dev/FC_driverX, where X is the instance number of the Fibre Channel HBA port, as reported by the ioscan output.

2.ioscan - scan the I/O system
Usage:-
/usr/sbin/ioscan [-N] [-k-u] [-e] [-d driver -C class] [-I instance][-H hw_path] [-l] [-A] [ -f[-n]-F[-F][-n] ] [devfile]

the main options associated with this usage are
-C class Restrict the output listing to those devices belonging to the specified class.

-f Generate a full listing, displaying the module's class, instance number, hardware path, driver,software state, hardware type, and a brief description.

-n List device file names in the output. Only special files in the /dev directory and its subdirectories are listed. Must be used with either the -f or the -F option.

 
The process to find out HBA details in an HPUX machine is as follows:

1, Use ioscan command to find the FC device files associated with that server.
# ioscan -fnC fc
2, Use fcmsutil command to find the HBA details associated with GC devices.
# fcmsutil /dev/fcd4

Example:-
[root@hpux:/root]


# ioscan -fnC fc

Class I H/W Path Driver S/W State H/W Type Description

=======================================================================

fc 4 0/0/10/1/0 fcd CLAIMED INTERFACE HP AB379-60101 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 1) /dev/fcd4
fc 5 0/0/10/1/1 fcd CLAIMED INTERFACE HP AB379-60101 4Gb Dual Port PCI/PCI-X Fibre Channel Adapter (FC Port 2) /dev/fcd5
fc 6 0/0/12/0/0/0/0 fclp CLAIMED INTERFACE HP AD355-60001 4Gb PCIe 2-port Fibre Channel Adapter /dev/fclp6
fc 7 0/0/12/0/0/0/1 fclp CLAIMED INTERFACE HP AD355-60001 4Gb PCIe 2-port Fibre Channel Adapter /dev/fclp7
fc 16 1/0/12/0/0/0/0 fclp CLAIMED INTERFACE HP AD355-60001 4Gb PCIe 2-port Fibre Channel Adapter /dev/fclp16
fc 17 1/0/12/0/0/0/1 fclp CLAIMED INTERFACE HP AD355-60001 4Gb PCIe 2-port Fibre Channel Adapter /dev/fclp17


[root@hpux:/root]                                                      
# fcmsutil /dev/fcd4

Vendor ID is = 0x1077
Device ID is = 0x2422
PCI Sub-system Vendor ID is = 0x103C
PCI Sub-system ID is = 0x12D7
PCI Mode = PCI-X 133 MHz
ISP Code version = 4.4.4
ISP Chip version = 3
Previous Topology = UNINITIALIZED
Link Speed = UNKNOWN
Local N_Port_id is = None
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x5001438004bd4d7d
N_Port Port World Wide Name = 0x5001438004bd4d7c
Switch Port World Wide Name = 0
Switch Node World Wide Name = 0
N_Port Symbolic Port Name = hpux_fcd4
N_Port Symbolic Node Name = hpux_HP-UX_B.11.31
Driver state = AWAITING_LINK_UP
Hardware Path is = 0/0/10/1/0
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
Driver Version = @(#) fcd B.11.31.0903 Dec 14 2008


[root@hpux:/root]
# fcmsutil /dev/fclp17 | grep -i "N_Port Port World Wide Name"
N_Port Port World Wide Name = 0x5001438004bd2946

Display the Fabric OS version in Brocade Switch

The command used to display the FOS version  in a Brocade switch or director is "firmwareshow". It shows the firmware versions on both the primary and secondary partitions of the  storage device.

Building SANs with Brocade Fabric Switchesusage :-
  prosw10:admin> firmwareshow


eg:-

prosw10:admin> firmwareshow
Appl     Primary/Secondary Versions
------------------------------------------
FOS      v6.2.0g
             v6.2.0g

:admin> firmwareshow


Slot Name Appl Primary/Secondary Versions Status

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

5 CP0   FOS     v5.3.2c          STANDBY

                         v5.3.2c

6 CP1  FOS      v5.3.2c         ACTIVE *

                         v5.3.2c





Admin Helpline™ © , All Rights Reserved.
Privacy Policy