SFTP SHELL SCRIPT USER GUIDE

Size: px
Start display at page:

Download "SFTP SHELL SCRIPT USER GUIDE"

Transcription

1 SFTP SHELL SCRIPT USER GUIDE FCA US INFORMATION & COMMUNICATION TECHNOLOGY MANAGEMENT

2 Overview The EBMX SFTP shell scripts provide a parameter driven workflow to place les on the EBMX servers and queue the les for processing. SFTP is the protocol used to transmit and queue the data to EBMX. SFTP requires that each environment (yours and EBMX) exchange Public Keys before any transmissions can occur. In order to expedite the setup, please submit a Trouble Ticket requesting SFTP setup to the TTTS group EBMX. [Please include server name/ip, application name, AMS#, and technical contact(s)]. The EBMX group will work with you during the setup and testing if you are unfamiliar with SFTP. The shell scripts (Korn & Bourne shell) were developed using Ubuntu Linux and tested on AIX and Solaris. The EBMX Group provides these scripts as-is, if you nd there is an issue or have a question about functionality, please submit a Trouble Ticket and route to EBMX. The EBMX SFTP shell script is one of two options for applications to access the functions of EBMX. EBMX also provides an interface based on IBM WebSphere MQ Series. These options should be discussed with an EBMX analyst to determine the best choice when selecting an interface. Features Transfer le using SFTP Accept parameters as arguments Check for expected response Full activity logging Return code setting Korn shell version (ksh) Bourne shell version (sh) Operating Environment The EBMX SFTP shell script is expected to run on UNIX variants such as Solaris, AIX, and Linux. The operating system must be able to support either the Korn shell or the Bourne shell and have a standard SFTP client installed. 04/29/ FCA US

3 Operation The EBMX SFTP shell script has two versions: Description Korn Shell Version Bourne Shell Version Shell Script Name sftp_put_rename.ksh sftp_put_rename.sh The EBMX SFTP shell script requires eight arguments: Name Description Value User ID The EBMX member ID of the sender of the data. Supplied by the EBMX administrative team. SFTP Host Name The IP address or DNS name of the EBMX system. EBMX Production = ebmxprod.appl.chrysler.com EBMX Development = ebmxdev.appl.chrysler.com SFTP Port SFTP port number Local File Name Name of the le to send including path, if necessary. Supplied by the user of the script. Sender ID The EBMX member ID of the sender of the data. Supplied by the EBMX administrative team. Receiver ID The EBMX member ID of the receiver of the data. Supplied by the EBMX administrative team. Document Type The document type of the data Supplied by the EBMX Log le name being sent. The log le name for activity logging including path, if necessary. administrative team. Supplied by the user of the script. All arguments are mandatory. The shell script exits with at return code of zero if the process was successful. The shell script exits with at return code of 1 if the process fails. It is the responsibility of the user of the shell script to check the return code for success or failure. If the process fails, interrogate the log le to determine the reason for the failure. The EBMX administrative team can assist in the interpretation of the log le. If the log le does not exist, the shell script will create a new one. If the log le does exist, the shell script will append the results to the end of the existing log. If the put and rename is successful, the log le will contain the character string Success!. If an error occurs at any time during the workflow, the character string Failure! is placed in the log le. Therefore, the EBMX team recommends that log les are kept for a minimum of seven days. 04/29/ FCA US

4 Examples Bourne Shell./sftp_put_rename.sh testdoc clmsd058b.cldc.chrysler.com test_le_1 TESTDOC LOOPTEST LOOPBACK mylog.log Korn shell./sftp_put_rename.ksh testdoc clmsd058b.cldc.chrysler.com test_le_1 TESTDOC LOOPTEST LOOPBACK mylog.log Note: The above examples should be entered as one continuous command and not broken into individual lines. 04/29/ FCA US

5 Example Log File Each run of the EBMX SFTP shell script will produce the following log: Success Example: Running on: :14:52:21 number of arguments received: 8 ARG[1] remoteuser: testdoc ARG[2] remotehost: clmsd058b.cldc.chrysler.com ARG[3] remoteport: ARG[4] remotele: test_le_1 ARG[5] ecxsender: TESTDOC ARG[6] ecxreceiver: LOOPTEST ARG[7] ecxdoctype: LOOPBACK ARG[8] remotelog: mylog.log localle for put is: test_le_ Connecting to clmsd058b.cldc.chrysler.com... You are accessing FCA (Fiat Chrysler Automobiles) systems. Connected to EBMX SFTP server. Connection accepted. Access to FCA's computer systems is controlled. FCA authorizes use for its business purposes only. Unauthorized access is prohibited due to risk of irreparable harm to FCA. FCA management may monitor use to ensure compliance with its policies. FCA may terminate access privileges, take disciplinary action and/or institute civil or criminal proceedings to enforce this policy. If any part of this policy is unacceptable to you, please disconnect now!!! Thank you. YOUR ACCESS IS BEING LOGGED & MONITORED!!!! sftp> dir ERRORS RESULTS TESTDOC TMP sftp> cd /TMP sftp> put test_le_1 test_le_ Uploading test_le_1 to /TMP/test_le_ sftp> rename test_le_ /TESTDOC/LOOPTEST/LOOPBACK/test_le_ sftp> quit End of SFTP PUT and RENAME About to check exit status... Success! 04/29/ FCA US

6 Failure Example: (Invalid le) Running on: :14:52:41 number of arguments received: 8 ARG[1] remoteuser: testdoc ARG[2] remotehost: clmsd058b.cldc.chrysler.com ARG[3] remoteport: ARG[4] remotele: xtest_le_1 ARG[5] ecxsender: TESTDOC ARG[6] ecxreceiver: LOOPTEST ARG[7] ecxdoctype: LOOPBACK ARG[8] remotelog: mylog.log localle for put is: xtest_le_ Connecting to clmsd058b.cldc.chrysler.com... You are accessing FCA (Fiat Chrysler Automobiles) systems. Connected to EBMX SFTP server. Connection accepted. Access to FCA's computer systems is controlled. FCA authorizes use for its business purposes only. Unauthorized access is prohibited due to risk of irreparable harm to FCA. FCA management may monitor use to ensure compliance with its policies. FCA may terminate access privileges, take disciplinary action and/or institute civil or criminal proceedings to enforce this policy. If any part of this policy is unacceptable to you, please disconnect now!!! Thank you. YOUR ACCESS IS BEING LOGGED & MONITORED!!!! sftp> dir ERRORS RESULTS TESTDOC TMP sftp> cd /TMP sftp> put xtest_le_1 xtest_le_ stat xtest_le_1: No such le or directory sftp> rename xtest_le_ /TESTDOC/LOOPTEST/LOOPBACK/xtest_le_ Couldn't rename le "/TMP/xtest_le_ " to "/TESTDOC/LOOPTEST/LOOPBACK/xtest_le_ ": No such le or directory sftp> quit End of SFTP PUT and RENAME About to check exit status... Failure! 04/29/ FCA US

7 Failure Example: (Invalid Public Key) Running on: :14:53:16 number of arguments received: 8 ARG[1] remoteuser: testdoc ARG[2] remotehost: clmsd058b.cldc.chrysler.com ARG[3] remoteport: ARG[4] remotele: xtest_le_1 ARG[5] ecxsender: TESTDOC ARG[6] ecxreceiver: LOOPTEST ARG[7] ecxdoctype: LOOPBACK ARG[8] remotelog: mylog.log localle for put is: xtest_le_ Connecting to clmsd058b.cldc.chrysler.com... You are accessing FCA (Fiat Chrysler Automobiles) systems. Connected to EBMX SFTP server. Connection accepted. Access to FCA's computer systems is controlled. FCA authorizes use for its business purposes only. Unauthorized access is prohibited due to risk of irreparable harm to FCA. FCA management may monitor use to ensure compliance with its policies. FCA may terminate access privileges, take disciplinary action and/or institute civil or criminal proceedings to enforce this policy. If any part of this policy is unacceptable to you, please disconnect now!!! Thank you. YOUR ACCESS IS BEING LOGGED & MONITORED!!!! Permission denied (publickey). Couldn't read packet: Connection reset by peer End of SFTP PUT and RENAME About to check exit status... Failure! 04/29/ FCA US

8 Appendix A. Shell Scripts (Korn) Copy and save to a le with the extenstion.ksh #!/bin/ksh # # This script will accept parameters/arguments and connect to the EBMX app # server via the OpenSourceSSH SFTP server and PUT a le. The reply # is examined for any errors - this determines success/failure of this # script. This script is intended for use with ksh. # # store the date for display/le naming purposes datetime=`date '+%Y%m%d%H%M%S'` displaydatetime=`date '+%Y-%m-%d:%H:%M:%S'` sftp_response_log=" " # store the number of arguments received and the arguments themselves numargsreceived=$# argumentsreceived=$* remoteuser=$1 remotehost=$2 remoteport=$3 remotele=$4 ecxsender=$5 ecxreceiver=$6 ecxdoctype=$7 remotelog=$8 # construct the name of the local le to be PUT localle="$remotele.$datetime.$random" # this routine echos the date, arguments and localle echo_args () { echo "Running on: $displaydatetime"; echo "number of arguments received: $numargsreceived"; echo; # check to see if the number of arguments is correct if [ $numargsreceived -eq 8 ]; then echo "ARG[1] remoteuser: $remoteuser"; echo "ARG[2] remotehost: $remotehost"; echo "ARG[3] remoteport: $remoteport"; echo "ARG[4] remotele: $remotele"; echo "ARG[5] ecxsender: $ecxsender"; echo "ARG[6] ecxreceiver: $ecxreceiver"; echo "ARG[7] ecxdoctype: $ecxdoctype"; echo "ARG[8] remotelog: $remotelog"; echo; elif [ $numargsreceived -gt 8 ]; then echo "Too many arguments received!!!"; echo "Received $numargsreceived arguments"; echo "Arguments received: $argumentsreceived"; echo "Arguments expected: <remoteuser> <remotehost> <remoteport> <remotele> <ecxsender> <ecxreceiver> <ecxdoctype> [<remotelog>]"; exit 1; elif [ $numargsreceived -lt 8 ]; then echo "Too few arguments received!!!"; echo "Received $numargsreceived arguments"; echo "Arguments received: $argumentsreceived"; echo "Arguments expected: <remoteuser> <remotehost> <remoteport> <remotele> <ecxsender> <ecxreceiver> <ecxdoctype> [<remotelog>]"; exit 1; echo "localle for put is: $localle"; echo; } 04/29/ FCA US

9 Appendix A. Shell Scripts (Korn) (continued) # this routine is responsible for the PUT of the le and RENAME # we also do a DIR and PWD for completeness sftp_put_rename () { # open sftp as a co-process (ksh only) so that we may write to/read from the # process. The reads are stored in a shell variable sftp -oport=$remoteport $remoteuser@$remotehost 2>&1 & print -p dir print -p cd /TMP print -p put $remotele $localle print p chmod 666 $localle print -p rename $localle /$ecxsender/$ecxreceiver/$ecxdoctype/$localle print -p quit print -p : # read all the responses at the end of the process while read -p sftp_response do # add a new line so it looks right - otherwise, it wraps on one line without # newlines xx="$sftp_response"; echo "$xx" >> $remotelog; sftp_response_log="$sftp_response_log$xx"; done } : # this runs the echo_args routine - the eval is necessary for lename # expansion prior to redirection eval echo_args 1>>$remotelog 2>&1 # run the sftp_put_rename routine - since we use a coprocess to store output # in a shell variable, we don't need to worry about redirection sftp_put_rename # grep the SFTP session log looking for Couldn denied - if we nd one, it failed echo "End of SFTP PUT and RENAME" >>$remotelog 2>&1 echo "About to check exit status..." >>$remotelog 2>&1 if [ `echo $sftp_response_log egrep -c '(Couldn denied)'` -eq 0 ] then echo "Success!" >>$remotelog 2>&1; exit 0; else echo "Failure!" >>$remotelog 2>&1; exit 1; 04/29/ FCA US

10 Appendix B. Shell Scripts (Bourne Shell) Copy and save to a le with the extenstion.sh #!/bin/sh # # This script will accept parameters/arguments and connect to the EBMX app # server via the OpenSourceSSH SFTP server and PUT a le. The reply # is examined for any errors - this determines success/failure of this # script. This script is intended for use with ksh. # # store the date for display/le naming purposes datetime=`date '+%Y%m%d%H%M%S'` displaydatetime=`date '+%Y-%m-%d:%H:%M:%S'` # store the number of arguments received and the arguments themselves numargsreceived=$# argumentsreceived=$* remoteuser=$1 remotehost=$2 remoteport=$3 remotele=$4 ecxsender=$5 ecxreceiver=$6 ecxdoctype=$7 remotelog=$8 #echo $datetime; # dene temporary log... tempremotelog="./sftp_log.$datetime"; # construct the name of the local le to be PUT localle="$remotele.$datetime" if [ $# -gt 0 ] then numargsreceived=$#; else numargsreceived=0; argsreceived=$*; # this routine echos the date, arguments and localle echo_args () { echo "Running on: $displaydatetime"; echo "number of arguments received: $numargsreceived"; # check to see if the number of arguments is correct if [ $numargsreceived -eq 8 ]; then echo "Start of FTP PUT and SUBMIT"; exiterror=0; elif [ $numargsreceived -eq 7 ]; # generate a remote log le when only 7 arguments are passed then remotelog=$tempremotelog; exiterror=0; elif [ $numargsreceived -gt 8 ]; then echo "Too many arguments received!!!"; echo "Received $numargsreceived arguments"; echo "Arguments received: $argsreceived"; echo "Arguments expected: <remoteuser> <remotehost> <remoteport> <remotele> <ecxsender> <ecxreceiver> <ecxdoctype> [<remotelog>]"; exiterror=1; elif [ $numargsreceived -lt 7 ]; then echo "Too few arguments received!!!"; echo "Received $numargsreceived arguments"; echo "Arguments received: $argsreceived"; echo "Arguments expected: <remoteuser> <remotehost> <remoteport> <remotele> <ecxsender> <ecxreceiver> <ecxdoctype> [<remotelog>]"; exiterror=1; 04/29/ FCA US

11 Appendix B. Shell Scripts (Bourne Shell) (continued) echo; echo "ARG[1] remoteuser: $remoteuser"; echo "ARG[2] remotehost: $remotehost"; echo "ARG[3] remoteport: $remoteport"; echo "ARG[4] remotele: $remotele"; echo "ARG[5] ecxsender: $ecxsender"; echo "ARG[6] ecxreceiver: $ecxreceiver"; echo "ARG[7] ecxdoctype: $ecxdoctype"; echo "ARG[8] remotelog: $remotelog"; echo "Local File: $localle"; echo "Temp Log: $tempremotelog"; echo; } # this routine is responsible for the PUT of the le and ensuing SUBMIT # we also do a DIR and PWD for completeness sftp_put_rename () { sftp -oport=$remoteport $remoteuser@$remotehost <<!EOF cd /TMP put $remotele $localle chmod 666 $localle rename $localle /$ecxsender/$ecxreceiver/$ecxdoctype/$localle quit!eof echo End of SFTP PUT and RENAME; : } # this runs the echo_args routine - the eval is necessary for lename # expansion prior to redirection eval echo_args 1>>$tempremotelog 2>&1 # this runs the sftp_put_rename routine - the eval is necessary for lename # expansion prior to redirection if [ $exiterror -ne 1 ]; then eval sftp_put_rename 1>>$tempremotelog 2>&1; else echo "Incorrect number of Arguments, please see $tempremotelog"; exit; echo About to check exit status... >>$tempremotelog # grep the remote log looking for a tracking ID - if we nd one, it # worked if [ $exiterror -ne 1 ]; then it_worked=`egrep -c '(Couldn denied)' $tempremotelog`; else it_worked=0; # if we nd one tracking ID, it worked. If we nd more than one, the log # contains multiple sessions, and we can't tell for sure if the last one # worked if [ $it_worked -eq 0 ]; then echo "Success!" >>$tempremotelog; exitcode=0; else echo "Failure!" >>$tempremotelog; exitcode=1; if [ "$tempremotelog"!= "$remotelog" ]; then cat $tempremotelog >>$remotelog; rm $tempremotelog; exit $exitcode; 04/29/ FCA US

Unix Scripts and Job Scheduling

Unix Scripts and Job Scheduling Unix Scripts and Job Scheduling Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@imap.pitt.edu http://www.sis.pitt.edu/~spring Overview Shell Scripts

More information

List of FTP commands for the Microsoft command-line FTP client

List of FTP commands for the Microsoft command-line FTP client You are on the nsftools.com site This is a list of the commands available when using the Microsoft Windows command-line FTP client (requires TCP/IP to be installed). All information is from the Windows

More information

Shell Scripts (1) For example: #!/bin/sh If they do not, the user's current shell will be used. Any Unix command can go in a shell script

Shell Scripts (1) For example: #!/bin/sh If they do not, the user's current shell will be used. Any Unix command can go in a shell script Shell Programming Shell Scripts (1) Basically, a shell script is a text file with Unix commands in it. Shell scripts usually begin with a #! and a shell name For example: #!/bin/sh If they do not, the

More information

Using sftp in Informatica PowerCenter

Using sftp in Informatica PowerCenter Using sftp in Informatica PowerCenter Applies to: Informatica PowerCenter Summary This article briefs about how to push/pull files using SFTP program in Informatica PowerCenter. Author Bio Author(s): Sukumar

More information

IBM WebSphere Application Server Version 7.0

IBM WebSphere Application Server Version 7.0 IBM WebSphere Application Server Version 7.0 Centralized Installation Manager for IBM WebSphere Application Server Network Deployment Version 7.0 Note: Before using this information, be sure to read the

More information

Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, 2008. 1 Introduction 1. 2 Invoking Shell Scripts 2

Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, 2008. 1 Introduction 1. 2 Invoking Shell Scripts 2 Unix Shell Scripts Norman Matloff July 30, 2008 Contents 1 Introduction 1 2 Invoking Shell Scripts 2 2.1 Direct Interpretation....................................... 2 2.2 Indirect Interpretation......................................

More information

Unix Sampler. PEOPLE whoami id who

Unix Sampler. PEOPLE whoami id who Unix Sampler PEOPLE whoami id who finger username hostname grep pattern /etc/passwd Learn about yourself. See who is logged on Find out about the person who has an account called username on this host

More information

DaimlerChrysler EBMX HTTP/s Quick Start Guide

DaimlerChrysler EBMX HTTP/s Quick Start Guide DaimlerChrysler EBMX HTTP/s Quick Start Guide Document Version 2.1, August 28, 2003 Copyright 2003 Cleo Communications In this document Process Map Overview Configuration Activate the DaimlerChrysler HTTP/s

More information

Introduction to Shell Programming

Introduction to Shell Programming Introduction to Shell Programming what is shell programming? about cygwin review of basic UNIX TM pipelines of commands about shell scripts some new commands variables parameters and shift command substitution

More information

An Introduction to the Linux Command Shell For Beginners

An Introduction to the Linux Command Shell For Beginners An Introduction to the Linux Command Shell For Beginners Presented by: Victor Gedris In Co-Operation With: The Ottawa Canada Linux Users Group and ExitCertified Copyright and Redistribution This manual

More information

Installing IBM Websphere Application Server 7 and 8 on OS4 Enterprise Linux

Installing IBM Websphere Application Server 7 and 8 on OS4 Enterprise Linux Installing IBM Websphere Application Server 7 and 8 on OS4 Enterprise Linux By the OS4 Documentation Team Prepared by Roberto J Dohnert Copyright 2013, PC/OpenSystems LLC This whitepaper describes how

More information

Fundamentals of UNIX Lab 16.2.6 Networking Commands (Estimated time: 45 min.)

Fundamentals of UNIX Lab 16.2.6 Networking Commands (Estimated time: 45 min.) Fundamentals of UNIX Lab 16.2.6 Networking Commands (Estimated time: 45 min.) Objectives: Develop an understanding of UNIX and TCP/IP networking commands Ping another TCP/IP host Use traceroute to check

More information

File Transfer Protocol (FTP) Chuan-Ming Liu Computer Science and Information Engineering National Taipei University of Technology Fall 2007, TAIWAN

File Transfer Protocol (FTP) Chuan-Ming Liu Computer Science and Information Engineering National Taipei University of Technology Fall 2007, TAIWAN File Transfer Protocol (FTP) Chuan-Ming Liu Computer Science and Information Engineering National Taipei University of Technology Fall 2007, TAIWAN 1 Contents CONNECTIONS COMMUNICATION COMMAND PROCESSING

More information

Command Line Crash Course For Unix

Command Line Crash Course For Unix Command Line Crash Course For Unix Controlling Your Computer From The Terminal Zed A. Shaw December 2011 Introduction How To Use This Course You cannot learn to do this from videos alone. You can learn

More information

Linux command line. An introduction to the Linux command line for genomics. Susan Fairley

Linux command line. An introduction to the Linux command line for genomics. Susan Fairley Linux command line An introduction to the Linux command line for genomics Susan Fairley Aims Introduce the command line Provide an awareness of basic functionality Illustrate with some examples Provide

More information

Thirty Useful Unix Commands

Thirty Useful Unix Commands Leaflet U5 Thirty Useful Unix Commands Last revised April 1997 This leaflet contains basic information on thirty of the most frequently used Unix Commands. It is intended for Unix beginners who need a

More information

Setting Up the Site Licenses

Setting Up the Site Licenses XC LICENSE SERVER Setting Up the Site Licenses INTRODUCTION To complete the installation of an XC Site License, create an options file that includes the Host Name (computer s name) of each client machine.

More information

Linux Shell Script To Monitor Ftp Server Connection

Linux Shell Script To Monitor Ftp Server Connection Linux Shell Script To Monitor Ftp Server Connection Main goal of this script is to monitor ftp server. This script is example of how to use ftp command in bash shell. System administrator can use this

More information

Network Security In Linux: Scanning and Hacking

Network Security In Linux: Scanning and Hacking Network Security In Linux: Scanning and Hacking Review Lex A lexical analyzer that tokenizes an input text. Yacc A parser that parses and acts based on defined grammar rules involving tokens. How to compile

More information

Web Hosting: Pipeline Program Technical Self Study Guide

Web Hosting: Pipeline Program Technical Self Study Guide Pipeline Program Technical Self Study Guide Thank you for your interest in InMotion Hosting and our Technical Support positions. Our technical support associates operate in a call center environment, assisting

More information

SAS 9.4 In-Database Products

SAS 9.4 In-Database Products SAS 9.4 In-Database Products Administrator s Guide Fifth Edition SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS 9.4 In-Database Products:

More information

TS-800. Configuring SSH Client Software in UNIX and Windows Environments for Use with the SFTP Access Method in SAS 9.2, SAS 9.3, and SAS 9.

TS-800. Configuring SSH Client Software in UNIX and Windows Environments for Use with the SFTP Access Method in SAS 9.2, SAS 9.3, and SAS 9. TS-800 Configuring SSH Client Software in UNIX and Windows Environments for Use with the SFTP Access Method in SAS 9.2, SAS 9.3, and SAS 9.4 dsas Table of Contents Overview... 1 Configuring OpenSSH Software

More information

embeo Getting Started and Samples

embeo Getting Started and Samples embeo smb filesharing development kit Getting Started and Samples Getting Started Guide rev. 1.4 1 Introduction to SMB The SMB protocol, CIFS, or Windows File Sharing as it is more commonly known, is the

More information

CS2720 Practical Software Development

CS2720 Practical Software Development Page 1 Rex Forsyth CS2720 Practical Software Development CS2720 Practical Software Development Scripting Tutorial Srping 2011 Instructor: Rex Forsyth Office: C-558 E-mail: forsyth@cs.uleth.ca Tel: 329-2496

More information

SSL Tunnels. Introduction

SSL Tunnels. Introduction SSL Tunnels Introduction As you probably know, SSL protects data communications by encrypting all data exchanged between a client and a server using cryptographic algorithms. This makes it very difficult,

More information

The Basics of FTP. Basic Order of Operations: Commands: FTP (File Transfer Protocol) allows a user to transfer files to/from a remote network site.

The Basics of FTP. Basic Order of Operations: Commands: FTP (File Transfer Protocol) allows a user to transfer files to/from a remote network site. The Basics of FTP FTP (File Transfer Protocol) allows a user to transfer files to/from a remote network site. Topics: Basic Order of Operations Commands Example Screen Shots Basic Order of Operations:

More information

Managed File Transfer with Universal File Mover

Managed File Transfer with Universal File Mover Managed File Transfer with Universal File Mover Roger Lacroix roger.lacroix@capitalware.com http://www.capitalware.com Universal File Mover Overview Universal File Mover (UFM) allows the user to combine

More information

Lecture 4: Writing shell scripts

Lecture 4: Writing shell scripts Handout 5 06/03/03 1 Your rst shell script Lecture 4: Writing shell scripts Shell scripts are nothing other than les that contain shell commands that are run when you type the le at the command line. That

More information

Introduction to Shell Scripting

Introduction to Shell Scripting Introduction to Shell Scripting Lecture 1. Shell scripts are small programs. They let you automate multi-step processes, and give you the capability to use decision-making logic and repetitive loops. 2.

More information

Enhanced Connector Applications SupportPac VP01 for IBM WebSphere Business Events 3.0.0

Enhanced Connector Applications SupportPac VP01 for IBM WebSphere Business Events 3.0.0 Enhanced Connector Applications SupportPac VP01 for IBM WebSphere Business Events 3.0.0 Third edition (May 2012). Copyright International Business Machines Corporation 2012. US Government Users Restricted

More information

Syntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS)

Syntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS) List of Useful Commands for UNIX SHELL Scripting We all are well aware of Unix Commands but still would like to walk you through some of the commands that we generally come across in our day to day task.

More information

Beginners Shell Scripting for Batch Jobs

Beginners Shell Scripting for Batch Jobs Beginners Shell Scripting for Batch Jobs Evan Bollig and Geoffrey Womeldorff Before we begin... Everyone please visit this page for example scripts and grab a crib sheet from the front http://www.scs.fsu.edu/~bollig/techseries

More information

HP-UX Essentials and Shell Programming Course Summary

HP-UX Essentials and Shell Programming Course Summary Contact Us: (616) 875-4060 HP-UX Essentials and Shell Programming Course Summary Length: 5 Days Prerequisite: Basic computer skills Recommendation Statement: Student should be able to use a computer monitor,

More information

SendMIME Pro Installation & Users Guide

SendMIME Pro Installation & Users Guide www.sendmime.com SendMIME Pro Installation & Users Guide Copyright 2002 SendMIME Software, All Rights Reserved. 6 Greer Street, Stittsville, Ontario Canada K2S 1H8 Phone: 613-831-4023 System Requirements

More information

Answers to Even-numbered Exercises

Answers to Even-numbered Exercises 11 Answers to Even-numbered Exercises 1. 2. The special parameter "$@" is referenced twice in the out script (page 442). Explain what would be different if the parameter "$* " were used in its place. If

More information

Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)

Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002) Cisco Networking Academy Program Curriculum Scope & Sequence Fundamentals of UNIX version 2.0 (July, 2002) Course Description: Fundamentals of UNIX teaches you how to use the UNIX operating system and

More information

Secure Shell Demon setup under Windows XP / Windows Server 2003

Secure Shell Demon setup under Windows XP / Windows Server 2003 Secure Shell Demon setup under Windows XP / Windows Server 2003 Configuration inside of Cygwin $ chgrp Administrators /var/{run,log,empty} $ chown Administrators /var/{run,log,empty} $ chmod 775 /var/{run,log}

More information

Basic C Shell. helpdesk@stat.rice.edu. 11th August 2003

Basic C Shell. helpdesk@stat.rice.edu. 11th August 2003 Basic C Shell helpdesk@stat.rice.edu 11th August 2003 This is a very brief guide to how to use cshell to speed up your use of Unix commands. Googling C Shell Tutorial can lead you to more detailed information.

More information

IBM Pure Application Create Custom Virtual Image Guide - Part 1 Virtual Image by extending

IBM Pure Application Create Custom Virtual Image Guide - Part 1 Virtual Image by extending PERFICIENT IBM Pure Application Create Custom Virtual Image Guide - Part 1 Virtual Image by extending How to guide on Virtual Image creation for Pure Application Technical Architect: Chuck Misuraca Change

More information

UNIX: Introduction to TELNET and FTP on UNIX

UNIX: Introduction to TELNET and FTP on UNIX Introduction to TELNET and FTP on UNIX SYNOPSIS This document is written with the novice user in mind. It describes the use of TCP/IP and FTP to transfer files to and from the UNIX operating system and

More information

Table of Contents Introduction Supporting Arguments of Sysaxftp File Transfer Commands File System Commands PGP Commands Other Using Commands

Table of Contents Introduction Supporting Arguments of Sysaxftp File Transfer Commands File System Commands PGP Commands Other Using Commands FTP Console Manual Table of Contents 1. Introduction... 1 1.1. Open Command Prompt... 2 1.2. Start Sysaxftp... 2 1.3. Connect to Server... 3 1.4. List the contents of directory... 4 1.5. Download and Upload

More information

CS2043 - Unix Tools & Scripting Lecture 9 Shell Scripting

CS2043 - Unix Tools & Scripting Lecture 9 Shell Scripting CS2043 - Unix Tools & Scripting Lecture 9 Shell Scripting Spring 2015 1 February 9, 2015 1 based on slides by Hussam Abu-Libdeh, Bruno Abrahao and David Slater over the years Announcements Coursework adjustments

More information

A Crash Course on UNIX

A Crash Course on UNIX A Crash Course on UNIX UNIX is an "operating system". Interface between user and data stored on computer. A Windows-style interface is not required. Many flavors of UNIX (and windows interfaces). Solaris,

More information

ICS 351: Today's plan

ICS 351: Today's plan ICS 351: Today's plan routing protocols linux commands Routing protocols: overview maintaining the routing tables is very labor-intensive if done manually so routing tables are maintained automatically:

More information

High-Performance Reservoir Risk Assessment (Jacta Cluster)

High-Performance Reservoir Risk Assessment (Jacta Cluster) High-Performance Reservoir Risk Assessment (Jacta Cluster) SKUA-GOCAD 2013.1 Paradigm 2011.3 With Epos 4.1 Data Management Configuration Guide 2008 2013 Paradigm Ltd. or its affiliates and subsidiaries.

More information

Configuring System Message Logging

Configuring System Message Logging CHAPTER 1 This chapter describes how to configure system message logging on the Cisco 4700 Series Application Control Engine (ACE) appliance. Each ACE contains a number of log files that retain records

More information

NETWORK ADMINISTRATION

NETWORK ADMINISTRATION NETWORK ADMINISTRATION INTRODUCTION The PressureMAP software provides users who have access to an Ethernet network supporting TCP/IP with the ability to remotely log into the MAP System via a network connection,

More information

WinSCP PuTTY as an alternative to F-Secure July 11, 2006

WinSCP PuTTY as an alternative to F-Secure July 11, 2006 WinSCP PuTTY as an alternative to F-Secure July 11, 2006 Brief Summary of this Document F-Secure SSH Client 5.4 Build 34 is currently the Berkeley Lab s standard SSH client. It consists of three integrated

More information

Tera Term Telnet. Introduction

Tera Term Telnet. Introduction Tera Term Telnet Introduction Starting Telnet Tera Term is a terminal emulation program that enables you to log in to a remote computer, provided you have a registered account on that machine. To start

More information

MATLAB on EC2 Instructions Guide

MATLAB on EC2 Instructions Guide MATLAB on EC2 Instructions Guide Contents Welcome to MATLAB on EC2...3 What You Need to Do...3 Requirements...3 1. MathWorks Account...4 1.1. Create a MathWorks Account...4 1.2. Associate License...4 2.

More information

MAX_RMAN_08137_IGNORE=5 DISK_RETENTION_POLICY='RECOVERY WINDOW OF 7 DAYS'

MAX_RMAN_08137_IGNORE=5 DISK_RETENTION_POLICY='RECOVERY WINDOW OF 7 DAYS' !/bin/sh Example shell script to perform a nightly full backup of the database and scan for errors Copyright (c) 2008, 2014 Caleb.com All Rights Reserved This script is provided as an EXAMPLE ONLY and

More information

Automated Offsite Backup with rdiff-backup

Automated Offsite Backup with rdiff-backup Automated Offsite Backup with rdiff-backup Michael Greb 2003-10-21 Contents 1 Overview 2 1.1 Conventions Used........................................... 2 2 Setting up SSH 2 2.1 Generating SSH Keys........................................

More information

Using the AVR microcontroller based web server

Using the AVR microcontroller based web server 1 of 7 http://tuxgraphics.org/electronics Using the AVR microcontroller based web server Abstract: There are two related articles which describe how to build the AVR web server discussed here: 1. 2. An

More information

File Transfer Protocol

File Transfer Protocol File Transfer Protocol The File Transfer Protocol (FTP) is used as one of the most common means of copying files between servers over the Internet. Most web based download sites use the built in FTP capabilities

More information

2 Advanced Session... Properties 3 Session profile... wizard. 5 Application... preferences. 3 ASCII / Binary... Transfer

2 Advanced Session... Properties 3 Session profile... wizard. 5 Application... preferences. 3 ASCII / Binary... Transfer Contents I Table of Contents Foreword 0 Part I SecEx Overview 3 1 What is SecEx...? 3 2 Quick start... 4 Part II Configuring SecEx 5 1 Session Profiles... 5 2 Advanced Session... Properties 6 3 Session

More information

Secure Shell. The Protocol

Secure Shell. The Protocol Usually referred to as ssh The name is used for both the program and the protocol ssh is an extremely versatile network program data encryption and compression terminal access to remote host file transfer

More information

FTP protocol (File Transfer Protocol)

FTP protocol (File Transfer Protocol) FTP protocol (File Transfer Protocol) Introduction to FTP protocol FTP protocol (File Transfer Protocol) is, as its name indicates a protocol for transferring files. The implementation of FTP dates from

More information

Hands-On UNIX Exercise:

Hands-On UNIX Exercise: Hands-On UNIX Exercise: This exercise takes you around some of the features of the shell. Even if you don't need to use them all straight away, it's very useful to be aware of them and to know how to deal

More information

Avaya Operational Analyst 7.0 Security Guide COMPAS 109084 Issue 1.0 February 2005

Avaya Operational Analyst 7.0 Security Guide COMPAS 109084 Issue 1.0 February 2005 Avaya Operational Analyst 7.0 Security Guide COMPAS 109084 Issue 1.0 February 2005 Target audience: System administrator Sensitivity: This document should be kept under tight control. This document describes

More information

SSH Connections MACs the MAC XTerm application can be used to create an ssh connection, no utility is needed.

SSH Connections MACs the MAC XTerm application can be used to create an ssh connection, no utility is needed. Overview of MSU Compute Servers The DECS Linux based compute servers are well suited for programs that are too slow to run on typical desktop computers but do not require the power of supercomputers. The

More information

Bash shell programming Part II Control statements

Bash shell programming Part II Control statements Bash shell programming Part II Control statements Deniz Savas and Michael Griffiths 2005-2011 Corporate Information and Computing Services The University of Sheffield Email M.Griffiths@sheffield.ac.uk

More information

IBM Campaign Version-independent Integration with IBM Engage Version 1 Release 3 April 8, 2016. Integration Guide IBM

IBM Campaign Version-independent Integration with IBM Engage Version 1 Release 3 April 8, 2016. Integration Guide IBM IBM Campaign Version-independent Integration with IBM Engage Version 1 Release 3 April 8, 2016 Integration Guide IBM Note Before using this information and the product it supports, read the information

More information

AN INTRODUCTION TO UNIX

AN INTRODUCTION TO UNIX AN INTRODUCTION TO UNIX Paul Johnson School of Mathematics September 24, 2010 OUTLINE 1 SHELL SCRIPTS Shells 2 COMMAND LINE Command Line Input/Output 3 JOBS Processes Job Control 4 NETWORKING Working From

More information

Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L

Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L Introduction: This guide is written to help any person with little knowledge in AIX V5.3L to prepare the P Server

More information

Monitoring Clearswift Gateways with SCOM

Monitoring Clearswift Gateways with SCOM Technical Guide Version 01 28/11/2014 Documentation Information File Name Document Author Document Filename Monitoring the gateways with _v1.docx Iván Blesa Monitoring the gateways with _v1.docx Issue

More information

HIGH AVAILABILITY SETUP USING VERITAS CLUSTER SERVER AND NETAPP SYNCHRONOUS SNAPMIRROR. Jorge Costa, NetApp June 2008

HIGH AVAILABILITY SETUP USING VERITAS CLUSTER SERVER AND NETAPP SYNCHRONOUS SNAPMIRROR. Jorge Costa, NetApp June 2008 HIGH AVAILABILITY SETUP USING VERITAS CLUSTER SERVER AND NETAPP SYNCHRONOUS SNAPMIRROR Jorge Costa, NetApp June 2008 TABLE OF CONTENTS 1 PROBLEM DESCRIPTION 4 2 SOLUTION OVERVIEW 5 21 STORAGE 5 22 VCS

More information

LSN 10 Linux Overview

LSN 10 Linux Overview LSN 10 Linux Overview ECT362 Operating Systems Department of Engineering Technology LSN 10 Linux Overview Linux Contemporary open source implementation of UNIX available for free on the Internet Introduced

More information

Centers for Medicare and Medicaid Services. Connect: Enterprise Secure Client (SFTP) Gentran. Internet Option Manual 2006-2007

Centers for Medicare and Medicaid Services. Connect: Enterprise Secure Client (SFTP) Gentran. Internet Option Manual 2006-2007 Centers for Medicare and Medicaid Services Connect: Enterprise Secure Client (SFTP) Gentran Internet Option Manual 2006-2007 Version 8 The Connect: Enterprise Secure Client (SFTP) Manual is not intended

More information

How to set FTP Server (IIS)

How to set FTP Server (IIS) How to set FTP Server (IIS) Summary You can use FTP Server, in case of using the video play/record functions of GP-Pro EX V1.10. In this case, please prepare a PC into which FTP Server is installed separately.

More information

Shellshock Security Patch for X86

Shellshock Security Patch for X86 Shellshock Security Patch for X86 Guide for Using the FFPS Update Manager October 2014 Version 1.0. Page 1 Page 2 This page is intentionally blank Table of Contents 1.0 OVERVIEW - SHELLSHOCK/BASH SHELL

More information

1 Reflection ZFE 5. 2 Security Considerations 13. 3 Troubleshooting the Installation 19. Contents 1

1 Reflection ZFE 5. 2 Security Considerations 13. 3 Troubleshooting the Installation 19. Contents 1 1 Reflection ZFE 5 Introducing Reflection ZFE......................................................... 5 Reflection ZFE components.................................................. 5 System requirements..............................................................

More information

Tivoli Access Manager Agent for Windows Installation Guide

Tivoli Access Manager Agent for Windows Installation Guide IBM Tivoli Identity Manager Tivoli Access Manager Agent for Windows Installation Guide Version 4.5.0 SC32-1165-03 IBM Tivoli Identity Manager Tivoli Access Manager Agent for Windows Installation Guide

More information

REMOTE DATA TRANSMISSION OVERVIEW

REMOTE DATA TRANSMISSION OVERVIEW CME Clearing Clearing Communications Requirements - General Information A. REMOTE DATA TRANSMISSION OVERVIEW The CME can accept data from and send data to several types of TCP/IP devices. This document

More information

BASIC TCP/IP NETWORKING

BASIC TCP/IP NETWORKING ch01 11/19/99 4:20 PM Page 1 CHAPTER 1 BASIC TCP/IP NETWORKING When you communicate to someone or something else, you need to be able to speak a language that the listener understands. Networking requires

More information

BASH Scripting. A bash script may consist of nothing but a series of command lines, e.g. The following helloworld.sh script simply does an echo.

BASH Scripting. A bash script may consist of nothing but a series of command lines, e.g. The following helloworld.sh script simply does an echo. BASH Scripting bash is great for simple scripts that automate things you would otherwise by typing on the command line. Your command line skills will carry over to bash scripting and vice versa. bash comments

More information

Automating admin tasks using shell scripts and cron Vijay Kumar Adhikari. vijay@kcm

Automating admin tasks using shell scripts and cron Vijay Kumar Adhikari. vijay@kcm Automating admin tasks using shell scripts and cron Vijay Kumar Adhikari vijay@kcm kcm.edu.np How do we go? Introduction to shell scripts Example scripts Introduce concepts at we encounter them in examples

More information

Router CLI Overview. CradlePoint, Inc.

Router CLI Overview. CradlePoint, Inc. Router CLI Overview CradlePoint, Inc. Preface CradlePoint reserves the right to revise this publication and to make changes in the content thereof without obligation to notify any person or organization

More information

Make a folder named Lab3. We will be using Unix redirection commands to create several output files in that folder.

Make a folder named Lab3. We will be using Unix redirection commands to create several output files in that folder. CMSC 355 Lab 3 : Penetration Testing Tools Due: September 31, 2010 In the previous lab, we used some basic system administration tools to figure out which programs where running on a system and which files

More information

The Einstein Depot server

The Einstein Depot server The Einstein Depot server Have you ever needed a way to transfer large files to colleagues? Or allow a colleague to send large files to you? Do you need to transfer files that are too big to be sent as

More information

IBM WebSphere MQ File Transfer Edition, Version 7.0

IBM WebSphere MQ File Transfer Edition, Version 7.0 Managed file transfer for SOA IBM Edition, Version 7.0 Multipurpose transport for both messages and files Audi logging of transfers at source and destination for audit purposes Visibility of transfer status

More information

UNIX, Shell Scripting and Perl Introduction

UNIX, Shell Scripting and Perl Introduction UNIX, Shell Scripting and Perl Introduction Bart Zeydel 2003 Some useful commands grep searches files for a string. Useful for looking for errors in CAD tool output files. Usage: grep error * (looks for

More information

Universal Event Monitor for SOA 5.2.0 Reference Guide

Universal Event Monitor for SOA 5.2.0 Reference Guide Universal Event Monitor for SOA 5.2.0 Reference Guide 2015 by Stonebranch, Inc. All Rights Reserved. 1. Universal Event Monitor for SOA 5.2.0 Reference Guide.............................................................

More information

CA Workload Automation Agent for UNIX, Linux, or Windows

CA Workload Automation Agent for UNIX, Linux, or Windows CA Workload Automation Agent for UNIX, Linux, or Windows Implementation Guide r11.3, Third Edition This Documentation, which includes embedded help systems and electronically distributed materials, (hereinafter

More information

Using LDAP Authentication in a PowerCenter Domain

Using LDAP Authentication in a PowerCenter Domain Using LDAP Authentication in a PowerCenter Domain 2008 Informatica Corporation Overview LDAP user accounts can access PowerCenter applications. To provide LDAP user accounts access to the PowerCenter applications,

More information

Sametime Gateway Version 9. Deploying DMZ Secure Proxy Server

Sametime Gateway Version 9. Deploying DMZ Secure Proxy Server Sametime Gateway Version 9 Deploying DMZ Secure Proxy Server November 2013 Edition Notice Note: Before using this information and the product it supports, read the information in "Notices." This edition

More information

Mass Deploying Bomgar Software to Macs

Mass Deploying Bomgar Software to Macs Mass Deploying Bomgar Software to Macs Starting with Bomgar 14.2, the installer les for representative consoles and Jump Clients have been tweaked to help you mass deploy Bomgar software to your Macs.

More information

Configuring IBM WebSphere Application Server 6.1 to Support SAS 9.2 Web Applications

Configuring IBM WebSphere Application Server 6.1 to Support SAS 9.2 Web Applications Configuration Guide Configuring IBM WebSphere Application Server 6.1 to Support SAS 9.2 Web Applications This document is for SAS installers who want to configure IBM WebSphere Application Server for use

More information

Moxa Device Manager 2.3 User s Manual

Moxa Device Manager 2.3 User s Manual User s Manual Third Edition, March 2011 www.moxa.com/product 2011 Moxa Inc. All rights reserved. User s Manual The software described in this manual is furnished under a license agreement and may be used

More information

Guide to the Configuration and Use of SFTP Clients for Uploading Digital Treatment Planning Data to IROC RI

Guide to the Configuration and Use of SFTP Clients for Uploading Digital Treatment Planning Data to IROC RI Guide to the Configuration and Use of SFTP Clients for Uploading Digital Treatment Planning Data to IROC RI The Quality Assurance Review Center has tested several SFTP client programs for submitting digital

More information

Appendix. Web Command Error Codes. Web Command Error Codes

Appendix. Web Command Error Codes. Web Command Error Codes Appendix Web Command s Error codes marked with * are received in responses from the FTP server, and then returned as the result of FTP command execution. -501 Incorrect parameter type -502 Error getting

More information

INASP: Effective Network Management Workshops

INASP: Effective Network Management Workshops INASP: Effective Network Management Workshops Linux Familiarization and Commands (Exercises) Based on the materials developed by NSRC for AfNOG 2013, and reused with thanks. Adapted for the INASP Network

More information

CS 2112 Lab: Version Control

CS 2112 Lab: Version Control 29 September 1 October, 2014 Version Control What is Version Control? You re emailing your project back and forth with your partner. An hour before the deadline, you and your partner both find different

More information

Cloud Server powered by Mac OS X. Getting Started Guide. Cloud Server. powered by Mac OS X. AKJZNAzsqknsxxkjnsjx Getting Started Guide Page 1

Cloud Server powered by Mac OS X. Getting Started Guide. Cloud Server. powered by Mac OS X. AKJZNAzsqknsxxkjnsjx Getting Started Guide Page 1 Getting Started Guide Cloud Server powered by Mac OS X Getting Started Guide Page 1 Getting Started Guide: Cloud Server powered by Mac OS X Version 1.0 (02.16.10) Copyright 2010 GoDaddy.com Software, Inc.

More information

Scheduling in SAS 9.3

Scheduling in SAS 9.3 Scheduling in SAS 9.3 SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc 2011. Scheduling in SAS 9.3. Cary, NC: SAS Institute Inc. Scheduling in SAS 9.3

More information

PMOD Installation on Linux Systems

PMOD Installation on Linux Systems User's Guide PMOD Installation on Linux Systems Version 3.7 PMOD Technologies Linux Installation The installation for all types of PMOD systems starts with the software extraction from the installation

More information

WebSphere MQ FTP client Version 1.3

WebSphere MQ FTP client Version 1.3 Version 1.3 July 13 th, 2003 Arjan van Vught e-business Hosting Watsonweg 2 1423 ND Uithoorn The Netherlands avv@nl.ibm.com Property of IBM Take Note! Before using this report be sure to read the general

More information

Configuring Logging. Information About Logging CHAPTER

Configuring Logging. Information About Logging CHAPTER 52 CHAPTER This chapter describes how to configure and manage logs for the ASASM/ASASM and includes the following sections: Information About Logging, page 52-1 Licensing Requirements for Logging, page

More information

GDC Data Transfer Tool User s Guide. NCI Genomic Data Commons (GDC)

GDC Data Transfer Tool User s Guide. NCI Genomic Data Commons (GDC) GDC Data Transfer Tool User s Guide NCI Genomic Data Commons (GDC) Contents 1 Getting Started 3 Getting Started.......................................................... 3 The GDC Data Transfer Tool: An

More information

How to upload large files to a JTAC Case

How to upload large files to a JTAC Case How to upload large files to a JTAC Case Summary: JTAC often requires data to be collected (such as configuration files, tracedump data, log files, etc) and sent in for review. If the files are larger

More information

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering ENG 224 Information Technology Laboratory 6: Internet Connection Sharing Objectives: Build a private network that

More information