Previous Topic: SMTP TestsNext Topic: SQL Query Tests


SNMP Tests

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:

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

  1. Click + (New) on the Test Monitors toolbar.

    The New test pane appears.

  2. From the Test Type list, select SNMP.
  3. For Description, specify snmpGet.
  4. For Test Name, specify Get value of OID 1.3.6.1.4.1.546.1.1.1.8.0.
  5. For Test Interval, specify 30.
  6. For Test Timeout, specify 10.
  7. For Samples Per Interval, specify 1.
  8. For Statistics Window, specify 120.
  9. For SNMP Agent, specify 172.32.6.93.
  10. For SNMP Port, specify 5000.
  11. For Community String, specify public.
  12. For OID, specify 1.3.6.1.4.1.546.1.1.1.8.0.
  13. Accept defaults for all other fields.
  14. Click Save Test.

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

  1. Click + (New) on the Test Monitors toolbar.

    The New test pane appears.

  2. From the Test Type list, select SNMP.
  3. For Description, specify snmpv3Get.
  4. For Test Name, specify SNMPv3: Get value of OID 1.3.6.1.4.1.546.1.1.1.8.0.
  5. For Test Interval, specify 30.
  6. For Test Timeout, specify 10.
  7. For Samples Per Interval, specify 1.
  8. For Statistics Window, specify 120.
  9. For SNMP Agent, specify 172.32.6.93.
  10. For SNMP Port, specify 5000.
  11. For Security Level, select AuthPriv.
  12. For User Name, select shades; shades should be a SNMPv3 user that is configured on SystemEDGE.
  13. Click SHA for the authentication protocol used by the SNMPv3 user shades.
  14. For Authentication Password, specify shapassword.
  15. For Verify Password below Authentication Password, specify shapassword.
  16. Click DES for the privacy protocol used by the SNMPv3 user shades.
  17. For Privacy Password, specify despassword.
  18. For Verify Password below Privacy Password, specify despassword.
  19. For OID, specify 1.3.6.1.4.1.546.1.1.1.8.0.
  20. Accept defaults for all other fields.
  21. Click Save Tests.

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.