view_log - Teradata Data Mover

Teradata Data Mover User Guide

Product
Teradata Data Mover
Release Number
16.00
Published
December 2016
Language
English (United States)
Last Update
2018-03-29
dita:mapPath
rdo1467305237457.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-4101
lifecycle
previous
Product Category
Analytical Ecosystem

Purpose

The view_log command allows the log for the specified job to be viewed.

Parameters

job_name
Name of the job to be viewed.
12315DFHJKS
dir
[Optional] Directory where the log files are written.
/home/datamover/logs
The generated file is written by default to the current directory.
filename
[Optional] Name for the file when saving the log. This file will be overwritten if a file of the same name already exists.
12315DFHJKS_log.txt
The generated file has by default the name log.txt.
security_username
[Optional] User ID of the super user or authorized Viewpoint user. The user ID of the super user is dmcl_admin and cannot be changed.
Required if security management is enabled on the Data Mover daemon.
security_password
[Optional] Password for the super user or authorized Viewpoint user.
53cUr17y
Required if security management is enabled on the Data Mover daemon. Not a valid parameter if -security_password_encrypted is also specified.
security_password_encrypted
[Optional] Encrypted password for the super user.
052c7aabd14c7770141ac3c0137ab98ae0d3f0f7cddf588981206b010c0c1b2f
Required if security management is enabled on the Data Mover daemon. Not a valid parameter if -security_password is also specified.
broker.url
[Optional] You may enter a broker URL to overwrite the default value specified in the commandline.properties file in order to connect to a different ActiveMQ server (and therefore a different daemon) at runtime.
dm-server1
broker.port
[Optional] You may enter a broker port to overwrite the default value specified in the commandline.properties file in order to connect to a different ActiveMQ server (and therefore a different daemon) at runtime.
61616

Usage Notes

A log file for the specified job is generated only if that job failed or the log_level parameter was set to a value other than 0 when running the create or move command.

XML File Example

For the view_log command, type datamove view_log -f parameters.xml.

In the following example, the parameters file specifies that Data Mover writes logs for job 12315DFHJKS to /home/datamover/logs/12315DFHJKS_log.txt.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dmViewLog xmlns= "http://schemas.teradata.com/dataMover/v2009"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:schemaLocation="http://schemas.teradata.com/unity/datamover.xsd">
		<job_name>12315DFHJKS</job_name>
		<dir>/home/datamover/logs</dir>
		<filename>12315DFHJKS_log.txt</filename>
</dmViewLog>