Thursday, September 15, 2011

How to find port and slot ID by index port ID shown in name server on SAN Brocade Director

When you wanna find out physical port location - slot and port ID by WWN in name server you can see just index port ID and Port# which is not as same ID as physical port ID.

If you know Index port # or port ID gathered in name server you can link it with slot and port ID by using switchshow command:

42 is index port ID, 3 is slot ID and 10 is physical port ID


SAN:admin> switchshow | grep " 42"
Index Slot Port Address Media Speed State     Proto
===================================================
 42    3   10   642a00   id    N4   Online           F-Port  10:00:00:00:00:00:00:01

Tuesday, September 13, 2011

Monday, September 12, 2011

NIM error and warning messages

Network Installation Manager - Education Assistant slides

AIX / VIOS CDP - Cisco Discovery Protocol to gather information about port on CISCO switch

The Cisco Discovery Protocol (CDP) is a proprietary Data Link Layer network protocol developed by Cisco Systems. It is used to share information about other directly connected Cisco equipment, such as the operating system version and IP address.

Device connected to CISCO CDP enabled switch can sniff CDP packets and gather inflormation about port like switch name, trunk and VLAN IDs, port number like Gi1/5.

VMware support it by default and it can be seen in GUI in networking tab.

AIX / VIOS doesn't support that by default but it can be gathered by script using tcpdump.

Script for CDP on AIX can be downloaded here:
http://the-welters.com/professional/scripts/

Monday, September 5, 2011

AIX - EMC Symetrix Inquiry tool to list - show LUN info for storage

How and where can I see information about LUNs in AIX from EMC Symetrix storage?
Utility is called inq.aix64_51 and can be found in this location: /usr/lpp/EMC/Symmetrix/bin

EMC Drivers / filesets have to be installed:
/usr/lpp/EMC/Symmetrix/bin # lslpp -L | grep EMC
EMC.Symmetrix.aix.rte 5.3.0.5 C F EMC Symmetrix AIX Support
EMC.Symmetrix.fcp.MPIO.rte
5.3.0.5 C F EMC Symmetrix FCP MPIO Support

Scripts and utilities are installed by default:
/usr/lpp/EMC/Symmetrix/bin # ls
bcvfcp.tar emc_odmupdate_uniqueid_v2.tar inq.aix32_51 rdfg.tar
boot_change_v3.tar emc_reserve_v1.sh inq.aix64_51 rmbcv
emc_cfgmgr emcgrab_AIX_v4.2.tar mkbcv
emc_odmupdate.tar emcpowerreset nsddevices.tar

Utility to show device linked to LUN with information like capacity, serial number, ID...
# /usr/lpp/EMC/Symmetrix/bin/inq.aix64_51 -sid -showvol
Inquiry utility, Version V7.3-1009 (Rev 0.0) (SIL Version V7.1.0.0 (Edit Level 1009)
Copyright (C) by EMC Corporation, all rights reserved.
For help type inq -h.

..................

------------------------------------------------------------------------------------------------
DEVICE :VEND :PROD :REV :SER NUM :Volume :CAP(kb) :SYMM ID
------------------------------------------------------------------------------------------------
/dev/rhdisk2 :EMC :SYMMETRIX :5773 :xxxxxxxx : 0097B: 75648000 :zzzzzzzzyyxx

Tuesday, August 16, 2011

HMC command to list LPAR profile attributes

Log in HMC shell
List all profiles on one machine and it's CPU attributes.
for LPAR in `lssyscfg -r lpar -m MACHINE_NAME -F lpar_id | sort -n`
do
lssyscfg -r prof -m MACHINE_NAME --filter "lpar_ids=${LPAR}" -F "name:lpar_name:lpar_id:proc_mode:min_proc_units:desired_proc_units:max_proc_units:min_procs:desired_procs:max_procs:sharing_mode:uncap_weight" --header
done

Wednesday, August 10, 2011

Monday, June 20, 2011

Slot Calculator for TS3100, TS3200, TS3310, TS3400 and TS3500 (3584)

An Excel file to calculate the # of slots, LTO and 3592, for a given configuration of TS3100, TS3200, TS3310 and TS3500(3584). and D53, and gives the available capacity(TB) by using the different types of tape cartridges including LTO U1/U2/U3/U4/U5 and 3592 JJ/JR/JA/JW/JB/JX/JC/JY/JK. Also it supports for > 6,887 slots in TS3500 with the firmware level >= 9500 and TS3500 HD tape frames(S24, S54).
http://www-03.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/PRS1763

Thursday, June 2, 2011

How to schedule backup of Brocade SAN switch configuration on UNIX/Linux

Brocade SAN switch can be backed up using Web tools or using CLI over SSH.
We can also schedule backup up of configuration.


Here is how to backup switch configuration from UNIX over SSH and SCP.

1, Generate key pair on switch as admin user:
SANSW:admin> sshutil genkey -rsa

2, Generate key pair on host as user used for backing up configuration (if you don't have it).
username@host:# ssh-keygen -t rsa -P ""