Fortinet white logo
Fortinet white logo

CLI Reference

switch-controller snmp-user

Configure FortiSwitch SNMP v3 users globally.

  config switch-controller snmp-user
      Description: Configure FortiSwitch SNMP v3 users globally.
      edit <name>
          set queries [disable|enable]
          set query-port {integer}
          set security-level [no-auth-no-priv|auth-no-priv|...]
          set auth-proto [md5|sha]
          set auth-pwd {password}
          set priv-proto [aes|des]
          set priv-pwd {password}
      next
  end

config switch-controller snmp-user

Parameter Name Description Type Size
queries Enable/disable SNMP queries for this user.
disable: Disable SNMP queries for this user.
enable: Enable SNMP queries for this user.
option -
query-port SNMPv3 query port (default = 161). integer Minimum value: 0 Maximum value: 65535
security-level Security level for message authentication and encryption.
no-auth-no-priv: Message with no authentication and no privacy (encryption).
auth-no-priv: Message with authentication but no privacy (encryption).
auth-priv: Message with authentication and privacy (encryption).
option -
auth-proto Authentication protocol.
md5: HMAC-MD5-96 authentication protocol.
sha: HMAC-SHA-96 authentication protocol.
option -
auth-pwd Password for authentication protocol. password Not Specified
priv-proto Privacy (encryption) protocol.
aes: CFB128-AES-128 symmetric encryption protocol.
des: CBC-DES symmetric encryption protocol.
option -
priv-pwd Password for privacy (encryption) protocol. password Not Specified

switch-controller snmp-user

Configure FortiSwitch SNMP v3 users globally.

  config switch-controller snmp-user
      Description: Configure FortiSwitch SNMP v3 users globally.
      edit <name>
          set queries [disable|enable]
          set query-port {integer}
          set security-level [no-auth-no-priv|auth-no-priv|...]
          set auth-proto [md5|sha]
          set auth-pwd {password}
          set priv-proto [aes|des]
          set priv-pwd {password}
      next
  end

config switch-controller snmp-user

Parameter Name Description Type Size
queries Enable/disable SNMP queries for this user.
disable: Disable SNMP queries for this user.
enable: Enable SNMP queries for this user.
option -
query-port SNMPv3 query port (default = 161). integer Minimum value: 0 Maximum value: 65535
security-level Security level for message authentication and encryption.
no-auth-no-priv: Message with no authentication and no privacy (encryption).
auth-no-priv: Message with authentication but no privacy (encryption).
auth-priv: Message with authentication and privacy (encryption).
option -
auth-proto Authentication protocol.
md5: HMAC-MD5-96 authentication protocol.
sha: HMAC-SHA-96 authentication protocol.
option -
auth-pwd Password for authentication protocol. password Not Specified
priv-proto Privacy (encryption) protocol.
aes: CFB128-AES-128 symmetric encryption protocol.
des: CBC-DES symmetric encryption protocol.
option -
priv-pwd Password for privacy (encryption) protocol. password Not Specified