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
Does something would work for you?
http://stackoverflow.com/questions/2514439/how-do-i-run-ssh-commands-on-remote-system-using-java
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?
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
Quote from: JBNC on February 29, 2016, 04:34:37 PM
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?
Think of -h as "hostname". So it might look like:
arsload -h cmod.server.example.com -u user -p password -g AppGroup -a App -nfv <file to load>
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,
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
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?
Quote from: SV on May 05, 2016, 10:03:46 PM
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.
@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?
There's a reason IBM ships CMOD with an installer -- there are registry entries that need to be created, permissions set, etc.
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 (https://www-05.ibm.com/e-business/linkweb/publications/servlet/pbi.wss?CTY=US&FNC=SRX&PBL=SC19-3357-01)