App Connect

App Connect

Join this online user group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#Applicationintegration
#App Connect
#AppConnect
#Integration
#Automation
 View Only
  • 1.  Scripts for building bar files

    Posted 05/02/23 07:15 AM

    Hi guys, 

    i need help, тhis is the first time I have encountered these IBM products

    i wrote this script (I hope it helps someone else to, if i fix)

    $itkPath = "C:\Program Files\IBM\IIB\10.0.0.25"

    $projectPath = "C:\Users\myuser\IBM\IIBT10\workspace"
    $barFileName = "errLog.bar"Set-Location $itkPath# Run the mqsicreatebar command to build the bar file
    mqsicreatebar -data $projectPath -b $barFileName

    But i'm getting this error:

    mqsicreatebar : The term 'mqsicreatebar' is not recognized as the name of a cmdlet, function, script file, or operable
    program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At C:\Users\nenad.neshov\Desktop\Scalefocus\WestJET\testscript.ps1:16 char:1
    + mqsicreatebar -data $projectPath -b $barFileName
    + ~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (mqsicreatebar:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException



    ------------------------------
    Nenad Neshov
    ------------------------------


  • 2.  RE: Scripts for building bar files

    Posted 05/03/23 02:14 AM

    Hi Nenad

    In order to be able to run any mqsi command, you need to have them in your environment variables. 
    This can be achieved by running mqsiprofile first. When starting the integration console, the mqsiprofile is run automatically. If you are running from a standard cmd or powershell you need to run the script first, its located in <installdir>\server\bin\mqsiprofile.cmd, more info for v10 can be found here

    https://www.ibm.com/docs/en/integration-bus/10.0?topic=tasks-setting-up-command-environment

    Fyi, v10 has reached the end of support status a while ago, I would start looking at v12 if that is also an option for you.



    ------------------------------
    Regards
    Matthias Blomme
    ------------------------------



  • 3.  RE: Scripts for building bar files

    Posted 05/03/23 03:34 AM

    Hello Nenad,   
     Have you run the mqsiprofile first ?
    That will set up all the environment variables that you need to run mqssicreatebar .   



    ------------------------------
    Paul Lacy
    ------------------------------



  • 4.  RE: Scripts for building bar files

    Posted 05/03/23 04:10 AM

    Hi,

    yes i found that and performed, it is okay now, thanks a lot for the help.



    ------------------------------
    Nenad Neshov
    ------------------------------