Table des matières

Enable SNMP on HP Switches

Enable SNMP on HP-2500+ Switches

This tutorial also works on switches 3500,3800 Connect to the console or ssh with administrative rights and go to configuration with the following command:

copy
configure terminal

To configure your SNMP community, use this command (replace “<votre communauté>“with the command of your choice).

copy
snmp-server community "<votre communauté>" Operator

You can then specify location and contact information using these commands:

copy
snmp-server contact "support"
snmp-server location "rack de devellopement"

And that's it, SNMP maintenance is enabled. You can apply the pattern “default_snmp_hp_switch” or default_gesa_snmp_hp_switch”.

Enabling SNMP on HP-1910 switches

Go to the switch's web interface by typing its IP in the URL. Go to the menu « (1)Device ⇒ (2)SNMP ».

You will arrive on the tab « (3)Setup » :

HP-1910 - Enable SNMP

Check the box « Enable »box, fill in the « Contact » and « Location ». Tick the SNMP versions you wish to activate.

Then click on « Apply ».

In the « View » :

HP-1910 - Configuration View

Here you can create views, which are sets of rules for including or excluding MIB elements in our supervision via their OID. The « ViewDefault » view includes OID 1, i.e. all the elements of this MIB (since it is a hierarchical system) except for the 3 excluded OIDs.

For this tutorial, we are going to use this « ViewDefault ». You can therefore go directly to « Ajouter une communauté SNMP ».

Add an SNMP community (SNMP v1/v2c)

In the « Community » :

HP-1910 - Add a community

Click on « Add ». New fields will appear:

HP-1910 - Configuring a community

Then click on « Apply ».

That's it, SNMP is now configured for versions v1 and v2c.

Don't forget to click on « Save » at the top right. Otherwise your configuration will be lost when the switch is rebooted.

HP-1910 - Save configuration

For more details: </ignore> HP Support - See the tutorial on configuring SNMP v1/v2c.

If you wish to configure SNMP v3

It is not necessary to use SNMP v3 with ESIA. However, if you do want to enable it, you should know that in ESIA you can only configure your nodes for SNMP v3 by adding them manually (See Adding nodes manually). Via a network scan, you can only configure in v1 or v2c.

In the « Group » :

HP-1910 - Add a group

Click on « Add ». New fields appear:

HP-1910 - Configuring a group

Then click on « Apply ».

In the tab « User » :

HP-1910 - Add a user

Click on « Add ». New fields appear:

HP-1910 - Configuring the user

Then click on « Apply ».

That's it, SNMP is now configured for version v3.

Don't forget to click on « Save » at the top right. Otherwise your configuration will be lost when the switch is rebooted.

HP-1910 - Save configuration

More information

</ignore> HP Support - See the SNMP v3 configuration tutorial.

For more information on HP-1910 Switches : </ignore> See HP-1910 support.