MPLS 隧道提取
MPLS 隧道提取通过解析 隧道_path 命令的输出,检索隧道的实际位置和 LSP 路径的状态(正常或关闭):
瞻博网络:
show mpls lsp statistics extensive
Cisco:
show mpls traffic-eng tunnels
此功能显示隧道路径的确切网络视图。如果 LSP 可以是动态的(而不是显式的),这将很有用。NorthStar 计划器将显示定义网络中 LSP 隧道的当前状态和路由。
命令行通道路径:rdjpath
程序 /u/wandl/bin/rdjpath 可用于自动提取隧道信息。命令行选项如下: /u/wandl/bin/rdjpath -r 运行代码隧道_路径_dir
将 运行代码 替换为网络项目使用的相同文件扩展名,并将 隧道_path_dir 替换为包含从路由器收集的隧道路径文件的目录。
生成的文件 tunnelpath。可以通过 /u/wandl/bin/bbdsgn 将运行代码 导入网络,选项 M。 MPLSView, 3.读取 MPLS 隧道路径。这也可以通过输入跟踪文件实现自动化。
注意:
隧道路径文件必须为 UNIX 格式。
命令行隧道流量(仅限瞻博网络):convjtraf
程序 /u/wandl/bin/convjtraf 可用于从瞻博网络路由器提取隧道流量数据。命令行选项如下:
/u/wandl/bin/convjtraf
Usage: /u/wandl/bin/convjtraf {[-start hh:mm] [-pct [avg|max|99|95|90|80]]}
runcode tunnelfile duration traf1 traf2 ...
Example1: /u/wandl/bin/convjtraf runcode tunnel.x 60 traf1
groups traffic in traf1 into 60-min periods
Example2: /u/wandl/bin/convjtraf runcode tunnel.x 5 traf1
groups traffic in traf1 into 5-min periods
If data spans more than 24 periods, the traffic
of last two hours are displayed
生成的文件可以通过“文件>加载网络文件>隧道流量> t_trafficload”导入网络。

