Linkar Framework
Linkar Web Services
Linkar REST API (deprecated)
Linkar Clients (deprecated)
These commands provide a CLI (Command-Line Interface) to perform functions which (mostly) are otherwise performed from the Manager. Commands are executed from the account where MV Components have been installed, typically the LINKAR account.
It is essential to LK.Enable data/application accounts so that Linkar can access them.
This command is executed in the LINKAR account to enable one or more data accounts to make them accessible from Linkar SERVER. It creates some files in the data account, and pointers back to the Linkar components account. In jBASE this command is not available, as MV Components must be installed in each data account.
:LK.ENABLE -H
Shows help.
:LK.ENABLE
Will prompt for the account name to enable.
:LK.ENABLE <data account> [<data account> <data account> ... ]
Immediately enables one or more MV Accounts. The account names are separated by spaces. There are no prompts.
:LK.ENABLE ALL
Refresh all accounts already enabled. There are no prompts. Useful for MV Component updates. |
This command is executed in the LINKAR account to disable one or more data accounts so that they are not accessible from Linkar SERVER. This deletes Linkar files in the account(s), and removes pointers previously created by LK.ENABLE.
Note: The LK.COUNTERS and LK.LOG files will be deleted. Save these files before using LK.DISABLE.
:LK.DISABLE -H
Shows help
:LK.DISABLE
Will ask for the account name to be disabled
:LK.DISABLE <data account> [<data account> <data account> ... ]
Immediately disables one or more MV accounts. The account names are separated by spaces. There are no prompts.
:LK.DISABLE ALL
Disable all accounts that were enabled. |
This command is executed in the LINKAR account to create and delete files in data accounts for demonstration and installation tests.
The created Files are:
•LK.CUSTOMERS: A set of 100 clients. •LK.ITEMS: 1000 product records. •LK.ORDERS: Client orders. The command will ask how many orders you wish to create, and will create an index on attribute 3, ITEM.
:LK.DEMOFILES -H
Shows help.
:LK.DEMOFILES
Asks for the MV account where demo files are to be created, typically DEMO.LINKAR.
:LK.DEMOFILES DELETE
Asks for the MV account where demo files are to be deleted.
(jBASE and Reality: This command must be executed from the data account where you are going to install the demo files.)
If the account is not enabled, LK.ENABLE first, or the message below is displayed. If using the emulator in the Manager, simply press Enter/Send at the prompt shown below. From TCL (using the red box) you can enter "LK.ENABLE account1 account2 ...", complete that operation, and then just click the green Create Demo Files button again.
|
In the EntryPoints Definition, different Connection Types are offered depending on the selected database. The SOCKET type opens a new connection from the Linkar SERVER service to the database in one Session or database Line.
Linkar SERVER checks if there is a Socket connection in the defined EntryPoint Port, and if there is none, it automatically executes this command from a Telnet session. This command starts a connection between Linkar SERVER and the database.
From the TCL/ECL or Shell, this command can be executed to open the Socket connection and Linkar SERVER start can be optimized. The Socket connection can open in a normal line or in a phantom line, this command can also be executed from the database auto start, the D3 user-coldstart, the Config START in QM etc.
:LKLISTENING -H
Shows help
Syntax for QM, UniVerse and UniData: [PHANTOM] LKLISTENING -SOCKET,<ip>,<port>,<timeout>]
Syntax for D3: [Z] LKLISTENING -SOCKET,<port>
-SOCKET creates the socket connection
ip The socket ip address. port The socket listening port. timeout Timeout in seconds. The default value in 0, without timeout.
|
Demonstration program that will call the lksendcommand.exe command to execute several operations from BASIC against a Linkar connected database |
This command verifies that file dictionary items are well constructed, and valid for use in Linkar. It must be executed from the LINKAR account.
LK.CHECKDICTS -H
Shows help
LK.CHECKDICTS
Prompts for the MV Account and Files.
LK.CHECKDICTS <data account> <filename> [<filename> <filename>..]
Checks dictionary items in specified files with no prompts.
LK.CHECKDICTS <data account> ALL
Checks dictionary items in ALL files with no prompts. |