NOTE: This command does not modify the severity level set for specific hosts using
the snmp-server host command.
If you configure global severity levels for different categories in succession, the
last global severity level you configure is applied to all categories.
Example 1 Configuring the per-category severity level without changing the
global severity level
Configure the global severity level as critical for all enabled trap categories
1.
by specifying the SONET trap category.
host1(config)#snmp-server enable traps sonet trapFilters critical
Configure the global severity level as notice for all enabled trap categories
2.
by specifying the BGP trap category.
host1(config)#snmp-server enable traps bgp trapFilters notice
Configure the per-category severity level as debug for the SONET trap
3.
category.
host1(config)#snmp-server enable traps sonet per-category-trapFilters debug
In this example, although you configure the category-specific severity level as
debug for the SONET category in Step 3, the global severity level remains
unchanged as notice. This behavior occurs because only the category-specific
severity level was configured in the last operation.
Example 2 Overwriting the global severity level to the last-configured setting
Configure the global severity level as critical for all enabled trap categories
1.
by specifying the SONET trap category.
host1(config)#snmp-server enable traps sonet trapFilters critical
Configure the global severity level as notice for all enabled trap categories
2.
by specifying the BGP trap category.
host1(config)#snmp-server enable traps bgp trapFilters notice
Although you specify the type of SNMP trap category when you configure the
global severity level, it takes effect for all enabled trap categories on the router.
In this example, after you issue the second command, the global severity level
is set as notice for all enabled trap categories.
Example 3 Overriding the global severity level for a category with the
per-category severity level
Configure the global severity level as critical for the SONET trap category
1.
in the command.
host1(config)#snmp-server enable traps sonet trapFilters critical
Change the global severity level to notice for all enabled trap categories.
2.
Chapter 4: Configuring SNMP
171
Configuring Traps
Need help?
Do you have a question about the SYSTEM BASICS - CONFIGURATION GUIDE V 11.1.X and is the answer not in the manual?