This document describes the new Simple Network Management Protocol (SNMP) features that are available for the Cisco Adaptive Security Appliance (ASA) 5500-X Series Firewall in software Release 9.1.5 and Releases 9.2.(1) and later.
There are no specific requirements for this document.
The information in this document is based on the Cisco ASA 5500-X Series Firewall that runs Cisco ASA® Software Release 9.1.5 and Releases 9.2.(1) and later.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
In ASA Versions 9.1.5 and 9.2.1, these SNMP enhancements are introduced:
This feature allows the ASA to support more than the current 32 SNMP hosts.
Currently, the ASA has a hard limit of 32 SNMP hosts total. This includes hosts that can be configured for traps and for polling. The next sections describe the affects that this feature has on single and multi-context modes.
You might prefer to monitor the network devices from a large pool of SNMP hosts. Ideally, you want the ability to specify an IP range and/or a subnet of the IP addresses that are allowed to monitor the network devices. The ASA currently does not provide that flexibility and limits the maximum SNMP hosts to 32.
The support for this feature involves two aspects:
The current design on the ASA is such that individual hosts can be configured via the CLI. For this feature, these additional design requirements were considered:
Some software restrictions and caveats that are associated with this feature are:
Here is an example:
object network network1
range 64.103.236.40 64.103.236.50
object network network2
range 64.103.236.35 64.103.236.55
snmp-server host-group inside network1 poll version 3 user-list SNMP-List
snmp-server host-group inside network2 poll version 3 user-list SNMP-List
Enter the show snmp-server host command in order to view host entries:
asa(config)# show snmp-server host
host ip = 64.103.236.35, interface = inside poll version 3 cisco1
host ip = 64.103.236.36, interface = inside poll version 3 cisco1
host ip = 64.103.236.37, interface = inside poll version 3 cisco1
host ip = 64.103.236.38, interface = inside poll version 3 cisco1
host ip = 64.103.236.39, interface = inside poll version 3 cisco1
host ip = 64.103.236.40, interface = inside poll version 3 cisco1
host ip = 64.103.236.41, interface = inside poll version 3 cisco1
host ip = 64.103.236.42, interface = inside poll version 3 cisco1
host ip = 64.103.236.43, interface = inside poll version 3 cisco1
host ip = 64.103.236.44, interface = inside poll version 3 cisco1
host ip = 64.103.236.45, interface = inside poll version 3 cisco1
host ip = 64.103.236.46, interface = inside poll version 3 cisco1
host ip = 64.103.236.47, interface = inside poll version 3 cisco1
host ip = 64.103.236.48, interface = inside poll version 3 cisco1
host ip = 64.103.236.49, interface = inside poll version 3 cisco1
host ip = 64.103.236.50, interface = inside poll version 3 cisco1
host ip = 64.103.236.51, interface = inside poll version 3 cisco1
host ip = 64.103.236.52, interface = inside poll version 3 cisco1
host ip = 64.103.236.53, interface = inside poll version 3 cisco1
host ip = 64.103.236.54, interface = inside poll version 3 cisco1
host ip = 64.103.236.55, interface = inside poll version 3 cisco1
Here are some important notes about the use of this feature:
Use the information that is described in this section in order to configure the ASA so that this new feature is implemented.
For SNMP Version 3, the administrator can associate various users with a specified group of hosts. This is useful if the administrator wants a set of users to have the ability to access the ASA from a group of hosts. This CLI command is used in order to configure a user list for multiple users:
ASA(config)# [no] snmp-server user-list <list_name> username <user_name>
In order to associate the user list with a host group, enter this command into the CLI:
[no] snmp-server host-group <interface> <network-object> [trap|poll]
[community [enc_type] <text>] [version {1 | 2c | 3 [user name | user-list
<list-name>]}] [udp-port <port_number>]
With this single command, you can specify a network object in order to indicate the multiple hosts that should be added. With the network object, you can specify either a subnet mask or the range of IP addresses that should be added, with the use of a single command. All of the IP addresses that are listed as a part of the network object are added as SNMP host entries. Similarly, for each of the users that are specified in the user list, there is a separate SNMP host entry.
These commands are used in order to allow administrators to clear and view the new configuration options for the SNMP servers:
Complete these steps in order to use the new SNMP group options and create an SNMP server host group for Version 2c polling:
asa(config)# object network network1
asa(config-network-object)# range 64.103.236.40 64.103.236.50
asa(config)#snmp-server host-group inside network1 poll community ***** version 2c
asa(config)#snmp-server group SNMPRW-GROUP v3 noauth
asa(config)#snmp-server user cisco1 SNMPRW-GROUP v3
asa(config)#snmp-server user-list SNMP-List username cisco1
asa(config)#snmp-server host-group inside network1 poll version 3 user-list SNMP-List
This image illustrates the changes that are made within the Cisco Adaptive Security Device Manager (ASDM):
This feature allows the ASA to support cpmCPUTotal5minRev SNMP OIDs.
This feature adds support for cpmCPUTotal5minRev and cpmCPUTotal1minRev OIDs on the ASA and deprecates the currently-supported OIDs cpmCPUTotal5min and cpmCPUTotal1min. The purpose of these OIDs is to monitor the CPU usage. The currently-supported OIDs range from 1 to 100, while the newly-supported OIDs range from 0 to 100. Hence, support was added for newer OIDs, as they cover a wider range.
It is important to note that since the deprecated OIDs (cpmCPUTotal5min and cpmCPUTotal1min) are no longer supported on the ASA, if the ASA is upgraded and the deprecated OIDs are polled, the ASA does not return any information for those OIDs. After an upgrade of the ASA, you are now required to monitor the cpmCPUTotal5minRev and cpmCPUTotal1minRev for CPU usage.
There are no CLI changes introduced with this new feature.
These are the new OIDs that are added with this feature:
The ASA platforms limit the maximum packet size for SNMP requests to 512 bytes. When you perform a bulk query for a large number of MIB OIDs within a single SNMP request, the SNMP connection times-out and an error syslog is generated on the ASA. RFC3417 suggests that the maximum packet size for SNMP requests should be 1,472 bytes. This is the size of the SNMP payload for the packet. Additionally, the Ethernet Header and the IP Header Size must be added in order to compute the total size of the packet.
This section provides information that you can use in order to troubleshoot system issues on the ASA.
These show commands can be useful when attempts are made to troubleshoot issues on the ASA:
This CLI command displays the entries that are present in the SNMP server address table, which includes both the host and the host group configurations:
asa(config)#show run object network
object network network1
range 64.103.236.40 64.103.236.50
object network network2
range 64.103.236.35 64.103.236.55
object network network3
range 64.103.236.60 64.103.236.70
ciscoasa/admin(config)# show run snmp-server
snmp-server group cisco-group v3 noauth
snmp-server user user1 cisco-group v3
snmp-server user user2 cisco-group v3
snmp-server user user3 cisco-group v3
snmp-server user-list cisco username user1
snmp-server user-list cisco username user2
snmp-server user-list cisco username user3
snmp-server host-group management0/0 net2 poll version 3 user-list cisco
no snmp-server locationno snmp-server contact
ciscoasa/admin(config)# show snmp-server host
host ip = 64.103.236.35, interface = inside poll version 3 cisco1
host ip = 64.103.236.36, interface = inside poll version 3 cisco1
host ip = 64.103.236.37, interface = inside poll version 3 cisco1
host ip = 64.103.236.38, interface = inside poll version 3 cisco1
host ip = 64.103.236.39, interface = inside poll version 3 cisco1
host ip = 64.103.236.40, interface = inside poll version 3 cisco1
host ip = 64.103.236.41, interface = inside poll version 3 cisco1
host ip = 64.103.236.42, interface = inside poll version 3 cisco1
As shown, these commands show all of the hosts that are configured via the host-group command. You can use this command in order to verify whether all of the entries are available and also cross-verify the host groups that overlap.