Hi,
I'm using sftp via COZBATCH using password.
in the output I get the lines:
1)Co:Z cozsftp version: 1.7.2 (5.0p1) 2010-07-23
2)Copyright (C) Dovetailed Technologies, LLC. 2008. All rights reserved.
3)fromdsn(xxxxxxx.PASSWD(INTERN))[N]: 1 records/80 bytes read; 7 bytes written
I cannot find a way to suppress line 3 even with lzopts loglevel=E.
What should I do because I don't want to expose the PASSWD dataset
Thanx,
Walther
loglevel notification
The "fromdsn" message that you are seeing (at "Notification" level) is from the "read_passwd_dsn.sh" shell script. Its logging level is not affected by lzopts, which only applies to the cozsftp command itself.
Recommendation:
1) Add this to the beginning of your COZBATCH shell script:
export COZ_LOG=E
2) The cozsftp logging level will also then default to "E", so you may want to set it lower if you want to see log messages from the cozsftp client.
lzopts loglevel=I
BTW: I don't really understand your concern about printing the name of the password dataset. Hopefully, it is protected so that it can't be read.
Also, you may want to look into using SSH keys stored in SAF(RACF/ACF2/TS) keyrings.
Recommendation:
1) Add this to the beginning of your COZBATCH shell script:
export COZ_LOG=E
2) The cozsftp logging level will also then default to "E", so you may want to set it lower if you want to see log messages from the cozsftp client.
lzopts loglevel=I
BTW: I don't really understand your concern about printing the name of the password dataset. Hopefully, it is protected so that it can't be read.
Also, you may want to look into using SSH keys stored in SAF(RACF/ACF2/TS) keyrings.