× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



That same program that communicates via the data queue could issue an SSH
command directly to the HMC to accomplish what you want.

In that same way you can programmatically move devices between partitions as
well. IE: move a tape library between partitions during the nightly back
up. (Assuming it's not virtualized of course, Rob would no need to do this
since his stuff is virtualized by NPIV)

An example that moves a tape library:

/* This assumes you have completed the steps necessary to allow an SSH

/* session with the HMC. Once communication is working, this program will

/* also work. See "Sending HMC Commands form a CL Program" on the iSeries

/* Support Web site for details on setting this up.

/*

/* The link referenced above assumes you know which HMC commands you want

/* to use. see http://www14.software.ibm.com/webapp/set2/sas/f/hmc for a

/* list of available commands.

/*

/* The HMC Command being used here, and the parameters being used are:

/*

/* chhwres - Change Hardware Resource Configuration (DLPAR)

/*

/* Parameters: -r - the type of hardware resource being changed

/* we use: io

/* -r io

/* -rsubtype - the subtype of hardware resources to be
changed
/* we use: slot

/* -rsubtype slot

/* -m - the managed system

/* we use: Server-9406-520-SN99999
/* -m Server-9408-M25-SN99999
/* -o - the operation to perform

/* we use: m - move

/* -o m

/* -p - the partition name resources are moving from

/* we use: &from (MYMZ, MYTST,PRODUCTION
/* -p MYTST or
/* -p MYMZ or
/* -p PRODUCTION

/* -t - the partition name resources are moving to

/* we use: MYDMZ, MYTST, PRODUCTION
/* -t MYTST or
/* -t MYDMZ or
/* -p PRODUCTION

/* -l - the DRC Index name

/* ? we use: 21010111(C04) or 21020111 (C05)

/* ? -l 21010111 or

/* ? -l 21020111

/* DRC Index names can be a bit tough to find, so use the lshwres

/* Display hardware resource information to discover these.

/*

/* lshwres -r io --rsubtype slot -m Server-9408-M25-SN999999
/*

.......
/* The &LOGIN variable holds the SSH login information */
DCL VAR(&LOGIN) TYPE(*CHAR) LEN(63) VALUE('ssh +
slotmover1@xxxxxxxxxxxxx -i +
/home/h1sip/.ssh/id_rsa')

/* &C10TOTST is a command which will get the C10 SLOT */

DCL VAR(&C10TOHERE) TYPE(*CHAR) LEN(103) VALUE(' +
chhwres -r io --rsubtype slot -m +
8202-E4C-9999999 -o m -p H1TST2 -t H1SIP +
-l 2101011B')
..........

/* Get C10 */
CHGVAR VAR(&CMD) VALUE(&LOGIN *CAT &C10TOHERE)
QSH CMD(&CMD)
.......


--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Thomas Garvey
Sent: Friday, April 10, 2015 9:06 AM
To: Midrange Systems Technical Discussion
Subject: Re: Power Handling program?


Any thoughts on actually getting the server to power off (after all
partitions are shut down)?

On 4/10/2015 8:51 AM, Thomas Garvey wrote:
Thanks,


Best Regards,

Thomas Garvey


On 4/10/2015 7:30 AM, Jim Oberholtzer wrote:
That I am aware of no, I've not seen examples of that type.

However it's fairly easy to do. I like remote data queues. Set up a
remote
data queue on each partition. The program that listens for that data
queue entry would be able to perform an orderly shutdown. When it
receives the queue entry from the partition connected to the UPS (the
program setup to watch QUPSMSGQ), it does its thing. This program
would start with the start up program and I usually use QUSRNOMAX job
queue.

When you think about it this can be used for many types of
interpartition communications limited only by your need and
imagination. The program can be written in any language (I use CL) so
use your favorite.

--
Jim Oberholtzer
Chief Technical Architect
Agile Technology Architects


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf
Of Thomas Garvey
Sent: Thursday, April 09, 2015 11:44 PM
To: Midrange Systems Technical Discussion
Subject: Power Handling program?

I've seen the suggested code IBM published for a Power Outage
Handling program when the message queue defined by the QUPSMSGQ
system value is allocated.
But what can be done when a UPS is supporting a server on which
multiple partitions are defined?
What is the connection actually made between the RS232 cable from the
UPS and the IBM i? It must be simply an IBM i port monitored by some
process in a single partition, right?
In this case, how would all the partitions be notified so they can be
shut down? And, if they could all be shut down, how would the server
itself be powered off, since PWRDWNSYS doesn't actually power the
server down (we do it through the HMC, which also manages another
server).

Is there an IBM document describing this circumstance?


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.