We are using cozbatch Co:Z SFTP version: 2.0.1 (5.0p1) 2012-01-14 for sftp. We are getting an internal error message but the return code=o and the sftp works. Is this a problem? Any help is appreciated, thanks Matt
coz_bin="/usr/lpp/cozn/bin"
export _BPX_SPAWN_SCRIPT=YES
export zopts="mode=text"
r_pattern="*n.txt"
export PASSWD_DSN='T.PDSA.TEST1.ST1TCN(TESTPASS)'
export SSH_ASKPASS=$coz_bin/read_passwd_dsn.sh
export DISPLAY=none
ssh_opts="-oBatchMode=no"
ssh_opts="$ssh_opts -oConnectTimeout=60"
ssh_opts="$ssh_opts -oServerAliveInterval=60"
ssh_opts="$ssh_opts -oStrictHostKeyChecking=no"
{
$coz_bin/cozsftp $ssh_opts -oPort=2222 -b- $ru@$rh <<EOB
cd extent
ls -l *nN½.tT½xX½tT½
EOB
} | awk '
BEGIN {
$coz_bin/cozsftp $ssh_opts -oPort=2222 -b- $ru@$rh <<EOB
cd extent
ls -l *[nN].[tT][xX][tT]
EOB
} | awk '
BEGIN {
print "cd extent"
print "lzopts mode=text"
}
{
if ($1 == "cozsftp>")
next;
print "get " $9 " //DD:DOWNLOAD"
#(optional) delete the remote file after uploading
print "rename " $9" "$9"DONE"
}' | $coz_bin/cozsftp $ssh_opts -oPort=2222 -b- $ru@$rh
CoZBatchN½: Copyright (C) 2005-2009 Dovetailed Technologies LLC. All rights re
CoZBatchN½: version 2.0.1 2012-01-14
CoZBatchI½: executing progname=login-shell="-/bin/sh"
Co:Z SFTP version: 2.0.1 (5.0p1) 2012-01-14
Copyright (C) Dovetailed Technologies, LLC. 2011. All rights reserved.
Co:Z SFTP version: 2.0.1 (5.0p1) 2012-01-14
Copyright (C) Dovetailed Technologies, LLC. 2011. All rights reserved.
fromdsn(T.PDSA.TEST1.ST1TCN(TESTPASS))N½: 1 records/80 bytes read; 7 bytes wri
fromdsn(T.PDSA.TEST1.ST1TCN(TESTPASS))N½: 1 records/80 bytes read; 7 bytes wri
cozsftp> cd extent
cozsftp> lzopts mode=text
mode=text
cozsftp> get testtN.txt //DD:DOWNLOAD
Fetching /extent/testtN.txt to //DD:DOWNLOAD
/usr/lpp/cozn/bin/ssh-socket-info: FSUM9209 cannot execute: reason code = 0b1b0473: EDC5157I An internal error has occurred.
ZosDatasetI½: Opening dataset DD:DOWNLOAD for write
ZosDatasetI½: Closing dataset //DD:DOWNLOAD - 0 bytes received, 0 records writ
cozsftp> rename testtN.txt testtN.txtDONE
cozsftp> get 5testtn.txt //DD:DOWNLOAD
Fetching /extent/5testtn.txt to //DD:DOWNLOAD
ZosDatasetI½: Opening dataset DD:DOWNLOAD for write
ZosDatasetI½: Closing dataset //DD:DOWNLOAD - 5 bytes received, 1 records writ
cozsftp> rename 5testtn.txt 5testtn.txtDONE
CoZBatchI½: returning rc=exitcode=0
Internal Error reason code = 0b1b0473
Re: Internal Error reason code = 0b1b0473
There is a known problem running the ssh-socket-info program with Co:Z Batch. This has been fixed and is part of the new release, due out soon.
ssh-socket-info is a new feature in our code to get more accurate details on the ssh connection for the SMF records that we cut, but we fallback to the original behavior if it isn't successful. You can ignore this message for the time being as it has no effect on the actual file transfer, but if you would like to eliminate it add the following to the beginning of your script:
export _BPX_SHAREAS=YES
ssh-socket-info is a new feature in our code to get more accurate details on the ssh connection for the SMF records that we cut, but we fallback to the original behavior if it isn't successful. You can ignore this message for the time being as it has no effect on the actual file transfer, but if you would like to eliminate it add the following to the beginning of your script:
export _BPX_SHAREAS=YES
-
- Posts: 2
- Joined: Wed May 09, 2012 2:00 pm
Re: Internal Error reason code = 0b1b0473
I am getting the same error BUT my PUT does not work
CoZBatch[N]: Copyright (C) 2005-2009 Dovetailed Technologies LLC. All rights reserved.
CoZBatch[N]: version 2.0.1 2012-01-14
CoZBatch: executing default progname="-/bin/sh"
Co:Z SFTP version: 2.0.1 (5.0p1) 2012-01-14
Copyright (C) Dovetailed Technologies, LLC. 2011. All rights reserved.
* * * * * * * * * * * W A R N I N G * * * * * * * * * * * * *
THIS SYSTEM IS RESTRICTED TO AUTHORIZED USERS FOR AUTHORIZED USE
ONLY. IF NOT AUTHORIZED TO ACCESS THIS SYSTEM,
DISCONNECT NOW. BY CONTINUING, YOU CONSENT TO YOUR KEYSTROKES
AND DATA CONTENT BEING MONITORED. ALL PERSONS ARE HEREBY
NOTIFIED THAT THE USE OF THIS SYSTEM CONSTITUTES CONSENT TO
MONITORING AND AUDITING.
fromdsn(SYFAHE.TSOLIB.CNTL(PASSW))[N]: 1 records/80 bytes read; 10 bytes written in 0.001 seconds (9.766 KBytes/sec).
cozsftp> lzopts mode=text,servercp=ISO8859-1
mode=text servercp=ISO8859-1
cozsftp> put //DD:UPLOAD testfile.txt
Uploading //DD:UPLOAD to /home/ops/esd1/testfile.txt
/usr/local/coz/bin/ssh-socket-info: FSUM9209 cannot execute: reason code = 0b1b0473: EDC5157I An internal error has
occurred.
Do I need to go to the newest release Thanks
CoZBatch[N]: Copyright (C) 2005-2009 Dovetailed Technologies LLC. All rights reserved.
CoZBatch[N]: version 2.0.1 2012-01-14
CoZBatch: executing default progname="-/bin/sh"
Co:Z SFTP version: 2.0.1 (5.0p1) 2012-01-14
Copyright (C) Dovetailed Technologies, LLC. 2011. All rights reserved.
* * * * * * * * * * * W A R N I N G * * * * * * * * * * * * *
THIS SYSTEM IS RESTRICTED TO AUTHORIZED USERS FOR AUTHORIZED USE
ONLY. IF NOT AUTHORIZED TO ACCESS THIS SYSTEM,
DISCONNECT NOW. BY CONTINUING, YOU CONSENT TO YOUR KEYSTROKES
AND DATA CONTENT BEING MONITORED. ALL PERSONS ARE HEREBY
NOTIFIED THAT THE USE OF THIS SYSTEM CONSTITUTES CONSENT TO
MONITORING AND AUDITING.
fromdsn(SYFAHE.TSOLIB.CNTL(PASSW))[N]: 1 records/80 bytes read; 10 bytes written in 0.001 seconds (9.766 KBytes/sec).
cozsftp> lzopts mode=text,servercp=ISO8859-1
mode=text servercp=ISO8859-1
cozsftp> put //DD:UPLOAD testfile.txt
Uploading //DD:UPLOAD to /home/ops/esd1/testfile.txt
/usr/local/coz/bin/ssh-socket-info: FSUM9209 cannot execute: reason code = 0b1b0473: EDC5157I An internal error has
occurred.
Do I need to go to the newest release Thanks
Re: Internal Error reason code = 0b1b0473
This message occurs because the ssh-socket-info utility is APF authorized and must run in its own address space. you can work around the issue with your current version of the toolkit by exporting the following environment variable in your script:
The new release of the toolkit (2.1.1) addresses this problem if you would prefer to install the new version. Please see the release notes for more information:
http://devel.dovetail.com/docs/cozinstall/changes.html
Code: Select all
export _BPX_SHAREAS=YES
http://devel.dovetail.com/docs/cozinstall/changes.html