Afficher toutes les lignes contenant snmp :

 1 FortiGate# show | grep snmp
 2    set snmp-index 1
 3         set snmp-index 2
 4         set snmp-index 3
 5         set snmp-index 4
 6         set allowaccess ping https ssh snmp http fgfm
 7 config system snmp sysinfo
 8 config system snmp community
 9         set name "public"
10     edit "snmp-trap"
11         set service "snmp-trap"

Afficher les sections de config qui contiennent snmp :

 1 FortiGate# show | grep -f snmp
 2 config system interface
 3     edit "port1"
 4         set vdom "root"
 5         set vlanforward enable
 6         set type physical
 7         set snmp-index 1 <---
 8     next
 9     edit "port2"
10         set vdom "root"
11         set vlanforward enable
12         set type physical
13         set snmp-index 2 <---
14     next
15     edit "port3"
16         set vdom "root"
17         set vlanforward enable
18         set type physical
19         set snmp-index 3 <---
20     next
21     edit "port4"
22         set vdom "root"
23         set vlanforward enable
24         set type physical
25         set snmp-index 4 <---
26     next
27