IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  ACS Scripting on Mac

    Posted 05/05/25 10:39 AM

    Hello,

    I'm trying to do some scripting on Mac for ACS with using the /PLUGIN option.   I've been trying to automatically change over any existing connection to use TLS/SSL "/ssl=1" to make the connection secure.  I've been able to do this on Windows, but running up against the wall on Mac.   Obviously I'm not all that familiar with the path structure.  I'm confused where the acsbundle.jar is getting executed from when I open ACS from the Applications folder vs opening ACS from the command line.  "java -Xmx1024m -jar /usr/local/ibmiaccess/acsbunel.jar."

    When using "java -Xmx1024m -jar /usr/local/ibmiaccess/acsbunel.jar /PLUGIN=cfg /LIST"   I get nothing but I do have a system defined when opening it from the Applications directory.  

    If I create a system with the command: "java -Xmx1024m -jar /usr/local/ibmiaccess/acsbunel.jar /PLUGIN=cfg /system=myibmi.ibmi.com" and then followed by "java -Xmx1024m -jar /usr/local/ibmiaccess/acsbunel.jar /PLUGIN=cfg /LIST" it will show the system I created.   But doesn't show when I open from the Applications folder.  

    I guess what I'm getting at is, how can I get a /LIST of systems from the current user with a command?  I want to automatically reconfigure them to use TLS/SSL.  

    Any suggestions would be greatly appreciated.

    Thanks!



    ------------------------------
    Nicholas Frazee
    ------------------------------

    #IBMiAccessClientSolutions


  • 2.  RE: ACS Scripting on Mac

    Posted 05/08/25 10:20 AM

    Interesting, I haven't seen that before. FWIW, running java -jar /usr/local/ibmiaccess/acsbundle.jar /PLUGIN=cfg /LIST does return the systems for the current user. Is your script running as the same user or a different one?

    You should be able to see which acsbundle.jar is being used in the macOS app by selecting the help > About menu option. 

    To see which configuration is being used, try the Edit > Preferences menu option, then select the Local Settings tab and look at the Configuration Root value.

    If the config root are not the same between the app and command line, try setting that when running from the command line (see the com.ibm.iaccess.AcsBaseDirectory property in the getting started guide sect. 9.3) 



    ------------------------------
    Carl G
    ------------------------------



  • 3.  RE: ACS Scripting on Mac

    Posted 05/09/25 06:05 PM

    Thanks Carl, this pointed me in the right direction and was able to figure it out.  I've got my scripting in place and seems to be working.


    Thanks again!

    NF



    ------------------------------
    Nicholas Frazee
    ------------------------------