Fortinet white logo
Fortinet white logo

CLI Reference

config hosts

config hosts

Description: Configure SNMP hosts settings.

config hosts

edit <name>

set *host-ip {ipv4 or ipv6 address}

set host-type [any | query | trap]

unset

next

show

abort

end

delete <name>

purge

show

end

show

end

Parameter Description Type Size Default
host-ip IPv4 or IPv6 address of the SNMP manager (host), syntax: X.X.X.X/prefix or h:h:h:h:h:h:h:h/prefix. IPv4 or IPv6 address - none
host-type Whether the SNMP manager sends SNMP queries, or receives SNMP traps, or both. option - none
Option Description
any Any type.
query SNMP queries only.
trap SNMP traps only.

config hosts

config hosts

Description: Configure SNMP hosts settings.

config hosts

edit <name>

set *host-ip {ipv4 or ipv6 address}

set host-type [any | query | trap]

unset

next

show

abort

end

delete <name>

purge

show

end

show

end

Parameter Description Type Size Default
host-ip IPv4 or IPv6 address of the SNMP manager (host), syntax: X.X.X.X/prefix or h:h:h:h:h:h:h:h/prefix. IPv4 or IPv6 address - none
host-type Whether the SNMP manager sends SNMP queries, or receives SNMP traps, or both. option - none
Option Description
any Any type.
query SNMP queries only.
trap SNMP traps only.