| Блок кода |
|---|
| dotnet AgentConfigurationUploader.dll add --DbType PostgreSql --ConnectionString “Server=<Server_name>; Port=<Port>; Database=<Database_name>; User Id=<User_name>; Password=<Database_password>; “ --ObjectType Workstation --ObjectId “<Workstation_Id>” --Name <Configuration_name> --Description “<Description>” --Format <File_format> --ConfigFile “<File_path>” |
where <Server_name> is the name of the server where DBMS is located, <Port> is the port for configuring interaction between the DBMS and the Server (default: 5432),
<Database_name> is the name of the database,
<User_name> is the name of the DBMS user,
<Database_password> is the DBMS password,
<Workstation_Id> is the unique identifier for the computer with the Agent. To view it:
- Go to the section Groups > Computers.
- Open the developer console by pressing F12.
- In it, go to Network > Response, with Fetch/XHR additionally selected.
- In the Name column, select the workstation.
- In the GetWorkstation request, find the
id parameter of the required computer and copy its value.
<Configuration_name> is the configuration name,
<Description> is the description of the changes being made (any textual information),
<File_format> is the format of the configuration file,
<File_path> is the path to the configuration file. If only the file name is specified, the default path is taken from the directory where the command is executed.
| Блок кода |
|---|
| language | text |
|---|
| title | Example command |
|---|
| dotnet AgentConfigurationUploader.dll add --DbType PostgreSql --ConnectionString "Server=localhost; Port=5432; Database=dmdevel; User Id=postgres; Password=pwd; " --ObjectType Workstation --ObjectId "C6D169D8-AA30-4090-8E81-2734D27A700B" --Name telegram --Description "конфигурация" --Format gz --ConfigFile "D:\\Temp\\tg.gz" |
|