Author Topic: Running ARSMAINT via SSL to ARSSOCKD - Proof of concept  (Read 4450 times)

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1199
    • View Profile
Running ARSMAINT via SSL to ARSSOCKD - Proof of concept
« on: August 31, 2017, 09:49:57 AM »
Can we have ARSMAINT connect to ARSSOCKD via SSL?

I already had a keyring and certificate created as per the other SSL on z/OS related post:

http://www.odusergroup.org/forums/index.php?topic=1938.0

Note that the userid associated with the keyring is the same as the userid of the started task, in my case ARSSV950.

I have the following SSL parms in my ars.ini:

Quote
SSL_PORT=11449                     
SSL_KEYRING_FILE=ARSSOC95.SSLRING 
SSL_KEYRING_LABEL=ARSSOC95.CERT   
SSL_CLNT_USE_SSL=1                 

I ran the following batch job which updates statistics on the DB2     
database.  Be sure you do this on a test system if you use the -r parm!
                                                                     
Quote
//TMP1  EXEC  PGM=IKJEFT01,                                           
//            DYNAMNBR=200                                           
//SYSPROC  DD  DSN=SYS1.SBPXEXEC,DISP=SHR                             
//*                                                                   
//SYSTSPRT DD  SYSOUT=*                                               
//*                                                                   
//SYSTSIN  DD  *                                                     
 oshell logger -d1 starting ARSMAINT run                             
 oshell /usr/lpp/ars/V9R5M0/bin/arsmaint -I ARCH950 -r               
 oshell logger -d1   ending ARSMAINT run                             
//*                                                                   
//STDENV  DD *                                                       
_BPX_SHAREAS=YES                                                     
_BPX_BATCH_SPAWN=YES                                                 
/*                                                                   
//OSHOUT1 DD SYSOUT=*,DCB=(RECFM=F,LRECL=255)                         
//STDOUT DD SYSOUT=*                                                 
//STDERR DD SYSOUT=* 
 
                                             

The first time I ran it I had REGION=7M on the job card and received:
Quote
ARS0000E Initialization of ICU for directory >/usr/lpp/ars/V9R5M0/locale/< failed - please ensure proper installation

I changed the JOB card to REGION=0M and this time I got the following on the z/OS console:

Quote
IEF196I IGD103I SMS ALLOCATED TO DDNAME SYS00036                 
ICH408I USER(ODADMIN ) GROUP(ODCMARS ) NAME(EDWARD ARNOLD       )
  IRR.DIGTCERT.LISTRING CL(FACILITY)                             
  INSUFFICIENT ACCESS AUTHORITY                                 
  ACCESS INTENT(READ   )  ACCESS ALLOWED(NONE   ) 

A quick trip to the google says I should run the following:

Quote
rdefine facility irr.digtcert.listring uacc (none)

permit irr.digtcert.listring class(facility) id(*)       acc(read)

SETROPTS RACLIST(facility)  REFRESH


Try again, still won't connect.

I received a suggestion to add a USER=ARSSV950 to the JOB card.

Eureka!  It works.

If you're trying to see if you can use ARSMAINT via SSL, these instructions should be a good IVP.

Ed


« Last Edit: September 01, 2017, 10:36:19 AM by Ed_Arnold »
#zOS #ODF

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Running ARSMAINT via SSL to ARSSOCKD - Proof of concept
« Reply #1 on: September 04, 2017, 07:44:38 AM »
Is there a specific advantage to running arsmaint remotely, or over an encrypted connection?

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1199
    • View Profile
Re: Running ARSMAINT via SSL to ARSSOCKD - Proof of concept
« Reply #2 on: September 06, 2017, 10:39:10 AM »
Is there a specific advantage to running arsmaint remotely, or over an encrypted connection?

-JD.

I'm hoping somebody else answers this, I can't.

Ed
#zOS #ODF

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Running ARSMAINT via SSL to ARSSOCKD - Proof of concept
« Reply #3 on: September 07, 2017, 12:42:54 PM »
*laugh*

So it's a proof of concept more than anything else?  :)

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Norbert Novotny

  • Jr. Member
  • **
  • Posts: 46
    • View Profile
Re: Running ARSMAINT via SSL to ARSSOCKD - Proof of concept
« Reply #4 on: September 25, 2017, 06:16:16 AM »
There could be a use case.

  • If you have a Linux machine next to it, it is a bit easier (at least for me ;) ) to script things on Linux then on z/OS via USS.
  • It also could be a bit cheaper as it doesn't cost MIPS.
  • Scripts could be re-used in MP environment as well

Norbert Novotny
Legal archiving - Swisscom AG

Mobile:  +41-On-request

Dev: #SQL, #Perl, #Java, #C

Interests: #CMOD, #Multiplatforms, #DB2, #Oracle, #TSM, #ERM, #Performance

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1199
    • View Profile
Re: Running ARSMAINT via SSL to ARSSOCKD - Proof of concept
« Reply #5 on: December 20, 2017, 11:35:28 AM »
Interesting side note.

I'm doing a little SSL testing, so I re-ran my batch job via SSL to prove that it was still working.

SSL_PORT=11449                     
SSL_KEYRING_FILE=ARSSOC95.SSLRING 
SSL_KEYRING_LABEL=ARSSOC95.CERT   
SSL_CLNT_USE_SSL=1
     <<<that's what this line is for, to force ARSMAINT to use SSL.

From the ARSSOC95 started task:

IEF695I START ARSSOC95 WITH JOBNAME ARSSOC95 IS ASSIGNED TO USER ARSSV950, GROUP ODCMARS


When I tested this before I didn't have a NOTIFY= on the job card.

ARSSOC95 runs under userid ARSSV950  <<<< 8 character userid

I copied over a job card that had a NOTIFY=&SYSUID in it and I got

       IEF452I ELASSL95 - JOB NOT RUN - JCL ERROR.

       IEF642I EXCESSIVE PARAMETER LENGTH IN THE NOTIFY FIELD

I'm on z/OS V2.2

8 character *TSO* userids aren't supported until z/OS V2.3.

Ed
#zOS #ODF