我想知道我们是否可以禁止在 CLI 上显示某些行。示例:我调用了以下 TCL 脚本,它本身调用了一些其他脚本。我在屏幕上看到的是:
switch#tclsh tftp://172.16.1.1/aliasmenu.tcl cpu
Loading aliasmenu.tcl from 172.16.222.89 (via Vlan10): !
[OK - 7140 bytes]
Calling second script
Loading aliascpu.tcl from 172.16.1.1 (via Vlan10): !
[OK - 198 bytes]
The argument given was cpu
我想看到的只是这个:
switch#tclsh tftp://172.16.1.1/aliasmenu.tcl cpu
Calling second script
The argument given was cpu
所以我正在寻找一种方法来抑制SSH VTY 终端输出的加载命令。我已经尝试过一些鉴别器命令:
logging discriminator HIDETCL msg-body drops Loading
logging buffered discriminator HIDETCL
logging console discriminator HIDETCL
logging monitor discriminator HIDETCL
但它们只适用于日志消息。该加载命令无法登录的消息,但直接输出到CLI。我也尝试了该file prompt quiet命令,因为我认为复制命令可能在 TCLsh 命令后面。但没有任何运气。其他人可能不得不处理这种类型的请求?