Redwood Documentation

Product Documentation

 

›Command Line Tools

RunMyJobsPlatform Agents

External Platforms

  • Connecting Redwood Server to External Platforms

Credentials

  • Storing Credentials
  • Credential Protocols

Platform Process Servers

  • On-site Platform Process Servers
  • Cloud Platform Agents
  • Using the Wizard to Create Process Servers
  • Configuring Platform Agents
  • Spool Host Agents
  • The Environment of Platform Agent OS Processes
  • Processing Platform Processes
  • Process Server Services
  • Configuring Agentless Process Servers
  • Automatically Updating Platform Agents
  • Enabling TLS
  • Creating Monitoring Checks
  • Configuring Load Balancing on Platform Agents
  • Platform Agent Registry Entries
  • Monitoring Servers with Platform Process Servers

UNIX Agents

  • UNIX Process Servers
  • UNIX Process Server Configuration Data
  • File Events on UNIX
  • Creating UNIX Process Servers (Advanced)
  • Choosing a User Switching Security Mode
  • Controlling Unix Platform Agents
  • Uninstalling Redwood Server Platform Agents from UNIX

Windows Agents

  • Creating a Microsoft Windows Process Server
  • File Events on Microsoft Windows Process Servers
  • Configuration of a Microsoft Windows Process Server
  • Managed Services
  • Configuring Platform Agents on Microsoft Windows
  • Automating Windows tasks that require a desktop window
  • Uninstalling Redwood Server from Microsoft Windows

Agent Definition Types

  • Using the BASH Definition Type
  • Using the KSH Definition Type
  • Using the CSH Definition Type
  • Using the Perl Definition Type
  • Using the Python Definition Type
  • Using the PowerShell Definition Type
  • Using the Visual Basic Script Definition Type
  • Using the CMD Definition Type
  • Using the R Process Definition Type
  • Using the DCL Definition Type
  • Using Platform Definition Types
  • Using the OS Native Definition Type
  • Microsoft Windows Definition Types
  • Using the SQLPLUS Definition Type
  • Using the FTP Definition Type
  • Using the Groovy Definition Type

Command Line Tools

  • Command Line System Tools
  • jtool
  • jcat
  • jdescription
  • jevent
  • jecho
  • jftp
  • JFTP Return Codes
  • jgetcredential
  • jgetfile
  • jgetpar
  • jjoin
  • jlink
  • jlog
  • jmail
  • jmessage
  • jmonitor
  • jputfile
  • jregister
  • jrfc
  • jscp
  • jtool screenshot
  • jscript
  • jsecret
  • jsleep
  • jsplit
  • api-tool.jar

OpenVMS Process Servers

  • Creating HP OpenVMS Process Servers
  • Installing the Platform Agent on HP OpenVMS
  • Configuring HP OpenVMS Process Servers
  • File Events on HP OpenVMS
  • HP OpenVMS Definition Types

AS/400 Connector

  • IBM AS/400 Connector Architecture
  • Setting up the IBM AS/400 Connector
  • Creating an IBM AS/400 Process Server
  • Files on AS/400 Raise Events
  • Using the AS/400 Definition Type
  • Redwood Server OS Support
  • IBM z/OS Definition Types
  • Using the JCL_FTP Definition Type
  • IBM z/OS System Tools

Reference

  • Balancing the Load
  • Credential Protocols
← Using the Groovy Definition Typejtool →

Command Line System Tools

The Platform agents for UNIX, Microsoft Windows and HP OpenVMS ship with the system tools.

The system tools are also available in a separate download from the Software section. These include the jtool binaries for all platforms, and are convenient if you want to install the tools on a system where there is no agent installed.

ToolPurposeConnection fileJob-contextPlatform availability
jcatOutput the contents of a file to stdout--

jdescriptionSet the description of the current process-MandatoryAll
jechoPrint messages to stdout and decrypt credential passwords--

jeventRaise an eventYesYesAll
jftpTransfer files via FTP--

jgetcredentialRetrieve a credential-Mandatory

jgetfileGet a output fileYesYes

jgetparGet configuration parameter data-Mandatory

jjoinJoin files previously split up with jsplit--

jlinkLink files to processes-Mandatory

jlogLog in common logging format--

jmailSend an email message--

jmessageSend an operator message-Mandatory

jmonitorSend monitoring data values-Mandatory

jputfileUpload file to the serverYesYes

jregisterRegister a process server--

jrfcRetrieves output on spool hosts--Linux 64-bit and Windows 64-bit
jscpAliveness and network testing--

jscriptRun a scriptYesYesAll
jsecretGenerate a user or network-processor secretYes-All
jsleepSleep a number of seconds--All
jsplitSplit a file--no
jtoolinstall all or run any of the above--Yes
api-tool.jarJAR program allowing you to raise events and run scriptsMandatory-runs on any platform that provides a Java 1.4 or higher JVM

All jtool tools are available in two forms: the j<tool> form such as jftp and as a sub-option of jtool such as jtool ftp. Both are available after the installation. If you do have jtool but not a particular j<tool> form, run the jtool install command.

File Paths

You might want to use these utilities outside of Redwood Server processes; in this case, you should take the following into account:

Since the path to the bin directory contains version information and that this will change when a new version is installed, Redwood recommends using the latest/ symbolic link on UNIX and environment variables on Windows and HP OpenVMS to contain the version that your scripts should use. Alternatively, you can use symbolic links on Microsoft Windows Vista or later, re-parse points/junctions on earlier versions of Windows (XP, 2003), and Logicals on HP OpenVMS.

Recommended path on UNIX:

PATH=/opt/redwood/agent/latest/bin:$PATH

Example DCL to find latest jtool on OpenVMS:

$!
$loop3:
$   x = f$search("[.agent.9*.bin]jtool.exe;")
$   if x .eqs. "" then goto stop3
$   bindir = f$parse(x,,,"DEVICE") + f$parse(x,,,"DIRECTORY")
$   write sys$output "- Found agent directory ''bindir' for JTOOL"
$   jtool=="$''bindir'jtool.exe"
$   goto loop3
$stop3:

You may copy any files that do not require a process context to another system and use them from there. Note, however, that these files are platform-specific; a HP-UX IA64 version of jsleep will not run on Microsoft Windows or on GNU/Linux, for example, even if you are using the IA64 version of the operating system.

Connection file

Some tools are suited to communicating with the central Redwood Server over the server's HTTP interface. This is useful when you want to run commands from outside of the Redwood Server environment, for instance from a server where you have not installed the platform agent. It is explicitly allowed to copy the jtool binary over to a different machine and call it from there. Note that tools connecting to the central Redwood Server require a connection file that can be created using jsecret.

Job-context

Other tools are meant for use within a Redwood Server OS process executed by the platform agent. This is called running in job-context. Such tools use the -j or -job-context argument to verify that you understand that they must be called in job-context.

Proxy Settings

The following environment variables are used to retrieve proxy server connection details:

  • HTTP_PROXY - The URL to the proxy server, https://proxy.example.com:3128
  • PROXY_USER - The user for the proxy server, ignored if HTTP_PROXY is not set
  • PROXY_PASSWORD - The password for the proxy user, ignored if HTTP_PROXY is not set
  • NO_PROXY - Enforce a direct connection

Logging

All tools, including the platform agent itself, log in a common logging format and use the same arguments to overrule the default logging settings. See Agent Logging Settings for more information.

z/OS Availability

On z/OS most system tools are not available.

  • As z/OS jobs run as JES jobs there is no job-context. System tools that depend on the process context are not supported.
  • jftp has not been ported to function properly in an EBCDIC environment.

Specific instructions on how to use the system tools on z/OS are documented in z/OS System Tools.

← Using the Groovy Definition Typejtool →
  • Logging
    • z/OS Availability
Docs
Getting StartedInstallationFinance InstallationConcepts
TroubleshootingArchiving
Learn and Connect
Support Portal
BlogEventsResources
ISO/ IEC 27001 Information Security Management
Automate to be human

2023 All Rights Reserved |

Terms of Service | Policies | Cookies | Glossary | Third-party Software | Contact | Copyright | Impressum |