The SNMP test monitors the amount of time required to perform an SNMP GET request for a MIB object on a specific agent. It supports only SNMPv1, SNMPv2c, and SNMPv3 operations.
Options and Arguments
SNMP tests require the following specific options and arguments:
Note: IPv6 addresses can be used, but they must be embedded in brackets, for example [0aff::230:6eff:fe4b:51db]:8080. Here 0aff::230:6eff:fe4b:51db represents the IPv6 address and 8080 represents the port number.
SNMP Version Options
Select the SNMP version that you want to test with. Available options are SNMPv1, SNMPv2c, and SNMPv3.
SNMPv1 and SNMPv2c tests require the following specific argument:
SNMPv3 tests require the following specific arguments:
Specify these options and arguments when you create or modify tests.
Examples
This section includes examples of SNMP version tests that monitor the time required to retrieve MIB object values.
Example 1: SNMPv1 or SNMPv2c Test
Use this example to create a SNMPv1 or SNMPv2c test that monitors the amount of time required to retrieve the value of the MIB object with OID 1.3.6.1.4.1.546.1.1.1.8.0 from the agent on port 5000 of the system at IP address 172.32.6.93. The test performs an SNMP GET for this object every 30 seconds, waits up to 10 seconds for a successful response, and calculates response time and availability statistics over the last 120 seconds (2 minutes).
To create a new test in a policy
The New test pane appears.
When you commit your changes, SRM adds an entry similar to the following to the svcrsp.cf file:
{
index=22
type=snmp
desc="snmpGet"
dest="172.32.6.93:5000"
encoded=yes
password="CHV1JB1"
args="oid=1.3.6.1.4.1.546.1.1.1.8.0"
interval=30
samples=1
timeout=10
window=120
tos=0
limit=0
status=active
name="Get value of OID 1.3.6.1.4.1.546.1.1.1.8.0"
class=""
context=""
flags="1"
loglevel=1
}
Example 2: SNMPv3 Test
Use this example to create a SNMPv3 test that monitors the amount of time required to retrieve the value of the MIB object with OID 1.3.6.1.4.1.546.1.1.1.8.0 from the agent on port 5000 of the system at IP address 172.32.6.93. The test performs an SNMP GET for this object every 30 seconds, waits up to 10 seconds for a successful response, and calculates response time and availability statistics over the last 120 seconds (2 minutes).
To create a new test in a policy
The New test pane appears.
When you commit your changes, SRM adds an entry similar to the following to the svcrsp.cf file:
{
index=23
type=snmp
desc="snmpv3Get"
dest="172.32.6.93:5000"
encoded=yes
password=" c2VjbD0zJnNlY3U9bWQ1ZGVzMiZhdXRdcHI9TUQ1JmF1dGhwdz1wYXNzd29yZCZwcml7cHI6REVTJnByaXAwdy1wYXNzd29yZA=="
args="oid=1.3.6.1.4.1.546.1.1.1.8.0"
interval=30
samples=1
timeout=10
window=120
tos=0
limit=0
status=active
name="SNMPv3: Get value of OID 1.3.6.1.4.1.546.1.1.1.8.0"
class=""
context=""
flags="1"
loglevel=1
}
For information about errors you may encounter when running SNMP tests, see SNMP Test Error Codes.
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |