Controlling the program / Using the command line |
You can run the Cleo Harmony, Cleo VLTrader, or Cleo LexiCom application from the command line (absent a GUI) to do the following:
Run Harmony, VLTrader, or LexiCom from the command line.
Harmonyc [Import][Enable][Disable][Run][String]
VLTraderc [Import][Enable][Disable][Run][String]
LexiComc [Import][Enable][Disable][Run][String]
-b [-f "xmlFileFilter path"] -d "zip file path" -pp "passphrase"
Print a list of command line options.
Harmonyc –?
VLTraderc –?
LexiComc –?
Print all messages ( -m) while processing command line.
Harmonyc –m ...
VLTraderc –m ...
LexiComc –m ...
Print only error messages (-x) while processing command line
Harmonyc –x ...
VLTraderc –x ...
LexiComc –x ...
You can use either of these options with –i, -e, -d, -r, or –s.
You can increase your screen buffer width to ~160 characters to avoid message line wrapping.
Generate a log file ( -l) while processing a command line.
Harmonyc –l “path” ...
VLTraderc –l “path” ...
LexiComc –l “path” ...
You can use this option with –i, -e, -d, -r, or –s.
If the log file already exists, it is overwritten.
The system log file is not affected by this option.
Import and activate a host ( -i)
Harmonyc –i “path”
VLTraderc –i “path”
LexiComc –i “path”
path must point to a valid .zip file. The .zip should be structured to match the directory structure of Cleo Harmony, Cleo VLTrader, or Cleo LexiCom. If it is a just file in a .zip, it is placed in the appropriate home directory.
If the active host alias already exists, it is overwritten.
You can use the -i option to import patch files (usually in conjunction with -m):
Harmonyc –i “path_to_patch_file/0.1.zip”
The -r option can follow this option to run a newly imported host.
Enable ( -e) one or more actions.
Harmonyc –e “<action>mailbox@host”
Harmonyc –e “host\mailbox\action”
VLTraderc –e “<action>mailbox@host”
VLTraderc –e “host\mailbox\action”
LexiComc –e “<action>mailbox@host”
LexiComc –e “host\mailbox\action”
Disable ( -d) one or more actions
Harmonyc –d “<action>mailbox@host”
Harmonyc –d “host\mailbox\action”
VLTraderc –d “<action>mailbox@host”
VLTraderc –d “host\mailbox\action”
LexiComc –d “<action>mailbox@host”
LexiComc –d “host\mailbox\action”
You can specify either action path format. You can use * and ? to wildcard the path and possibly match more than one action. You can use / instead of a \.
You can specify a partial path (for example, “host” or “host\mailbox” or “mailbox@host”) to enable or disable ALL actions within the path. * and ? can also be used to wildcard the partial path.
Run one or more actions ( -r).
Harmonyc –r “<action> mailbox@host”
Harmonyc –r “host\mailbox\action”
VLTraderc –r “<action> mailbox@host”
VLTraderc –r “host\mailbox\action”
LexiComc –r “<action> mailbox@host”
LexiComc –r “host\mailbox\action”
You can specify either action path format. You can use * and ? to wildcard the path and possibly match more than one action. You can use / instead of a \.
You can specify a partial path (for example, “host” or “host\mailbox” or “mailbox@host”) to run ALL actions within the path. * and ? can also be used to wildcard the partial path.
If more than one action is matched, the actions are run sequentially one-by-one.
See sample.bat in the Cleo Harmony, Cleo VLTrader, or Cleo LexiCom home directory for an example.
Supply new property values while running one or more actions ( -r with -t/ -n).
Harmonyc –r “<action>mailbox@host” –t “<Action><Commands>PUT ...” –n “GET ...” ...
VLTraderc –r “<action>mailbox@host” –t “<Action><Commands>PUT ...” –n “GET ...” ...
LexiComc –r “<action>mailbox@host” –t “<Action><Commands>PUT ...” –n “GET ...” ...
The -t option specifies a host-, mailbox- or action-level property modification, the name of the property (tag) and the new value of the property. The property names correspond to the tagged values in the host XML file. See XML file formats for information about the layout of a host XML file.
You can use the -t option mutliple times.
To specify a multi-line value, use –t to specify the first line, and then immediately following specify each remaining line with –n values.
More than one –t value (followed by –n values) can be specified to update multiple properties.
If more than one action is being run, the tagged values are applied to each action as it is run.
Supply new property values without running any actions (-p with -t/ -n).
Harmonyc –p “<action>mailbox@host” –t “<Action><Commands>PUT ...” –n “GET ...” ...
VLTraderc –p “<action>mailbox@host” –t “<Action><Commands>PUT ...” –n “GET ...” ...
LexiComc –p “<action>mailbox@host” –t “<Action><Commands>PUT ...” –n “GET ...” ...
The -t option specifies a host-, mailbox- or action-level property modification, the name of the property (tag) and the new value of the property. The property names correspond to the tagged values in the host XML file. See XML file formats for information about the layout of a host XML file.
You can use the -t option mutliple times.
To specify a multi-line value, use –t to specify the first line, and then immediately following specify each remaining line with –n values.
More than one –t value (followed by –n values) can be specified to update multiple properties.
Run the Cleo Harmony, Cleo VLTrader, or Cleo LexiCom application as a service ( -s):
c –s “service”
Running the Cleo Harmony, Cleo VLTrader, or Cleo LexiCom application as a service is identical to how they run when installed as a Windows service. Installing and running as a service has the following advantages:
Run the Cleo Harmony, Cleo VLTrader, or Cleo LexiCom application remotely ( -s):
Harmonyc –s “remote,target” ...
VLTraderc –s “remote,target” ...
LexiComc –s “remote,target” ...
This option can be used with -e, -d, or –r. The action paths specified with these options must exist within Cleo Harmony, Cleo VLTrader, or Cleo LexiCom on the target computer.
The target can be specified as a computer name or IP address. The Cleo Harmony, Cleo VLTrader, or Cleo LexiCom application must be installed and/or running as a service ( –s “service”) on the target server for the remote command to be accepted.
The -l option can be used to generate a local log file.
This option only requires a license on the target computer.
Print current license information ( -s):
Harmonyc –s “license”
VLTraderc –s “license”
LexiComc –s “license”
This will generate output similar to the following:
License Key = eb]|-y{8R-LyLo-GGjd-M{42-GkE4-QI7B-mqL^ License Owner = Cleo Communications Serial Number = LX9012 Host ID = LO6354 Key Expires = 2003/01/08 (evaluation) Max # of Hosts = Unlimited Max # of Mailboxes per Host = 5 Translator Integration = Yes AS2 = Yes FTP = Yes FTP/S = Yes HTTP = Yes HTTP/S = Yes API = Yes
Print current version information ( –s).
Harmonyc –s “version”
VLTraderc –s “version”
LexiComc –s “version”
This will generate output similar to the following:
Version = 2.0.03 2002/05/08 07:48:28 CDT as2bean.jar 2002/04/29 16:31:22 CDT dcebmxhttpsbean.jar 2002/05/09 09:48:54 CDT ftp.jar 2002/05/09 09:48:58 CDT ftps.jar 2002/05/06 16:57:26 CDT httpbean.jar 2002/04/26 16:37:54 CDT HTTPClient.jar 2002/05/06 16:57:30 CDT httpsbean.jar 2002/05/06 16:57:20 CDT lexbean.jar 2002/05/08 09:53:38 CDT LexiCom.jar
Process command line options specified in a file ( –f) .
Harmonyc –f “path”
VLTraderc –f “path”
LexiComc –f “path”
And an example file:
-m -l log.xml -i "hosts\preconfigured\ABC VAN.xml" -r "ABC VAN\myMailbox\send+receive" -t "<Host><Inbox>G:\edi\in\" -t "<Host><Outbox>G:\edi\out\" -c "CONNECT user=test,*pswd=test" -c "PUT -DEL .\ receiver=EDI,type=X12" -c "GET -DIR -CON -UNI .\[type]=X12"
The contents the file can contain any of the other command line options besides –f. Within the file, arguments can be separated by spaces and/or exist on separate lines.
Import a file originally exported from the Cleo Harmony, Cleo VLTrader, or Cleo LexiCom application:
VersaLexc -i VersaLexConfig.zip -pp cleocleo -cp keypswd1 -cp keypswd2 -m