Disabling traps and syslog messages for IKEv2 and IPsec

You can disable error traps and syslog messages for Internet Key Exchange version 2 (IKEv2) and IPsec. By default, traps and syslog messages for both IKEv2 and IPsec are enabled.

Use the following commands to disable error traps and syslog messages for IKEv2 and IPsec.
  • The no snmp-server enable traps command disables error traps for IKEv2 and IPsec.

    The following example shows how to disable error traps for IKEv2.

    
    device(config)# no snmp-server enable traps ikev2
    

    The following example shows how to disable error traps for IPsec.

    
    device(config)# no snmp-server enable traps ipsec
    
  • The no logging enable ikev2 command disables syslog messages for IKEv2.
    
    device(config)# no logging enable ikev2
    
    Note: To disable only extended logging of IKEv2 packets, use the following command:
    
    device(config)# no logging enable ikev2 ikev2-packet
    
    Note: To disable only extended logging of IKEv2 events, use the following command:
    
    device(config)# no logging enable ikev2 ikev2-extended 
    
  • The no logging enable ipsec command disables syslog messages for IPsec.
    
    device(config)# no logging enable ipsec