Grep 过滤命令在CLI中的使用
2012-08-22 10:54:18   来源:   评论:0 点击:

描述:
FortiOS 4.0MR2 CLI中新增grep 过滤功能
配置:
该grep命令应用于FortiOS标准命令过滤,语法如下:

FGT# show  <subcommand>  | grep <expression>
FGT# diagnose  <subcommand>  | grep <expression>

Example :


config system interface
    edit "port1"
        set vdom "root"
        set ip 192.168.183.104 255.255.254.0
        set allowaccess ping ssh http telnet
        set type physical
    next
    edit "port2"
        set vdom "root"
        set ip 172.31.225.104 255.255.254.0
        set allowaccess ping https ssh http telnet
        set type physical
    next

FGT # show sys interface | grep 192


set ip 192.168.183.104 255.255.254.0

FGT # show system interface | grep https


set allowaccess ping https ssh http telnet

相关热词搜索:

上一篇:设置FortiGate DHCP地址保留
下一篇:关于系统已经达到最大连接数的优化

分享到: 收藏