DFS-R topology

Topology of DFS-R can be easily visualized by using GraphViz tool.

Based on Active Directory Topology Visualization part 1 solution I’ve developed next script to have clear picture how DFS replication looks like. Design of solution is very the same: vbs script queries AD regarding to DFS replication groups, folders, servers and connections and formats result into dot language file. Then dot file is used as input for GraphViz package to generate picture of DFS-R topology.

Vbs script can be downloaded here without any limitation of using:

getDFSRTopology.zip

usage:

cscript /nologo getDFSRTopology.vbs

Result:

Generated dot file can look like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
DIGRAPH DFSRTopology {
 
fontname=helvetica;
node [fontname=helvetica, image="server.png", labelloc=b,color=white];
 
SUBGRAPH cluster_Bold_and_Beautiful {
label = "Group: Bold_and_Beautiful\nFolder: B&B";
 
FS01_0 [label=FS01];
FS02_0 [label=FS02];
 
}
 
SUBGRAPH cluster_OnlySN_PR {
label = "Group: OnlySN_PR\lFolder: PR-SN"
 
FS03_1 [label=FS03];
FS02_1 [label=FS02];
 
}
 
SUBGRAPH cluster_REPL_Maximo_PROD {
label = "Group: REPL_Maximo_PROD\lFolder: PROD_CfR_Archive\lFolder: PROD_CfR_Current"
 
FS03_2 [label=FS03];
FS02_2 [label=FS02];
FS01_2 [label=FS01];
 
}
 
SUBGRAPH cluster_RG_CORPDATA_DATA {
label = "Group: RG_CORPDATA_DATA\lFolder: DATA"
 
FS02_3 [label=FS02];
FS01_3 [label=FS01];
 
}
 
SUBGRAPH cluster_RG_CORPDATA_USERS {
label = "Group: RG_CORPDATA_USERS\lFolder: USERS"
 
FS01_4 [label=FS01];
FS02_4 [label=FS02];
 
}
 
FS02_0 -> FS01_0;
FS01_0 -> FS02_0;
FS02_1 -> FS03_1;
FS03_1 -> FS02_1;
FS01_2 -> FS03_2;
FS02_2 -> FS03_2;
FS01_2 -> FS02_2;
FS03_2 -> FS02_2;
FS03_2 -> FS01_2;
FS02_2 -> FS01_2;
FS01_3 -> FS02_3;
FS02_3 -> FS01_3;
FS02_4 -> FS01_4;
FS01_4 -> FS02_4;
 
}

and based on it here is the picture (command: fdp *.dot -Tjpg -O):

fdp4

Rectangles represent replication groups with replication partners. Opposite to Active Directory Topology Visualization part 1 or Site links topology solutions, where nodes occur only once, here is needed one trick to have the same server in various groups. In line 88 in vbs script I pin to node names additional counter to have group specific servers, however their labels stay the same. It allows to see the same server name in various groups but nodes are definitely different from dot language viewpoint.

 

Tags: , ,

Leave a Reply