× 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.



Thanks, I will give this a spin.

Brian May
IBM i Modernization Specialist
Profound Logic Software
http://www.profoundlogic.com
937-439-7925 Phone
877-224-7768 Toll Free



Modernization Made Easy!
www.profoundlogic.com
         


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Bryan Dietz
Sent: Wednesday, October 08, 2014 12:40 PM
To: Midrange Systems Technical Discussion
Subject: Re: Determining number of cores allocated to an LPAR

Not a complete example...


DCL VAR(&MATMATR) TYPE(*CHAR) LEN(121)
DCL VAR(&BYTESIN) TYPE(*CHAR) STG(*DEFINED) LEN(4) DEFVAR(&MATMATR) DCL VAR(&BYTESOUT) TYPE(*CHAR) STG(*DEFINED) LEN(4) DEFVAR(&MATMATR 5) DCL VAR(&curvrt) TYPE(*CHAR) STG(*DEFINED) LEN(2) DEFVAR(&MATMATR 37) DCL VAR(&curmem) TYPE(*CHAR) STG(*DEFINED) LEN(4) DEFVAR(&MATMATR 49) DCL VAR(&curprc) TYPE(*CHAR) STG(*DEFINED) LEN(4) DEFVAR(&MATMATR 69) DCL VAR(&DSPvrtprc) TYPE(*CHAR) LEN(10) DCL VAR(&DSPsysMEM) TYPE(*CHAR) LEN(10) DCL VAR(&DSPsysprc) TYPE(*CHAR) LEN(10) DCL VAR(&sysprcdec) TYPE(*dec) LEN(8 2)

/* Get some LPAR details */
CHGVAR VAR(%BIN(&BYTESIN)) VALUE(121)
CALLPRC PRC('_MATMATR1') PARM((&MATMATR *BYREF) (X'01E0' *BYREF))
CHGVAR VAR(&DSPvrtprc) VALUE(%BIN(&curvrt 1 2))
CHGVAR VAR(&DSPsysMEM) VALUE(%BIN(&curmem 1 4))
CHGVAR VAR(&sysprcdec) VALUE(%BIN(&curprc 1 4))
CHGVAR VAR(&sysprcdec) VALUE(&sysprcdec /100)
CHGVAR VAR(&DSPsysprc) VALUE(&sysprcdec )
CHGVAR VAR(&DSPsysMEM) VALUE(%trimL(&DSPsysMEM 0))
CHGVAR VAR(&DSPvrtprc) VALUE(%trimL(&DSPvrtprc 0))
CHGVAR VAR(&DSPsysprc) VALUE(%trimL(&DSPsysPrc 0))



Vernon Hamberg wrote on 10/8/2014 1:09 PM:
Brian

I've not looked, but maybe the MI API MATMATR - lots of stuff in there.

Might be where QWCRSSTS is getting its information.

Vern

On 10/8/2014 11:54 AM, David Gibbs wrote:
On 10/8/2014 11:19 AM, Brian May wrote:
I've been looking around in the archives and Google and have not hit
on the right search yet to get an answer. Anyone know of an API I
can call to determine the number of processors/cores allocated to an
LPAR?
Are you looking to get the information from the system itself or from
the HMC?

IF you are looking at the system, the QWCRSSTS api with format
SSTS0200 might help.

http://www-01.ibm.com/support/knowledgecenter/ssw_i5_54/apis/qwcrssts
.htm

david



--
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.