Difference between revisions of "Command-Line Interface"

From SDU
Jump to: navigation, search
m (Reverted edits by Agegeleruvy (Talk); changed back to last version by FrankTR)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
>__NOTOC__
+
__NOTOC__
 
[[Category:Integration]]
 
[[Category:Integration]]
 
{{Global Header}}
 
{{Global Header}}
Line 7: Line 7:
 
These are notes I made re using the command line interface with v6, I have no idea if they will relate to r11 but would not expect the command line interface to have changed.
 
These are notes I made re using the command line interface with v6, I have no idea if they will relate to r11 but would not expect the command line interface to have changed.
  
<nowiki>Please excuse the format but trying to manage wiki formatting with all the -'s and %'s was too painful.</nowiki>
+
<nowiki>Please excuse the format but trying to manage wiki formatting with all the -'s and %'s was too painful.</nowiki>
  
 
== Details ==
 
== Details ==
 
The quickest summary of the command can be obtained by using the standard -h help switch
 
The quickest summary of the command can be obtained by using the standard -h help switch
  
&gt;pdm_text_cmd -h
+
>pdm_text_cmd -h
 
pdm_text_cmd: Text API Command Line Interface - Sends text commands to Text API Daemon.
 
pdm_text_cmd: Text API Command Line Interface - Sends text commands to Text API Daemon.
  
Line 38: Line 38:
 
Parameters can be specified as below in file
 
Parameters can be specified as below in file
  
&gt;pdm_text_cmd -t REQUEST -u st00002 -f pdm_text_cmd.text (default operation is NEW)
+
>pdm_text_cmd -t REQUEST -u st00002 -f pdm_text_cmd.text (default operation is NEW)
  
 
where pdm_text_cmd.text is
 
where pdm_text_cmd.text is
Line 49: Line 49:
  
 
To update an existing record
 
To update an existing record
&gt;pdm_text_cmd -t REQUEST -u mparssey -o UPDATE -f change_status.txt
+
>pdm_text_cmd -t REQUEST -u mparssey -o UPDATE -f change_status.txt
  
 
where change_status.txt is
 
where change_status.txt is
Line 65: Line 65:
  
 
You can add multiple requests to a file using %%%%% as the separator.
 
You can add multiple requests to a file using %%%%% as the separator.
 
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://uxateja.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
 
----
 
=[http://uxateja.co.cc CLICK HERE]=
 
----
 
</div>
 

Latest revision as of 05:26, 30 November 2010

To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

Overview

These are notes I made re using the command line interface with v6, I have no idea if they will relate to r11 but would not expect the command line interface to have changed.

Please excuse the format but trying to manage wiki formatting with all the -'s and %'s was too painful.

Details

The quickest summary of the command can be obtained by using the standard -h help switch

>pdm_text_cmd -h pdm_text_cmd: Text API Command Line Interface - Sends text commands to Text API Daemon.

Usage: pdm_text_cmd -t table { -u from_userid | -p from_persid } [-o operation] [-f input_file] [-T timeout] [-h] Where:

 -t = Table to process.
 -o = Operation to perform. Valid: NEW|UPD|UPDATE|UPDO|UPDATE_ONLY. Default: NEW
 -f = File to process. Default is to use STDIN.
 -u = Cmd from userid.
 -p = Cmd from persid.
 -T = Time out in seconds.
 -h = This help.

Table and Operation parameters are case-insensitive. Valid Table values are listed in the Options section of the text_api.cfg file.

Valid tables are: ASSET CHANGE CONTACT ISSUE REQUEST

If no parameters are defined in file all text is assumed to be description.

Summary is created as first 60 characters of description if not otherwise set.

Will default assignee where requestor is an analyst.

Parameters can be specified as below in file

>pdm_text_cmd -t REQUEST -u st00002 -f pdm_text_cmd.text (default operation is NEW)

where pdm_text_cmd.text is %SUMMARY=My Summary %DESCRIPTION=Please fix the problem I've described in the description %PRIORITY=3 %CUSTOMER=mparssey %CATEGORY=Hardware %ASSIGNEE=agrainger

To update an existing record >pdm_text_cmd -t REQUEST -u mparssey -o UPDATE -f change_status.txt

where change_status.txt is %SEARCH=REQUEST_ID %REQUEST_ID=102953 %STATUS=Work In Progress

where you can write %SEARCH=keyword1;keyword2;keyword3 %keyword1=value1 %keyword2=value2 %keyword3=value3 %keyword4=new value1 %keyword5=new value2 %keyword6=new value3

You can add multiple requests to a file using %%%%% as the separator.