zowe / zen

Eclipse Public License 2.0
1 stars 6 forks source link

Spike: automatic security product detection #37

Open Martin-Zeithaml opened 1 year ago

Martin-Zeithaml commented 1 year ago

Same flavor as #36:

/* REXX */
CVT = Storage('10', 4)                                    
SecurityManager = Storage(d2x(c2d(CVT)+x2d('3E0')), 4)    
SecurityManagerID = Storage(c2x(SecurityManager), 4)      

say SecurityManagerID                                     

Will return RCVT, RTSS or ACF2.

1000TurquoisePogs commented 1 year ago

would love to see this in zowe-install-packaging/bin/utils so people could call it for any reason.

Martin-Zeithaml commented 1 year ago

I already have it in c (appox 50 lines, also with the help). Is the zowe-common-c the right repo for that? Because zowe-install-packaging-tools seems to include only JavaScript (non-C) tools.

Example of output & help:

/u/userid/: ./getsp
TSS
/u/userid/: ./getsp -h
getsp - gets the security product name and returns RACF, TSS, ACF2 or Unknown
  Format: getsp [-h]
  Options:
    -h  This help
  Exit values:
    0 for succesful detection
    1 otherwise
Martin-Zeithaml commented 11 months ago

Executable in zowe-common-c: PR415