@GetDBARConnections
Syntax
@GetDBARConnections(DBHANDLE1;TLRETDESTINATIONSERVERS);
@GetDBARConnections(DBHANDLE1;TLRETDESTINATIONSERVERS;TLRETSOURCESERVERS);
Description
The list is returned in TEXTLIST TLRETDESTINATIONSERVERS the list of destination servers is returned for which Advanced Replication Settings are defined in the DB with the DBHANDLE DBHANDLE1.
Optionally, the parameter TEXTLIST TLRETSOURCESERVERS can be used to query the corresponding list of source servers for the respective destination servers. The individual source servers are separated by @Newline in the list elements.
The return value of the @Function is TRUE on success or @Error in case of an error.
A "-" represents a wildcard and denotes any server.
See also -> DBProperties Replication Settings Advanced.
Example: @GetDBARConnections(DBHANDLE1;TLRETDESTINATIONSERVERS)
DBHANDLE1:=@OpenDB("TEST.NSF");
RET:=@GetDBARConnections(DBHANDLE1;TLRETDESTINATIONSERVERS)
The database is opened, the list of defined destination servers is queried and output.
Example: @GetDBARConnections(DBHANDLE1;TLRETDESTINATIONSERVERS;TLRETSOURCESERVERS)
DBHANDLE1:=@OpenDB("TEST.NSF");
RET:=@GetDBARConnections(DBHANDLE1;TLRETDESTINATIONSERVERS;TLRETSOURCESERVERS);@LogReport(RET;3);
n1:=1;
n1e:=@Elements(TLRETDESTINATIONSERVERS);
WHILE(n1<=n1e)
{
ZS:=@GetListElement(TLRETDESTINATIONSERVERS;n1);
@LogReport("Ziel-Server:"+ZS;3);
QSList:=@Explode(@GetListElement(TLRETSOURCESERVERS;n1);@Newline);
n2:=1;
n2e:=@Elements(QSList);
WHILE(n2<=n2e)
{
QS:=@GetListElement(QSList;n2);
@LogReport(" Quell-Server:"+QS;3);
@Increment(n2);
}
@Increment(n1);
The database is opened, the list of defined destination servers and the associated source servers is queried and output.
Exampleausgabe:
1
Ziel-Server:-
Quell-Server:-
Ziel-Server:CN=WU-ENT-BER-03/O=WHATSUP/C=DE
Quell-Server:-
Ziel-Server:CN=WU-ENT-BER-0A/O=WHATSUP/C=DE
Quell-Server:-
Quell-Server:CN=WU-ENT-BER-0X/O=WHATSUP/C=DE
Quell-Server:CN=WU-ENT-BER-0Y/O=WHATSUP/C=DE
Note : This text was machine-translated and may contain inaccuracies.
