Service Response Monitor › Test Management › Create Tests › SNMP 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 Agent. The hostname or IP address of the system on which the SNMP agent resides.
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 Port. (Optional) The port on which the SNMP service is running. The default is 161.
- OID. The object identifier of the MIB object to query. When you query a MIB variable that has an integer value, the value displays in the Results Field column on the Monitor page. This column does not display by default. To set it to display, select Show Configuration Details on the Monitor page, and then select Results Field, and click Update Page.
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:
- Community String. The read-only or read-write community string used to contact the agent.
SNMPv3 tests require the following specific arguments:
- User Name. SNMPv3 user name configured in SystemEDGE.
- Security Level. Permitted level of security in the SNMPv3 Security model. Select NoAuthNoPriv, AuthNoPriv, or AuthPriv:
- NoAuthNoPriv. This indicates that the SNMPv3 user is configured without any authentication and without any encryption (privacy).
- AuthNoPriv. This indicates that the SNMPv3 user is configured with authentication but without any encryption (privacy).
- AuthPriv. This indicates that the SNMPv3 user is configured with both authentication and encryption (privacy).
- MD5 or SHA. Select the authentication protocol that the SNMPv3 user is configured with. Applicable for security levels AuthPriv or AuthNoPriv only.
- Authentication Password. Enter the authentication password that the SNMPv3 user is configured. Applicable for security levels AuthPriv or AuthNoPriv only.
- DES or AES or 3DES. Select the privacy protocol that the SNMPv3 user is configured with. Applicable for security level AuthPriv only.
- Authentication Privacy. Enter the privacy password that the SNMPv3 user is configured with. Applicable for security level AuthPriv only.
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
- Click + (New) on the Test Monitors toolbar.
The New test pane appears.
- From the Test Type list, select SNMP.
- For Description, specify snmpGet.
- For Test Name, specify Get value of OID 1.3.6.1.4.1.546.1.1.1.8.0.
- For Test Interval, specify 30.
- For Test Timeout, specify 10.
- For Samples Per Interval, specify 1.
- For Statistics Window, specify 120.
- For SNMP Agent, specify 172.32.6.93.
- For SNMP Port, specify 5000.
- For Community String, specify public.
- For OID, specify 1.3.6.1.4.1.546.1.1.1.8.0.
- Accept defaults for all other fields.
- 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
- Click + (New) on the Test Monitors toolbar.
The New test pane appears.
- From the Test Type list, select SNMP.
- For Description, specify snmpv3Get.
- For Test Name, specify SNMPv3: Get value of OID 1.3.6.1.4.1.546.1.1.1.8.0.
- For Test Interval, specify 30.
- For Test Timeout, specify 10.
- For Samples Per Interval, specify 1.
- For Statistics Window, specify 120.
- For SNMP Agent, specify 172.32.6.93.
- For SNMP Port, specify 5000.
- For Security Level, select AuthPriv.
- For User Name, select shades; shades should be a SNMPv3 user that is configured on SystemEDGE.
- Click SHA for the authentication protocol used by the SNMPv3 user shades.
- For Authentication Password, specify shapassword.
- For Verify Password below Authentication Password, specify shapassword.
- Click DES for the privacy protocol used by the SNMPv3 user shades.
- For Privacy Password, specify despassword.
- For Verify Password below Privacy Password, specify despassword.
- For OID, specify 1.3.6.1.4.1.546.1.1.1.8.0.
- Accept defaults for all other fields.
- 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.
Copyright © 2013 CA.
All rights reserved.
|
|