Fortinet white logo
Fortinet white logo

snmp

snmp

Configure the SNMP agent.

Usage

config system snmp
    set address <address>
    set community <community>
    set password <password>
    set protocol {v1/v2c | v1/v2c,v3 | v3}
    set server_port <port>
    set status {enable | disable}
    set username authPrivUser
end

Subcommands

Command

Description

abort

End and discard last config.

end

End and save last config.

help

List available commands or provide detailed help for a specific command.

set

Set a settable parameter or show current settings of parameters.

Set arguments

Argument

Description

address

Enter the address of the machine that is allowed to poll FortiPortal. Default: 127.0.01.

For use with protocolv1/v2c only.

community

Enter the SNMP community string. Default: public.

For use with protocolv1/v2c only.

password

Enter the password for authorization and encryption.

For use with protocolv3 only.

protocol

Enter the SNMP protocol version, one of v1/v2c, v1/v2c,v3, or v3.

server_port

Enter the listening port for the SNMP agent. Default: 161.

status

Enable or disable the SNMP agent. Default: disable.

username

Username authPriveUser for SNMPv3 only. Read only.

snmp

snmp

Configure the SNMP agent.

Usage

config system snmp
    set address <address>
    set community <community>
    set password <password>
    set protocol {v1/v2c | v1/v2c,v3 | v3}
    set server_port <port>
    set status {enable | disable}
    set username authPrivUser
end

Subcommands

Command

Description

abort

End and discard last config.

end

End and save last config.

help

List available commands or provide detailed help for a specific command.

set

Set a settable parameter or show current settings of parameters.

Set arguments

Argument

Description

address

Enter the address of the machine that is allowed to poll FortiPortal. Default: 127.0.01.

For use with protocolv1/v2c only.

community

Enter the SNMP community string. Default: public.

For use with protocolv1/v2c only.

password

Enter the password for authorization and encryption.

For use with protocolv3 only.

protocol

Enter the SNMP protocol version, one of v1/v2c, v1/v2c,v3, or v3.

server_port

Enter the listening port for the SNMP agent. Default: 161.

status

Enable or disable the SNMP agent. Default: disable.

username

Username authPriveUser for SNMPv3 only. Read only.