login about faq

Hi Team

I am sending a file using scpg3 through command line and able to sent it successfully without any issues. but when i tried the same command in PeopleCode, its giving error message "Error (4) occurred while sending the file"

i have included all the environment variables, also path for sshtectia.dll.

I am using Tectia client 6.1.9, windows server 2008.

I am facing one more issue, whenever i sent the file to another server(unix) using scpg3 command line, the file name append with {} and placed in destination folder.

Kindly share if there is any solution for the issues.

Thanks Gokul

asked Sep 19 '12 at 15:42

cgokul1's gravatar image

cgokul1
1111


Hello, Tectia Client's "scpg3" command-line client (scpg3.exe on Windows), can give you the following return codes:


scpg3 returns the following values based on the success of the operation (excluding zOS client, please check the z/OS User Manual for z/OS return codes):

0 Operation was successful.
1 Internal error.
2 Connection aborted by the user.
3 Destination is not a directory, but a directory was specified by the user.
4 Connecting to the host failed.
5 Connection lost.
6 File does not exist.
7 No permission to access file.
8 Undetermined error from sshfilexfer.
11 Some non-fatal errors occured during a directory operation.
101 Wrong command-line arguments specified by the user.

The error number "4" would mean that the connection to the remote SSH server didn't work at the time the SCPG3 client tried to establish a file transfer connection. In this case, you would need to check that no firewalls, etc were blocking the connection and that the remote SSH service was really up and running.

Regarding Peoplecode programs and Tectia, I can see that you have done already pre-requisites according to the following article: PeopleCode (Peoplesoft) and Tectia Client

Regards, SamiM

link

answered Oct 24 '12 at 03:07

Sami%20Marttinen's gravatar image

Sami Marttinen ♦
191114

Please note that Tectia ConnectSecure has JAVA and C API's available (for SFTP use only), that you could also use from your application.

Also, Tectia Client/ConnectSecure has a daemon component that you can use to control Tectia and to get nice statistics out for display:

>ssh-broker-ctl

Usage: ssh-broker-ctl command [options]
Generic options:
-q, --quiet            Define that little or no output is to be
                       displayed.
-s, --short            Shorter, more machine readable output.
-v, --verbose          Display more information, if available.
-w, --wide             Do not truncate long output lines.
-e, --charset=CS       Defines the output character set. See -e help for
                       a list.
    --time-format=FMT  Time format to be used in the output. The default
                       depends on system locale settings.
-a, --broker-address=ADDR
                       Connect to separate Connection Broker process
                       using the given address.
-h, --help             Display a context-sensitive help text.
-D, --debug=STR        Define the debug level.
-V, --version          Display the version string.

Available commands:
status                 Display status of the running Connection Broker.
list-connections       List of open connections.
list-channels          List of open connection channels.
list-keys              List of user private keys.
list-clients           List of connected client processes.
list-profiles          List of connection profiles.
list-tunnel-listeners  List of open tunnel listeners (port forwards).
connection-status      Display a detailed connection status.
close-connection       Close a connection.
close-channel          Close a channel.
disconnect-client      Disconnect a Connection Broker client.
open-tunnel-listener   Open a new tunnel listener.
close-tunnel-listener  Close tunnel listener.
view-key               Display detailed key information.
add-key                Add a new private key.
key-passphrase         Prompt the user private key passphrase.
add-provider           Add a key provider to the Connection Broker.
list-providers         List key providers in the Connection Broker.
remove-provider        Remove a key provider from Connection Broker.
key-upload             Upload a public key to a remote server.
keylog                 View and operate on the key upload log.
pkcs10-sign            Generate a PKCS#10 certificate signing request.
generate-key           Generate a new private key.
probe-key              Fetch a SecSh server host key.
remove-key             Remove a private key.
auth-handler           Default authentication handler.
config-value           Display configuration values.
validate-certificate   Validate a X.509 certificate.
add-certificate        Add a X.509 certificate to the cache.
add-crl                Add a X.509 CRL to the cache.
debug                  Define the Connection Broker debug settings.
start-gui              Start the Connection Broker GUI.
connector              Enable the Connector in the Connection Broker.
reload                 Reload the Connection Broker configuration file.
start                  Start a new Connection Broker.
stop                   Stop the Connection Broker.

Additional per command usage is available with 'ssh-broker-ctl cmd --help'.

Hopefully this helps!

Regards, SamiM

link

answered Oct 24 '12 at 03:17

Sami%20Marttinen's gravatar image

Sami Marttinen ♦
191114

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2

Asked: Sep 19 '12 at 15:42

Seen: 2,995 times

Last updated: Oct 24 '12 at 03:17

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.