SNMP Configuration on HP ProCurve Switches

In this article, I would like to share configuration of SNMP as part of Network management on HP Procurve Switches.

SNMP Configuration Steps on HP ProCurve 2512 Switch

Fig. HP ProCurve 2512 Switch

HP ProCurve 2512 Switch

Follow the commands illustrated below to enable SNMP on HP Procurve Switches.

HP ProCurve Switch 2512(config)# snmp-server
contact –  Name of the switch administrator.
location  – Description of the switch location.
community – Add/delete SNMP community.
host  – Define SNMP traps and their receivers.
enable – Enable/disable authentication traps to be sent when a
management station attempts an unauthorized access.

HP ProCurve Switch 2512(config)# snmp-server community
ASCII-STR Enter an ASCII string for the ‘community’
command/parameter.

HP ProCurve Switch 2512(config)# snmp-server community public
operator  – The community can access all except the CONFIG MIB.
manager – The community can access all MIB objects.
restricted  – MIB variables cannot be set, only read.
unrestricted – Any MIB variable that has read/write access can be set.

HP ProCurve Switch 2512(config)# snmp-server community public manager
restricted – MIB variables cannot be set, only read.
unrestricted – Any MIB variable that has read/write access can be set.

HP ProCurve Switch 2512(config)# snmp-server community public manager unrestricted
HP ProCurve Switch 2512(config)# snmp-server
contact Name of the switch administrator.
location Description of the switch location.
community Add/delete SNMP community.
host Define SNMP traps and their receivers.
enable Enable/disable authentication traps to be sent when a
management station attempts an unauthorized access.
HP ProCurve Switch 2512(config)# snmp-server enable traps
HP ProCurve Switch 2512(config)# exit
HP ProCurve Switch 2512# exit
HP ProCurve Switch 2512> exit
Do you want to log out [y/n]? y
Do you want to save current configuration [y/n]?y

To remove or disable SNMP configuration on HP ProCurve Switches, Just enter the above sequence with “no ” as precedence to every command.

 

Share/Bookmark

Filed Under: SNMP

Tags:

About the Author:

RSSComments (7)

Leave a Reply | Trackback URL

  1. lexapro says:

    You have really interesting blog, keep up posting such informative posts! and good to know about SNMP configuration on HP Devices.

  2. Daniel says:

    Thank you for your article! I really liked seen this.

  3. Mady says:

    Thanks for sharing this post about SNMP configuration on HP Procurve Switches.

  4. Peri says:

    Very informative post on SNMP configuration on HP procurve Switches, Thanks a lot!

  5. Glapion says:

    Great Article! I¡¯ve been searching for this tonight and so want to get an email or updates for this article. Keep in contact!

  6. James says:

    Thanks for a great blog post. I love the funny remarks.

  7. Tom says:

    Hi, This page did help me find the answer in the end, if your looking to disable SNMP, then here you need to use:
    #no snmp-server enable

    which should ensure that SNMP is turned off entirely:

    If you try to remove contact using:
    #no snmp-server contact “Name of admin”

    you will get an error:
    “invalid input: contact

    To check what commands you can run with “no”, use the tab on the keyboard, you’ll find commands are slightly different.
    Contact, Location and Mib do not show under the “no” command.

    Thanks!

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.