Got it

SNMP configuration (2)

Latest reply: Aug 5, 2021 05:55:01 1017 21 18 0 0


Hello, everyone!



Today I will continue to show you the SNMP configuration. I will show SNMP messages – SNMP Get, SNMP Set and SNMP Trap messages. This is the second article about SNMP protocol.


SNMP packets are UDP packets, and this protocol defines two ports: 161 and 162. Port number 161 is used for sending and receiving SNMP packets of the SNMP manager. Port number 162 is used to send traps messages from the SNMP agent do SNMP manager and it is used to listen to these messages by the SNMP manager.



SNMP get messages


This type of message contains the next request messages:

  • Get – SNMP manager with this request message obtain one or more parameters from SNMP agent,

  • GetNext – SNMP manager with this request message obtain one or more subsequent  parameters from SNMP agent,

  • GetBulk – SNMP manager with this request message can set the number of GetNext operations to be included in one GetBulk operation. This message is not supported by SNMPv1.


In the figure 1, we can see these get messages.


SNMP


Fig. 2. SNMP get messages

(https://support.huawei.com/enterprise/en/doc/EDOC1100086963)



The next picture shows us the format of SNMPv1 and SNMPv2c get messages. I do not show you the format of SNMPv3, because I won't explain SNMPv2c configuration. After IP and UDP header, every packet has a version, community name and PDU (Protocol Data Unit).


3


Fig. 3.  Format of SNMPv1 and SNMPv2c get messages

(https://support.huawei.com/enterprise/en/doc/EDOC1100086963)



SNMP set message


SNMP set message is used by the SNMP manager to send set requests to an SNMP agent. After SNMP agent receives this message, it processes the request and sends a response message to the SNMP manager. SNMP managers can use these packets for configuration one or more parameters.


In the fig. 4, we can see these Get messages.


4


Fig. 4. SNMP set message

(https://support.huawei.com/enterprise/en/doc/EDOC1100086963)


The next picture shows us the format of SNMPv1 and SNMPv2c set messages. After IP and UDP header, every packet has a version, community name and PDU (Protocol Data Unit).


s


Fig. 5. Format of SNMPv1 and SNMPv2c set messages

(https://support.huawei.com/enterprise/en/doc/EDOC1100086963)


SNMP traps message


The SNMP agent does not send a request message to the SNMP manager. It only sends trap messages in case a problem occurs.


There are two types of SNMP traps:

  • Trap

  • Inform. This type of trap message is not supported by SNMPv1.


SNMP agent sends trap packet like alarm message, then, it sends information about alarm or event through an InformRequest message. And the end, SNMP manager has to need to replay with InformResponse message.


We can see these communications in the next figure. And the last figure (fig. 6), we can see the format of SNMPv2c trap or info message.


snmp 6


Fig. 6. SNMP traps message

(https://support.huawei.com/enterprise/en/doc/EDOC1100086963)




s


Fig. 7. Format of SNMPv2c trap or inform messages

(https://support.huawei.com/enterprise/en/doc/EDOC1100086963)



I will continue this article.




Thank you!



Reference:



The post is synchronized to: Author groupVlada85's Author Collection

Good share!
View more
  • x
  • convention:

andersoncf1
MVE Author Created Jul 14, 2021 13:00:48

Good sharing friend. Congrats
View more
  • x
  • convention:

ulrichwandja
ulrichwandja Created Jul 15, 2021 18:50:31 (0) (0)
 
Great share
View more
  • x
  • convention:

Thanks for sharing.
View more
  • x
  • convention:

Excellent
View more
  • x
  • convention:

Well done friend
View more
  • x
  • convention:

Thanks
View more
  • x
  • convention:

zaheernew
MVE Author Created Jul 15, 2021 03:50:49

SNMP configuration (2)-4034129-1
View more
  • x
  • convention:

Good
View more
  • x
  • convention:

123
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.