Disabling and Re-enabling Passcode Logging

A Syslog message and SNMP trap message are generated every time a new passcode is generated and passcode authentication is attempted,. This is the default behavior. If desired, you can disable passcode-related Syslog messages or SNMP trap messages, or both.

The following example shows a Syslog message and SNMP trap message related to passcode authentication.

New passcode: 01234567. Expires in 1440 minutes. Old passcode is valid for another 5 minutes.

To disable Syslog messages for passcodes, enter the no auth-mode passcode log syslog command.

device(config-vlan-10-webauth)# no auth-mode passcode log syslog

Enter the following command to disable SNMP trap messages for passcodes.

device(config-vlan-10-webauth)# no auth-mode passcode log snmp-trap

Enter the following command to re-enable Syslog messages for passcodes after they have been disabled.

device(config-vlan-10-webauth)# auth-mode passcode log syslog

Enter the following command to re-enable SNMP trap messages for passcodes after they have been disabled.

device(config-vlan-10-webauth)# auth-mode passcode log snmp-trap