SNMP¶
Simple Network Management Protocol (SNMP) is a protocol used to manage performance and monitor network statistics. An SNMP network consists of devices, agents, and network managers. Information in SNMP is contained in Management Information Bases (MIBs) that consist of datapoints structured according to the Structure of Management Information (SMI).
To inspect the content of different MIBs various databases may be of assistance, for example MIB Browser.
Simple Network Management Protocol¶
Simple Network Management Protocol is a protocol that is used to manage performance and monitor network statistics. Below is a list of some of the different tools that can be used on an SNMP-client to poll the different SNMP OIDs from an SNMP Agent:
| Command | Explanation |
|---|---|
| snmptable | Show router's information |
| snmpdelta | Monitor specified OIDs |
| snmpget | Get records from MIB |
| snmpset | Change information on host |
| snmpwalk | Runs multiple GETNEXT requests |
VyOS Agent¶
VyOS features an integrated SNMP agent that can be used to support SNMP collection from a manager. To access a full specification of how to configure the agent, see VyOS Documentation
Below are some useful commands that can be used to get started:
| Command | Explanation |
|---|---|
| set service snmp community COMMUNITY-NAME authorization [ro/rw] | Set the community for the SNMP agent, essentially activating the SNMP server. Set read-only or read-write permissions. |
| set service snmp community COMMUNITY-NAME network X.X.X.X/Y | Set a network range that is permitted to communicate to the SNMP-server. |
| set service snmp community COMMUNITY-NAME client X.X.X.X | Set a host addreses that is allowed to communicate to the SNMP-server. |