SNMP Guide
SNMP Guide
SNMP Guide
Table of Contents
SUPPORTED DEVICES ................................................................................................. 4
INTRODUCTION ............................................................................................................. 7
Agents .............................................................................................................................................. 8
SNMPv1 ......................................................................................................................................... 10
SNMPv2c ....................................................................................................................................... 10
SNMPv3 ......................................................................................................................................... 10
Get ................................................................................................................................................. 11
GetNext .......................................................................................................................................... 11
Set ................................................................................................................................................. 11
GetBulk .......................................................................................................................................... 11
Response ....................................................................................................................................... 11
Inform ............................................................................................................................................. 12
Traps .............................................................................................................................................. 12
GRP261X Example......................................................................................................................... 13
Page 2
SNMP Guide
Table of Figures
Table of tables
Table 1: Supported products .................................................................................................................... 4
Page 3
SNMP Guide
SUPPORTED DEVICES
Page 4
SNMP Guide
SUPPORTED SNMP VERSIONS
Page 5
SNMP Guide
SUPPORTED SNMP MESSAGES
GRP261x/GRP
Yes Yes Yes No Yes
2624/GRP2634
Page 6
SNMP Guide
INTRODUCTION
SNMP (Simple Network Management Protocol) is an Internet-standard protocol for managing devices on
IP networks. It is used mostly in network management systems to monitor network-attached devices for
conditions that warrant administrative attention. SNMP exposes management data in the form of variables
on the managed systems, which describe the system configuration. These variables can then be queried
(and sometimes set) by managing applications. The variables accessible via SNMP are organized in
Three significant versions of SNMP have been developed and deployed. SNMPv1 is the original version of
the protocol. More recent versions, SNMPv2c and SNMPv3, feature improvements in performance,
Page 7
SNMP Guide
SNMP COMPONENTS
Manager (NMS)
The Manager component is simply a piece of software that is installed on a machine (which when combined,
is called the Network Management System) that polls devices on your network however often you specify
for information.
The Manager has the correct credentials to access information stored by Agents (which is explained in the
next section) and then compiles them in a readable format for the Network Engineer or Administrator to
monitor or diagnose for problems or bottlenecks. Some NMS software suites are more complex than others,
allowing you to configure Email or SMS messages to alert you of malfunctioning devices on your network,
Agents
SNMP Agent is a piece of software that is bundled with the network device (router, switch, IP phone, server,
etc..) that, when enabled and configured, does all the Heavy work for the Manager, by compiling and storing
all the data from its given device into a database (MIB).
This database is properly structured to allow the Manager software to easily poll information and even send
In short, MIB files are the set of questions that a SNMP Manager can ask the agent. Agent collects these
data locally and stores it, as defined in the MIB. So, the SNMP Manager should be aware of these standard
Agents, as explained above, maintains an organized database of its devices parameters, settings, and
more. The NMS (Network Management system) polls/requests the Agent of a given device, which then
shares its organized information from the database it is made with the NMS, which then further translates
it into alerts, reports, graphs and more. The database that the Agent shares between the Agent is called
Page 8
SNMP Guide
Figure 1 : SNMP components
Page 9
SNMP Guide
SNMP VERSIONS
SNMPv1
Version 1 was the first version of the protocol defined in RFCs 1155 and 1157. This version is the simplest
of the 3 versions of the protocol, and the most insecure, due to its plain text authentication.
SNMPv2c
This is the revised protocol, which includes enhancements of SNMPv1 in the areas of protocol packet types,
transport mappings, MIB structure elements but using the existing SNMPv1 administration structure
("community based" and hence SNMPv2c). It is defined in RFC 1901, RFC 1905, RFC 1906, RFC 2578.
SNMPv3
Version 3 of the protocol has made greater strides to securing the protocol suite by implementing what is
called “user-based security”. This security feature allows you to set authentication based on the user
NoAuthNoPriv: Users who use this mode/level have No Authentication and No privacy when they
send/receive messages.
AuthNoPriv: This Level requires the user to Authenticate but will not Encrypt Sent/Received
Messages.
AuthPriv: Finally, the most secure level, where Authentication is Required and Sent/Received
P a g e 10
SNMP Guide
SNMP MESSAGES
Get
A Get message is sent by a manager to an agent to request the value of a specific OID. This request is
answered with a Response message that is sent back to the manager with the data.
GetNext
A GetNext message allows a manager to request the next sequential object in the MIB. This is a way that
you can traverse the structure of the MIB without worrying about what OIDs to query.
Set
A Set message is sent by a manager to an agent in order to change the value held by a variable on the
agent. This can be used to control configuration information or otherwise modify the state of remote hosts.
GetBulk
This manager to agent request functions as if multiple GetNext requests were made. The reply back to the
manager will contain as much data as possible (within the constraints set by the request) as the packet
allows.
Response
This message, sent by an agent, is used to send any requested information back to the manager. It serves
as both a transport for the data requested, as well as an acknowledgement of receipt of the request. If the
requested data cannot be returned, the response contains error fields that can be set with further
information. A response message must be returned for any of the above requests, as well as Inform
messages.
P a g e 11
SNMP Guide
Inform
To confirm the receipt of a trap, a manager sends an Inform message back to the agent. If the agent does
not receive this message, it may continue to resend the trap message.
Traps
The Trap messages are the main form of communication between an SNMP Agent and SNMP Manager.
They are used to inform an SNMP manager when a significant event occurs at the Agent level.
What makes the Trap unique from other messages is that they are triggered instantaneously by an agent,
rather than waiting for a status request from the SNMP Manager.
P a g e 12
SNMP Guide
GRANDSTREAM CLIENT CONFIGURATION EXAMPLES
GRP261X Example
3. Choose the Version and enter the Community string (Should be the same as set in the receiver
station).
4. Enter the IP address of the NMS (Monitoring station) in SNMP Trap IP field (in our example it is
192.168.5.106)
P a g e 13
SNMP Guide
The Table below is describing all the SNMP parameters available on the GRP261x:
Setting Description
Port SNMP port. The valid range is 161, 1025-65535. The default value is “161”.
Trap Version 1
Trap Version 3
Port of the SNMP trap receiver. The valid range is 162, 1025-65535. The
SNMP Trap Port
default value is “162”.
The interval between each trap sent to the trap receiver. The valid range is 1
SNMP Trap Interval
– 1440.The default value is “5”.
SNMP Trap Community string associated to the trap. It must match the community string
P a g e 14
SNMP Guide
authUser: Users with security level authNoPriv and context name as
auth.
privUser: Users with security level authPriv and context name as priv.
None
Authentication
MD5
Protocol
SHA
None
AES
as noAuth.
Trap Security Level authUser: Users with security level authNoPriv and context name as
auth.
privUser: Users with security level authPriv and context name as priv.
Protocol None
P a g e 15
SNMP Guide
MD5
SHA
None
AES
Trap Authentication
Enter the Trap Authentication Key
Key
GXW42XX Example
3. Choose the Version and enter the Community string (Should be the same as set in the receiver
station).
4. Enter the IP address of the NMS (Monitoring station) in SNMP Trap IP field (in our example it is
192.168.5.182)
P a g e 16
SNMP Guide
Figure 4 : GXW42XX SNMP Configuration
The Table below is describing all the SNMP parameters available on the GXW42xx series:
Table 5 : SNMP Parameters on GXW42xx
Setting Description
IP address of the SNMP trap receiver. Users can set up to 3 different servers
SNMP Trap IP to send SNMP trap to. The trap servers’ addresses should be separated by a
comma.
SNMP Trap Port Port of the SNMP trap receiver (Default 162).
P a g e 17
SNMP Guide
SNMP Trap version Version of SNMP Trap.
SNMP Trap Interval The interval between each trap sent to the trap receiver.
SNMPv1/v2c Trap Name of SNMPv1/v2c trap community. It must match the community string of
SNMPv3 Authentication
Select the Authentication Protocol: “None” or “MD5” or “SHA”.
Protocol
SNMPv3 Privacy Protocol Select the Privacy Protocol: “None” or “DES” or “AES”.
SNMPv3 Authentication
Enter the Authentication Key.
Key
P a g e 18
SNMP Guide
SNMPv3 Trap
Select the Authentication Protocol: “None” or “MD5” or “SHA”.
Authentication Protocol
SNMPv3 Trap
Enter the Trap Authentication Key
Authentication Key
P a g e 19
SNMP Guide
TESTING SNMP FEATURE
After configuring SNMP on client devices, you can test SNMP feature using your enterprise management
In this document we will be using “iReasoning MIB browser” which is a free and easy to use SNMP tester
You can follow the steps below in order to test SNMP Traps using iReasoning TRAP receiver:
4. Click on the “Trap receiver settings” menu as shown in the below screenshot
P a g e 20
SNMP Guide
Figure 6 : Trap Receiver Settings
5. Enter the Community password (It should be the same as set on the client device)
6. Enter the IP address and SNMP port for Trap receiving (162 is the default)
After configuring the parameters as shown above, you will start receiving traps at the interval set on the
client devices.
Below screenshot is an example of the Traps received from the GXW42XX device:
P a g e 21
SNMP Guide
PRODUCT MIB REFERENCE
To retrieve the MIB of a certain Grandstream product, please Submit a technical support ticket at
https://helpdesk.grandstream.com/
P a g e 22
SNMP Guide