waerc
ファイルをソースに設定します。
${CARIDEN_HOME}/flow_manage \
-action produce-cluster-config-file \
-node-flow-configs-table <input-path> \
-cluster-config-file <output-path> \
-interval 120 \
-bgp true \
-bgp-port 10179 \
-port 12100 \
-flow-size lab \
-server-ip ::
ここで、<input-path>
は、node-flow-configs-table ファイルの作成で作成された node-flow-configs-table
のパス、<output-path>
は、生成されるシードクラスタ構成ファイルが配置されるパスです。
<input-path>
ファイルの例は次のようになります。
<NodeFlowConfigs>
Name SamplingRate FlowSourceIP BGPSourceIP BGPPassword
node1 1024 192.168.75.10 69.127.75.10 ag5Xh0tGbd7
node2 1024 192.168.75.11 69.127.75.11 ag5Xh0tGbd7
シードクラスタ構成ファイルの出力が次のようになっていることを確認します。
{
"agentConfigMapInfo": {
"cluster_1::instance_x": {
"perAgentDebugMode": null,
"flowManageConfiguration": {
"maxBgpdPeers": 150,
"useBgpPeering": true,
"outfileProductionIntervalInSecs": 120,
"networkDeploymentSize": "lab",
"bgpTcpPort": 10179,
"netflowUdpPort": 12100,
"daemonOutputDirPath": "<user.home>/.cariden/etc/net_flow/flow_matrix_interchange",
"keepDaemonFilesOnStart": false,
"keepDaemonFilesOnStop": true,
"purgeOutputFilesToKeep": 3,
"routerConfigList": [
{
"name": "node1",
"bGPSourceIP": "69.127.75.10",
"flowSourceIP": "192.168.75.10",
"bGPPassword": "ag5Xh0tGbd7",
"samplingRate": "1024"
},
{
"name": "node2",
"bGPSourceIP": "69.127.75.11",
"flowSourceIP": "192.168.75.11",
"bGPPassword": "ag5Xh0tGbd7",
"samplingRate": "1024"
}
],
"ipPrefixFilteringList": [],
"appendedProperties": null,
"daemonOutputFileMaskPrefix": "out_matrix_",
"daemonOutputSoftLinkName": "flow_matrix_file-latest",
"extraAggregation": [],
"listValidExtraAggregationKeys": false
}
},
"cluster_1::instance_y": {
"perAgentDebugMode": null,
"flowManageConfiguration": {
"maxBgpdPeers": 150,
"useBgpPeering": true,
"outfileProductionIntervalInSecs": 120,
"networkDeploymentSize": "lab",
"bgpTcpPort": 10179,
"netflowUdpPort": 12100,
"daemonOutputDirPath": "<user.home>/.cariden/etc/net_flow/flow_matrix_interchange",
"keepDaemonFilesOnStart": false,
"keepDaemonFilesOnStop": true,
"purgeOutputFilesToKeep": 3,
"routerConfigList": [
{
"name": "node1",
"bGPSourceIP": "69.127.75.10",
"flowSourceIP": "192.168.75.10",
"bGPPassword": "ag5Xh0tGbd7",
"samplingRate": "1024"
},
{
"name": "node2",
"bGPSourceIP": "69.127.75.11",
"flowSourceIP": "192.168.75.11",
"bGPPassword": "ag5Xh0tGbd7",
"samplingRate": "1024"
}
],
"ipPrefixFilteringList": [],
"appendedProperties": null,
"daemonOutputFileMaskPrefix": "out_matrix_",
"daemonOutputSoftLinkName": "flow_matrix_file-latest",
"extraAggregation": [],
"listValidExtraAggregationKeys": false
}
}
},
"aggregationMode": "okIfNotAllPortionsArePresent",
"debugMode": {
"bypassAnyNfacctdOperation": false
},
"logNetflowTraffic": false
}