Mikrotik

用於搜尋的腳本 MikroTik 包含字元串

  • March 27, 2017

我有隊列樹名稱int-up_bw_duyungofficeint-down_bw_duyungoffice。我可以在 MikroTik CLI 中grep **duyungoffice嗎?**所以列印結果是int - up_bw_duyungoffice和int- down_bw_duyungoffice的資訊。

我知道的預設腳本如下所示:

> queue tree print where name=int-down_bw_duyungoffice
Flags: X - disabled, I - invalid     
0   name="int-down_bw_duyungoffice" 
    parent=TOTAL INTL DOWN - 1Mbps - Blok 1 (1:16) 
    packet-mark=packet-down_bw_duyungoffice limit-at=64k 
    queue=pcq-down-client-1Mbps(1:16) priority=8 max-limit=1M burst-limit=0 
    burst-threshold=0 burst-time=0s

但該腳本僅顯示 int-down_bw_duyungoffice。

當然可以。像這樣使用~

queue tree print where name~"duyungoffice"

引用自:https://serverfault.com/questions/840730