Home menu level: /snmp community
Description
The community name is a value in SNMPv1 header. It is like a 'username' for connecting to the
SNMP agent. The default community for SNMP is public.
Property Description
name ( name ) - community name
address ( IP address/mask ; default: 0.0.0.0/0 ) - allow requests only from these addresses
• 0.0.0.0/0 - allow access for any address
read-access ( yes | no ; default: yes ) - whether the read access is enabled for the community
Example
To view existing communities:
[admin@MikroTik] snmp community> print
# NAME
ADDRESS
READ-ACCESS
0 public
0.0.0.0/0
yes
[admin@MikroTik] snmp community>
You can disable read access for the community public:
[admin@MikroTik] snmp community> set 0 read-access=no
[admin@MikroTik] snmp community> print
# NAME
ADDRESS
READ-ACCESS
0 public
0.0.0.0/0
no
[admin@MikroTik] snmp community>
To add the community called communa, that is only accessible from the 159.148.116.0/24
network:
[admin@MikroTik] snmp community> add name=communa address=159.148.116.0/24
[admin@MikroTik] snmp community> print
# NAME
ADDRESS
READ-ACCESS
0 public
0.0.0.0/0
no
1 communa
159.148.116.0/24
no
[admin@MikroTik] snmp community>
Available OIDs
Description
OID stands for an object identifier, which is a data type specifying an authoritatively named object.
An object identifier is a sequence of integers separated by decimal points. These integers traverse a
tree structure, similar to the DNS or a Unix filesystem. There is an unnamed root at the top of the
tree where the object identifiers start. All variables in the MIB start with the object identifier
1.3.6.1.2.1. Each node in the tree is also given a textual name. The names of the MIB variables are
the numeric object identifiers, all of which begin with 1.3.6.1.2.1. You can use the SNMP protocol
to get statistics from the router in these submenus:
•
/interface
Page 404 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.