{"id":376,"date":"2014-05-26T21:46:27","date_gmt":"2014-05-26T21:46:27","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=376"},"modified":"2016-07-13T22:08:30","modified_gmt":"2016-07-13T22:08:30","slug":"setup-snmp-for-ubiquiti-radios","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/setup-snmp-for-ubiquiti-radios\/","title":{"rendered":"Setup SNMP for Ubiquiti Radios"},"content":{"rendered":"<p>First lets install SNMP.<\/p>\n<p>On Red Hat type systems such as Fedora and CentOS do the following<\/p>\n<pre>yum install -y net-snmp net-snmp-utils<\/pre>\n<p>If you are using a Debian based distro the you can use apt.<\/p>\n<pre>apt-get install snmp<\/pre>\n<p>You will need to make sure that SNMP is turned on in the radio under the Services tab.<br \/>\n<a href=\"http:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2014\/05\/Screen-Shot-2016-02-03-at-5.32.17-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1258 size-full\" src=\"http:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2014\/05\/Screen-Shot-2016-02-03-at-5.32.17-PM.png\" alt=\"\" width=\"422\" height=\"288\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2014\/05\/Screen-Shot-2016-02-03-at-5.32.17-PM.png 422w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2014\/05\/Screen-Shot-2016-02-03-at-5.32.17-PM-300x205.png 300w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/a><\/p>\n<p>Be sure to remember the SNMP Community string as that is needed in the next step.<\/p>\n<p>Now try to connect to the device with the following command.<\/p>\n<pre>snmpwalk -v1 -c comunityname 192.168.1.20<code><\/code><\/pre>\n<p>You should receive something like the following.<\/p>\n<pre>...\r\nIF-MIB::ifSpecific.5 = OID: SNMPv2-SMI::zeroDotZero\r\nSNMPv2-MIB::snmpInPkts.0 = Counter32: 484\r\nSNMPv2-MIB::snmpOutPkts.0 = Counter32: 471\r\nSNMPv2-MIB::snmpInBadVersions.0 = Counter32: 0\r\nSNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 12\r\nSNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0\r\n...<\/pre>\n<p>If you received<\/p>\n<pre>Timeout: No Response from 192.168.1.20<\/pre>\n<p>Then either the SNMP Community name is wrong or the ip address is unreachable.<\/p>\n<p>The following command will list all the interfaces on the device.<\/p>\n<pre>snmpwalk -v1 -c comunityname 192.168.1.20 ifDescr\r\nIF-MIB::ifDescr.1 = STRING: lo\r\nIF-MIB::ifDescr.2 = STRING: eth0\r\nIF-MIB::ifDescr.3 = STRING: eth1\r\nIF-MIB::ifDescr.4 = STRING: wifi0\r\nIF-MIB::ifDescr.5 = STRING: ath0\r\nIF-MIB::ifDescr.6 = STRING: br0\r\n<\/pre>\n<p>Notice the number at the end of the ifDescr, That number identifies the interface.\u00a0 You will need that for the next command.<\/p>\n<p>Now lets check the signal. Note that the last number of the OID(the OID is the last string of numbers) is the interface number of ath0.\u00a0 Yours could be different depending on how you have the radio setup.<\/p>\n<pre>snmpwalk -v1 -c communityname 192.168.1.20 1.3.6.1.4.1.14988.1.1.1.1.1.4.5<\/pre>\n<p>Here is a short list of OID&#8217;s.\u00a0 To use them just run the above command but replace the OID with the one you want.<\/p>\n<pre>RxRate of 5'th interface (ath0) of the device (bps): 1.3.6.1.4.1.14988.1.1.1.1.1.3.5\r\nTxRate of 5'th interface (ath0) of the device (bps): 1.3.6.1.4.1.14988.1.1.1.1.1.2.5\r\nChannel: 1.3.6.1.4.1.14988.1.1.1.1.1.7.5\r\nFirmware Version: 1.2.840.10036.3.1.2.1.4\r\nHostname: 1.3.6.1.4.1.14988.1.1.1.1.1.5\r\nAP MAC: 1.3.6.1.4.1.14988.1.1.1.1.1.6\r\nStation MAC: 1.2.840.10036.1.1.1.1\r\nSignal 1.3.6.1.4.1.41112.1.4.5.1.5.1 (OID seems to vary a little bit, from nanoBeam to nanoStation)\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First lets install SNMP. On Red Hat type systems such as Fedora and CentOS do the following yum install -y net-snmp net-snmp-utils If you are using a Debian based distro the you can use apt. apt-get install snmp You will &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/setup-snmp-for-ubiquiti-radios\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,3,130,129],"tags":[134,133,131,132],"class_list":["post-376","post","type-post","status-publish","format-standard","hentry","category-centos-linux","category-linux","category-snmp","category-ubiquiti","tag-monitoring","tag-snmp-2","tag-ubiquiti-2","tag-ubnt"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=376"}],"version-history":[{"count":17,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/376\/revisions"}],"predecessor-version":[{"id":1330,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/376\/revisions\/1330"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}