IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
#Power
 View Only
Expand all | Collapse all

How to discover which HMC IP address manages a particular IBMi?

  • 1.  How to discover which HMC IP address manages a particular IBMi?

    Posted Mon September 02, 2024 09:36 PM

    How to discover which HMC IP address manages a particular IBMi using green screen only? 

    For AIX is lsrsrc IBM.MCP which can display the HMC IP but I could not find anything for IBMi.



    ------------------------------
    wong ck
    ------------------------------


  • 2.  RE: How to discover which HMC IP address manages a particular IBMi?

    Posted Tue September 03, 2024 02:04 AM

    Hello,

    did you have a look on the following IBM Technote: https://www.ibm.com/support/pages/dsphmcinfdspsmdta-querying-current-status-every-hmc-or-sm-straight-command-line

    Nikos.



    ------------------------------
    NIKOS METAXATOS
    ------------------------------



  • 3.  RE: How to discover which HMC IP address manages a particular IBMi?

    Posted Tue September 03, 2024 08:02 PM

    Tested on this and is working, thank you. 

    For lsrsrc IBM.MCP doesn't work in QSHELL as the command is not found.



    ------------------------------
    wong ck
    ------------------------------



  • 4.  RE: How to discover which HMC IP address manages a particular IBMi?

    Posted Tue September 03, 2024 02:13 AM

    Dear CK

    Did you get your information from this IBM Technote? : Which HMC manages this server? at https://www.ibm.com/support/pages/which-hmc-manages-server-0      

    My guess is that you may try running  "lsrsrc IBM.MCP" from an IBM i Qshell session to see if this works or not because Qshell is where in IBM i you can run UNIX commands.   If this does not work, I suggest you ask Gareth Coates whose e-mail address is shown in the Technote.  



    ------------------------------
    Satid S
    ------------------------------



  • 5.  RE: How to discover which HMC IP address manages a particular IBMi?

    Posted Wed September 04, 2024 05:24 AM

    Sadly Gareth passed away a couple of years ago now. Too early, and a great loss to the UK IBM Power team and the wider community. 



    ------------------------------
    Jerry Watson
    ------------------------------



  • 6.  RE: How to discover which HMC IP address manages a particular IBMi?

    Posted Tue September 03, 2024 03:30 AM

    Hi,

    You can use _matmatr with option x'0206' to get that information.

    Best regards



    ------------------------------
    Stefan Tageson
    ------------------------------



  • 7.  RE: How to discover which HMC IP address manages a particular IBMi?

    Posted Wed September 04, 2024 02:13 AM

    One solution could be to use QMGTOOLS/DSPPLTINF from QMGTOOLS.



    ------------------------------
    Sylvain Manceau
    ------------------------------



  • 8.  RE: How to discover which HMC IP address manages a particular IBMi?

    Posted Thu September 05, 2024 07:31 AM

    That works pretty good

    System manager(s):                                  
      HMC Vb57f33*ae44551 HMCUSSG.dekko.com - Connected 
      HMC Ve67f61*0e11c02 HMCUSSI.dekko.com - Connected 



    ------------------------------
    Robert Berendt IBMChampion
    Business Systems Analyst, Lead
    Dekko
    Fort Wayne
    260-599-3160
    ------------------------------



  • 9.  RE: How to discover which HMC IP address manages a particular IBMi?

    Posted Thu September 05, 2024 07:39 AM

    Purely an academic challenge - I have no real need to know this.  But when you have multiple HMC's managing this Power system, how do you tell which one is currently supporting the system console?  I failed to see anything in DSPDEVD DSP010000.  WRKHDWRSC TYPE(*LWS) didn't really help either.



    ------------------------------
    Robert Berendt IBMChampion
    Business Systems Analyst, Lead
    Dekko
    Fort Wayne
    260-599-3160
    ------------------------------



  • 10.  RE: How to discover which HMC IP address manages a particular IBMi?

    Posted Thu September 05, 2024 08:05 AM

    Agreed especially for a newcomer and have no access to datacenter



    ------------------------------
    wong ck
    ------------------------------



  • 11.  RE: How to discover which HMC IP address manages a particular IBMi?

    Posted Thu September 05, 2024 08:44 AM

    Here we start with tradition.  We have two datacenters:  USSI, USSG.  Both are remote.  The Power systems at USSI generally use the vHMC supported by the vmware system at USSI and the Power system at USSG generally uses the vHMC supported by the vmware system at USSG.  The vHMC and the power system(s) in each data center are in the same subnet.  The subnets differ between the two data centers.

    If someone reboots an HMC, a Power system or the console drops for any other reason it's quite easy to start the session on the other HMC simply using iACS.  But we tend to try to start the shared session on the right vHMC.

    My suggested best practices include:

    1 - Always start a "shared" session.  Never use a "dedicated" session.  This allows someone else to remotely help you.  While dedicated sounds impressive it is not.

    2 - Go into STRSST in IBM i, 8. Work with Service Tools Server Security and Devices, 2. Select console,  and set "Allow console recovery" to 1=Yes.  If your session drops, for example working from home and your network connection drops, this allows you to get right back in the middle of that hours long save, disk formatting, month end run, etc as if nothing happened.  The only objection is that it makes you enter a SST user id and password to restart the shared session.  I knew of one site who felt his operators were too stupid to handle that.  Yes, you can setup a SST user who only has the following privilege "Take over console.".  Hey, consider it a 2FA to get to the system console.



    ------------------------------
    Robert Berendt IBMChampion
    Business Systems Analyst, Lead
    Dekko
    Fort Wayne
    260-599-3160
    ------------------------------



  • 12.  RE: How to discover which HMC IP address manages a particular IBMi?

    Posted Wed September 04, 2024 11:34 AM

    MATMATR1  using 206 will return HMC info

    ttps://www.ibm.com/docs/en/i/7.4?topic=instructions-materialize-machine-attributes-matmatr#MATMATR__mat0206

    you can run from a CL program if needed

    I have a RPG program:
    matmatr204.rpgle (github.com)
    using the older 204 selection value.  you may be able to use as an example



    ------------------------------
    Bryan Dietz
    ------------------------------