7.4.3. Create a configuration file by server infobase parameters


<< Prev   Next >>

ibcmd server config import --cluster-data="d:\1C srvinfo" --name=demoma --out=d:\ss-cfgs\demoma.yml

As a result of this command, the following configuration will be placed in the d:\ss-cfgs\demoma.yml configuration file:

server:
address: localhost
port: 8314
database:
dbms: MSSQLServer
server: <server name>
name: <database name>
user: sa
password: <user password>
infobase:
id: 1a39d42c-4da6-4f1c-bd78-98884d27578b
name: demoma
distribute-licenses: yes

This command imported information about the demoma infobase from a cluster whose data directory is located at d:\1C srvinfo address. Thus, if you need to start several infobases that are already registered in the working cluster using the standalone server, the parameters of these databases do not have to be manually transferred to the configuration file.

At the same time as importing information about the infobase, you can import publication data. To do this, specify the path to the default.vrd file in the import command line (--publication parameter):

ibcmd server config import --cluster-data="d:\1C srvinfo" --name=demoma --publication=c:\inetpub\wwwroot\demoma\default.vrd --out=d:\ss-cfgs\demoma.yml

In this example, the demoma infobase and publication parameters specified in the c:\inetpub\wwwroot\demoma\default.vrd file will be imported. The import result will be a single configuration file of the standalone server. It should be remembered that the import mechanism of the publication file ignores the command line for access to the infobase, which is specified in the ib attribute of the point element of the default.vrd file. The user executing import should carefully indicate the parameters of the imported database and publication file.

See also:

  • Configuration file of the standalone server.

<< Prev   Next >>

Icon/Social/001 Icon/Social/006 Icon/Social/005 Icon/Social/004 Icon/Social/002