Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SFTP issue

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Prabhu Kvvsrt

New User


Joined: 06 Dec 2006
Posts: 7
Location: Hyderabad

PostPosted: Sat Aug 18, 2012 6:35 pm    Post subject: Resource temporarily unavailable for SFTP in BPXBATCH
Reply with quote

Hi,

Below is the error which i got while executing a SFTP step using BPXBATCH in JCL.It says server is not available but i was able to login to the same server using filezilla/psfstp command prompt.

OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: RNG is ready, skipping seeding
debug1: Rhosts Authentication disabled, originating port wi
debug2: ssh_connect: needpriv 0
debug1: Connecting to XXX.X.XX.XXX ÝXXX.X.XX.XXX¨ port 22.
socket: EDC5112I Resource temporarily unavailable.
ssh: connect to host XXX.X.XX.XXX port 22: EDC5112I Resourc
Connection closed

This is the corresponding jcl code.
STEP10 EXEC PGM=BPXBATCH,REGION=128M,TIME=NOLIMIT,
PARM=('PGM /bin/sftp -vvv -b /tmp/COMDASHZ/batchfile
comdash@XXX.X.XX.XXX')

Could anyone let us know , if any specific registration has to be made for this server for SFTP??

Thanks,
Prabhu
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7990
Location: Bellevue, IA

PostPosted: Sat Aug 18, 2012 7:10 pm    Post subject:
Reply with quote

1. Create a new topic for a new post -- don't piggyback on a topic inactive for well over 3 years. I split your post into a new topic.

2. Firewall problems could be the cause -- consult your network support group.
Back to top
View user's profile Send private message
Prabhu Kvvsrt

New User


Joined: 06 Dec 2006
Posts: 7
Location: Hyderabad

PostPosted: Wed Aug 22, 2012 8:01 pm    Post subject: Solution
Reply with quote

I am able to find the solution, it is something to with TCPIP stacks that are installed in respective environments.
In test, TCPIP2 is set while TCPIP3 was not set while production has both.
So, when i "REMOVE" the entry
_BPXK_SETIBMOPT_TRANSPORT=TCPIP3 from STDENV or when i put
_BPXK_SETIBMOPT_TRANSPORT=TCPIP2, job is able to sftp successfully but not when the parm has _BPXK_SETIBMOPT_TRANSPORT=TCPIP3.

Thanks,
Prabhu
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7990
Location: Bellevue, IA

PostPosted: Wed Aug 22, 2012 8:20 pm    Post subject:
Reply with quote

In other words, the issue turned out to be something very specific to your site and only someone working AT YOUR SITE could possibly have found that out and helped.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts SFTP to primary and secondary servers mallik4u JCL & VSAM 4 Tue Jun 07, 2016 12:52 pm
No new posts Replacement FTP to SFTP Vasili Koipish All Other Mainframe Topics 1 Wed May 11, 2016 3:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us