Have a look at the JZOS classes which are integrated with JDK for z/OS.

http://www.ibm.com/developerworks/java/zos/javadoc/jzos/com/ibm/jzos/ZUtil.html
ZUtil has a method, peekOSMemory:


public static void peekOSMemory(long address,
                byte[] bytes,
                int offset,
                int len)
                         throws RcException
Peek bytes from OS memory. 

Parameters:
address - the address of the OS memory to start peeking from.
bytes - the location to store the bytes peeked
offset - the 0-based offset into bytes where to store the first byte peeked
len - the number of bytes to copy from memory
Throws:
java.lang.IllegalArgumentException - if offset and len are incompatible with 
bytes
RcException - if there is an error accessing the memory location.
java.lang.SecurityException - if a a SecurityManager is active and the user 
doesn't have access to JzosPermission("peekOSMemory")

It should allow to get all sorts of information that you can get with Assembler.

Hope that helps.

Denis.

 

 

 

-----Original Message-----
From: Miklos Szigetvari <miklos.szigetv...@isis-papyrus.com>
To: IBM-MAIN <IBM-MAIN@LISTSERV.UA.EDU>
Sent: Tue, Sep 17, 2013 3:36 pm
Subject: Re: Get CPUID and srial number from JAVA code


I hope gives better ideas as,  the SDSF JAVA interface, and the "D 
MP=CPU" operator command reply.


On 17.09.2013 15:28, Arye Shemer wrote:
> Hi,
>
> Has anyone know how I can get CPUID and machine serial number from JAVA
> code ?
>
> Is there a z/OS Java forum that I can get help on this issue ?
>
> thanks,
>
> Arye Shemer.
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
>


-- 
Kind regards, / Mit freundlichen Grüßen
Miklos Szigetvari

Research&  Development
ISIS Papyrus Europe AG
Alter Wienerweg 12, A-2344 Maria Enzersdorf, Austria
T: +43(2236) 27551 333, F: +43(2236)21081
E-mail: miklos.szigetv...@isis-papyrus.com
Info: i...@isis-papyrus.com Hotline: +43-2236-27551-111
Visit our brand new extended Website at www.isis-papyrus.com
---------------------------------------------------------------
This e-mail is only intended for the recipient and not legally
binding. Unauthorised use, publication, reproduction or
disclosure of the content of this e-mail is not permitted.
This email has been checked for known viruses, but ISIS Papyrus accepts
no responsibility for malicious or inappropriate content.
---------------------------------------------------------------

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to