我正在使用 Ixload 5.10 版本和 TCL 8.4.14。
我没有帮助支持,所以希望有人可以帮助我解决这个问题。提前非常感谢。
这是我的代码。添加 ixNet....插件后,TCL 日志文件将显示错误“Lib.Comon.ixConfig.ixConfigError:Cannot mix legacy and new-style network objects in a single script...”
我不知道是否还有其他需要加载的包?在我的代码中,我已经初始化了这些。
package require statCollectorUtils
global ixAppPluginManager
$ixAppPluginManager load "HTTP"
set clnt_network [::IxLoad new ixNetworkGroup $chassisChain]
$clnt_network config \
-name "clnt_network"
$clnt_network globalPlugins.clear
set Filter [::IxLoad new ixNetFilterPlugin]
# ixNet objects needs to be added in the list before they are configured!
$clnt_network globalPlugins.appendItem -object $Filter\
$Filter config \
-name "Filter"
set GratArp [::IxLoad new ixNetGratArpPlugin]
# ixNet objects needs to be added in the list before they are configured!
$clnt_network globalPlugins.appendItem -object $GratArp
$GratArp config \
-enabled true \
-name "GratArp"
set TCP [::IxLoad new ixNetTCPPlugin]
# ixNet objects needs to be added in the list before they are configured!
$clnt_network globalPlugins.appendItem -object $TCP
$TCP config \
-tcp_tw_recycle true \
-tcp_keepalive_time 75 \
-tcp_keepalive_intvl 7200 \
-tcp_wmem_default 4096 \
-tcp_port_min 1024 \
-tcp_port_max 65535 \
-tcp_window_scaling false \
-name "TCP" \
-tcp_rmem_default 4096