Author Topic: Making Java connection to AIX Server for remote ARSLOAD API calls  (Read 5823 times)

Joe Wolken

  • Full Member
  • ***
  • Posts: 113
  • CMOD iSeries Consultant
    • View Profile
    • OAS Corp.
I am very familiar with the iSeries platform and less familiar with the AIX Server.

I am trying to create a Java program that issues ARSLOAD API calls from a Windows PC to a remote AIX server that is running CMOD.

I currently have a similar program successfully communicating with a remote iSeries server running CMOD.  It is using JT400 APIs to connect and logon.

Does anyone have experience with making the remote connection and logon calls to an AIX Server? What library should I be using in place of JT400 to perform similar connect and logon functions?

Any guidance would be appreciated.

Joe
#Installation #Upgrade #Migration #Administration #Integration #Customization #Training, and more!

Call: 512-402-1123
email: wolkenj@oascorp.com 
Click: http://www.OASCorp.com

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Making Java connection to AIX Server for remote ARSLOAD API calls
« Reply #2 on: February 29, 2016, 09:34:37 AM »
If you install the CMOD server package on the Windows box, you can issue arsload with the -h parameter to load the file to the server over the network.  Does that help at all?
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

Joe Wolken

  • Full Member
  • ***
  • Posts: 113
  • CMOD iSeries Consultant
    • View Profile
    • OAS Corp.
Re: Making Java connection to AIX Server for remote ARSLOAD API calls
« Reply #3 on: February 29, 2016, 11:01:02 AM »
This would be great if I can get it working this way.

I am looking at the CMOD Multiplatform Administration Guide and I see what you are describing in the definition/usage for ARSLOAD -h.  In the past I have only specified an Instance name as the parameter.

Do you have an example of using the -h parameter to specify the host and the instance?  I am looking at other examples and all I can find is the Instance name specified.

Thanks,
Joe

If you install the CMOD server package on the Windows box, you can issue arsload with the -h parameter to load the file to the server over the network.  Does that help at all?
#Installation #Upgrade #Migration #Administration #Integration #Customization #Training, and more!

Call: 512-402-1123
email: wolkenj@oascorp.com 
Click: http://www.OASCorp.com

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Making Java connection to AIX Server for remote ARSLOAD API calls
« Reply #4 on: February 29, 2016, 02:52:33 PM »
Think of -h as "hostname".  So it might look like:

Code: [Select]
arsload -h cmod.server.example.com -u user -p password -g AppGroup -a App -nfv <file to load>
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

Joe Wolken

  • Full Member
  • ***
  • Posts: 113
  • CMOD iSeries Consultant
    • View Profile
    • OAS Corp.
Re: Making Java connection to AIX Server for remote ARSLOAD API calls
« Reply #5 on: February 29, 2016, 04:07:46 PM »
Thanks for the sample line of code.  I will give this format a try and report back here on my status.  I will probably be later this week before I can get back to this. 

Thanks again,
#Installation #Upgrade #Migration #Administration #Integration #Customization #Training, and more!

Call: 512-402-1123
email: wolkenj@oascorp.com 
Click: http://www.OASCorp.com

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: Making Java connection to AIX Server for remote ARSLOAD API calls
« Reply #6 on: March 01, 2016, 10:44:15 AM »
Well normally you need to configure with the CMOD server tool the "remote CMOD" instance.
So basically you launch "OnDemand Configurator", and then you create a new instance of CMOD, and then instead of creating a new instance on your workstation, you create a instance as a "remote" library server.
You give the hostname and the port, with a instance name... and then you can use the arsload -h with the name of the instance.
That's the "normal" way to do it, that way you can also create a SSL connection, if you ever need it.
With the solution "arsload -h hostname" you cannot do that.
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

SV

  • Guest
Re: Making Java connection to AIX Server for remote ARSLOAD API calls
« Reply #7 on: May 05, 2016, 03:03:46 PM »
* Alessandro Perucchi

Hello I have a scenario where I need to do remote load from a windows server to CMOD server.  CMOD is not installed on Windows server, but the binaries are copied for remote load.

I tried    "arsload -h hostname:port -g appgrp -a app -nfv -u usrid - p user.stash inpfile"

but getting the error

ARS1106E Connection cannot be established for the >hostname:port< server

in tracing the load got this detailed error
ERROR arssock.c(3190)ArcSOCKET_ClientConnect:Error in socket communication buf=Thu May 05 14:00:14 2016: OnDemand(3190) -> getaddrinfo errno = 11001 rc = 11001

Can't I remote load without using windows configurator?

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Making Java connection to AIX Server for remote ARSLOAD API calls
« Reply #8 on: May 06, 2016, 06:27:41 AM »
CMOD is not installed on Windows server, but the binaries are copied for remote load.

Maybe I'm lost here, but you're saying that CMOD is not installed, but wonder why it's not working?

You don't need to configure CMOD to be a full-blown server, but you need to install the binaries properly, not just copy them over from some other server.

But maybe I've completely misunderstood what you've written...  In which case, you seem to have a connectivity or firewall issue.

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

SV

  • Guest
Re: Making Java connection to AIX Server for remote ARSLOAD API calls
« Reply #9 on: May 06, 2016, 12:34:21 PM »
@jbnc

I tried copying the Binaries from path "C:\Program Files\IBM\OnDemand\V9.5" from a server where CMOD is already installed to a new windows server. This new windows server will be used just for PDF indexing and to run arsload to remote load to another CMOD server. 

So after copying, indexed the file and attempting arsload as below

"C:\Program Files\IBM\OnDemand\V9.5\arsload -h cmod.server.example.com:1480 -u user -p stashfile -g AppGroup -a App -nfv <file to load>"

If you are saying this will not work what are the steps to follow?


Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Making Java connection to AIX Server for remote ARSLOAD API calls
« Reply #10 on: May 09, 2016, 10:50:12 AM »
There's a reason IBM ships CMOD with an installer -- there are registry entries that need to be created, permissions set, etc. 

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

Maciej Mieczakowski

  • Jr. Member
  • **
  • Posts: 37
    • View Profile
Re: Making Java connection to AIX Server for remote ARSLOAD API calls
« Reply #11 on: May 31, 2016, 05:07:57 AM »
Another approach is to use DDE interface, especially that calls will be invoked from Windows. Of course CMOD client is needed to perform that calls but it works pretty fine. It can be really useful in some scenarios. Check Windows Client Customization Guide

https://www-05.ibm.com/e-business/linkweb/publications/servlet/pbi.wss?CTY=US&FNC=SRX&PBL=SC19-3357-01