ADC

Configuring NetScaler for SNMP v1 and v2 queries

You can query the NetScaler SNMP agent for system-specific information from a remote device called SNMP managers. The agent then searches the management information base (MIB) for the data requested and sends the data to the SNMP manager.

The following types of SNMP v1 and v2 queries are supported by the SNMP agent:

  • GET
  • GET NEXT
  • ALL
  • GET BULK

You can create strings called community strings and associate each of these to query types. You can associate one or more community strings to each query type. Community string are passwords and used to authenticate SNMP queries from SNMP managers.

For example, if you associate two community strings, such as abc and bcd, to the query type GET NEXT, the SNMP agent on the NetScaler appliance considers only those GET NEXT SNMP query packets that contain abc or bcd as the community string.

Specifying an SNMP manager

You must configure the NetScaler appliance to allow the appropriate SNMP managers to query it. You must also provide the SNMP manager with the required NetScaler-specific information. You can add up to a maximum of 100 SNMP managers or networks.

For an IPv4 SNMP manager you can specify a host name instead of the manager’s IP address. If you do so, you must add a DNS name server that resolves the host name of the SNMP manager to its IP address. You can add up to a maximum of five host-name based SNMP managers.

Note:

The appliance does not support use of host names for SNMP managers that have IPv6 addresses. You must specify the IPv6 address.

If you do not configure at least one SNMP manager, the appliance accepts and responds to SNMP queries from all IP addresses on the network. If you configure one or more SNMP managers, the appliance accepts and responds only to SNMP queries from those specific IP addresses.

If you remove an SNMP manager from the configuration, that manager can no longer query the appliance.

To add SNMP managers by specifying IP addresses by using the command line interface

At the command prompt, type the following commands to set the parameters and verify the configuration:

  • add snmp manager <IPAddress> ... [-netmask <netmask>]
  • show snmp manager

Example

> add snmp manager 10.102.29.10 10.102.29.15 10.102.29.30

To add an SNMP manager by specifying its host name by using the command line interface

Important: If you specify the SNMP manager’s host name instead of its IP address, you must configure a DNS name server to resolve the host name to the SNMP manager’s IP address. For more information, see “Adding a Name Server.”

At the command prompt, type the following commands to set the parameters and verify the configuration:

  • add snmp manager <IPAddress> [-domainResolveRetry ****<integer>]
  • show snmp manager

Example

add nameserver 10.103.128.15 add snmp manager engwiki.eng.example.net –domainResolveRetry 10

To add an SNMP manager by using the GUI

  1. Navigate to System > SNMP > Managers, and create the SNMP manager.

    Important:

    If you specify the SNMP manager’s host name instead of its IPv4 address, you must configure a DNS name server to resolve the host name to the SNMP manager’s IP address.

Note:

The appliance does not support host names for SNMP managers that have IPv6 addresses.

Specifying an SNMP community

You can create strings called community strings and associate them with the following SNMP query types on the appliance:

  • GET
  • GET NEXT
  • ALL
  • GET BULK

You can associate one or more community strings to each query types. For example, when you associate two community strings, such as abc and bcd, to the query type GET NEXT, the SNMP agent on the appliance considers only those GET NEXT SNMP query packets that contain abc or bcd as the community string.

If you do not associate any community string to a query type then the SNMP agent responds to all SNMP queries of that type.

To specify an SNMP community by using the command line interface

At the command prompt, type the following commands to set the parameters and verify the configuration:

  • add snmp community <communityName> <permissions>
  • show snmp community

Example

> add snmp community com all

To configure an SNMP community string by using the GUI

Navigate to System > SNMP > Community, and create the SNMP community.

Configuring NetScaler for SNMP v1 and v2 queries