AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Finding WWN from HMC

    Posted Sat June 16, 2012 12:25 AM

    Originally posted by: manu12


    Hi,

    how to find out wwn of hba card if aix is not installed from HMC?


  • 2.  Re: Finding WWN from HMC

    Posted Sat June 16, 2012 10:37 AM

    Originally posted by: unixgrl


    lshwres -r io -m <framename> --rsubtype slotchildren -F phys_loc,description,wwpn

    Frame may need to be powered up in hardware discovery mode first

    chsysstate -m <framename> -o onhwdisc -r sys


  • 3.  Re: Finding WWN from HMC

    Posted Mon June 18, 2012 04:06 PM

    Originally posted by: nh4aix


    Check out a relatively new HMC command "chnportlogin". This will do what you are looking for.
    The HMC command, chnportlogin can be used to have all the WWPNs login to the SAN, and then later used to log out the 2nd WWPN, even if AIX isn't installed on the LPAR using NPIV!. This makes it easier for storage and SAN switch administrators to do their jobs, as the storage and switch often automatically detect WWPNs logged into the SAN. Also the HMC lsnportlogin command will also be useful for this. You have to do chnportlogin -o login before any ports will show up as logged in, but after that lsnportlogin works. After all the port have been mapped by the SAN administrator, run a chnportlogin -o logout so the ones that were logged in temporarily can log out and be free to be used in an LPM operation

    References:

    http://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/topic/p7edm/chnportlogin.html
    http://publib.boulder.ibm.com/infocenter/powersys/v3r1m5/topic/p7edm/lsnportlogin.html
    https://www.ibm.com/developerworks/mydeveloperworks/blogs/cgaix/entry/new_hmc_commands_chnportlogin_and_lsnportlogin_login_in_virtual_fibre_channel_adapters_for_npiv_client_lpars1?lang=ko

    Pre-requisites:
    • VIOS: It's 2.2.0.11-FP24 SP01 or higher
    • HMC levels HMC 7.7.3, with MH01263

    Hope that helps,
    joe


  • 4.  Re: Finding WWN from HMC

    Posted Wed April 27, 2016 06:26 AM

    Originally posted by: F573_Jens_Hermansson


    Hi, 

    Or you can do the easy way and initiate a system plan from your HMC and then look at the result under hardware. 

    Hope that helps.