{"id":2563,"date":"2020-04-23T09:50:21","date_gmt":"2020-04-23T06:50:21","guid":{"rendered":"https:\/\/blog.3kgroup.ee:443\/?p=2563"},"modified":"2020-05-11T12:16:18","modified_gmt":"2020-05-11T09:16:18","slug":"ruckus-smartzone-snmp-2","status":"publish","type":"post","link":"https:\/\/blog.3kgroup.ee:443\/?p=2563&lang=en","title":{"rendered":"RUCKUS SMARTZONE SNMP"},"content":{"rendered":"\n<p> <br>First you need to start the SNMP agent in smartzone and set the community (password). <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"412\" src=\"https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-07-11-at-13.10.23-1024x412.png\" alt=\"\" class=\"wp-image-1275\" srcset=\"https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-07-11-at-13.10.23-1024x412.png 1024w, https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-07-11-at-13.10.23-300x121.png 300w, https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-07-11-at-13.10.23-768x309.png 768w, https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-07-11-at-13.10.23.png 1038w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now you need the <a href=\"https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Ruckus_SZ_5_1_0_Mib_20180726.zip\">MIB files<\/a> ja <a href=\"https:\/\/blog.3kgroup.ee:443\/tag\/snmp\/\">SNMP<\/a> OID documentation, wich is at the end of the post. Although today the ready-made SNMP tool is mostly used, this example is made under Linux to show the structure and performance of Smartzone MIB in more detail.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt-get install snmp\n#copy the ruckus mibid to the correct directory \ncp *.txt user@snmp.3kgroup.ee:\/usr\/share\/snmp\/mibs\n#check \/etc\/snmp\/snmp.conf file\n\nmibdirs +\/usr\/share\/snmp\/mibs\nmibdirs +\/usr\/share\/mibs\/ietf\nmibs\u00a0 +ALL\n\n#test the performance of the MIBs first \nsnmptranslate -m +RUCKUS-CTRL-MIB -IR -On\u00a0 ruckusCtrlApRadioApMac\n.1.3.6.1.4.1.25053.1.8.1.1.1.2.3.1.1\n#if the response is an OID numeric string, the system is OK \n\n#how to convert hex mac address to decimal \necho $1 |gawk 'BEGIN {FS=\":\"}{ printf(\"%d.%d.%d.%d.%d.%dn\",strtonum(\"0x\"$1 ),strtonum(\"0x\"$2),strtonum(\"0x\"$3),strtonum(\"0x\"$4),strtonum(\"0x\"$5),strtonum(\"0x\"$6))\u00a0 }'\n\n<div>#<span style=\"font-size: 1em;\">ask for AP radio channels that are currently in use <\/span><\/div>\n<strong>snmpwalk -m +RUCKUS-CTRL-MIB -v2c -Of\u00a0 -c 11111 192.168.1.251\u00a0 ruckusCtrlApRadioChannel.6.48.135.217.41.120.16\n <\/strong>.iso.org.dod.internet.private.enterprises.ruckusRootMIB.ruckusObjects.ruckusCTRL.ruckusCTRLWLANModule.ruckusCTRLWLANMIB.ruckusCTRLWLANObjects.ruckusCTRLWLANInfo.ruckusCTRLApRadioTable.ruckusCTRLApRadioEntry.ruckusCtrlApRadioChannel.'.0..)x'<strong>.16.0<\/strong> = Gauge32: <strong>8\u00a0\u00a0\/\/\u00a02.4\u00a0GHz<\/strong>\n .iso.org.dod.internet.private.enterprises.ruckusRootMIB.ruckusObjects.ruckusCTRL.ruckusCTRLWLANModule.ruckusCTRLWLANMIB.ruckusCTRLWLANObjects.ruckusCTRLWLANInfo.ruckusCTRLApRadioTable.ruckusCTRLApRadioEntry.ruckusCtrlApRadioChannel.'.0..)x'<strong>.16.1<\/strong> = Gauge32: <strong>132\u00a0\u00a0\/\/\u00a05\u00a0GHz<\/strong>\n\n\n<strong>snmpwalk -m +RUCKUS-CTRL-MIB -v2c -Of\u00a0 -c 11111 192.168.1.251 ruckusCtrlApNumAssocClients.6.240.62.144.27.79.96<\/strong>\n .iso.org.dod.internet.private.enterprises.ruckusRootMIB.ruckusObjects.ruckusCTRL.ruckusCTRLWLANModule.ruckusCTRLWLANMIB.ruckusCTRLWLANObjects.ruckusCTRLWLANInfo.ruckusCTRLApTable.ruckusCTRLApEntry.ruckusCtrlApNumAssocClients.'..>..O'.96 = INTEGER: 59\n\n \nIt is also important to check the login level, and by changing it, you can restart the SNMP service daemon. \n\n\n \n\n<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"372\" src=\"https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-07-18-at-17.41.34.png\" alt=\"\" class=\"wp-image-1312\" srcset=\"https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-07-18-at-17.41.34.png 721w, https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-07-18-at-17.41.34-300x155.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/figure>\n\n\n<a href=\"https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/SZ100VSZE-5.1-SNMPMIBReference-Rev-B-20190708.pdf\" class=\"pdfemb-viewer\" style=\"\" data-width=\"max\" data-height=\"max\" data-mobile-width=\"500\"  data-scrollbar=\"none\" data-download=\"on\" data-tracking=\"on\" data-newwindow=\"on\" data-pagetextbox=\"off\" data-scrolltotop=\"off\" data-startzoom=\"100\" data-startfpzoom=\"100\" data-toolbar=\"bottom\" data-toolbar-fixed=\"off\">SZ100VSZE-5.1-SNMPMIBReference-Rev-B-20190708<br\/><\/a>\n<p class=\"wp-block-pdfemb-pdf-embedder-viewer\"><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p> <br>The following is an example of Zabbix and Smartzone SNMP monitoring, where information is collected on the number of clients in each AP and on air occupancy at 2.4 and 5GHz. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"338\" src=\"https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-09-05-at-11.57.25-1024x338.png\" alt=\"\" class=\"wp-image-1428\" srcset=\"https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-09-05-at-11.57.25-1024x338.png 1024w, https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-09-05-at-11.57.25-300x99.png 300w, https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-09-05-at-11.57.25-768x254.png 768w, https:\/\/blog.3kgroup.ee:443\/wp-content\/uploads\/2019\/07\/Screen-Shot-2019-09-05-at-11.57.25.png 1262w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>First you need to start the SNMP agent in smartzone and set the community (password). Now you need the MIB files ja SNMP OID documentation, wich is at the end [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":1274,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[442],"tags":[275],"class_list":["post-2563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3k-support-services","tag-smartzone-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.3kgroup.ee:443\/index.php?rest_route=\/wp\/v2\/posts\/2563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.3kgroup.ee:443\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.3kgroup.ee:443\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.3kgroup.ee:443\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.3kgroup.ee:443\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2563"}],"version-history":[{"count":7,"href":"https:\/\/blog.3kgroup.ee:443\/index.php?rest_route=\/wp\/v2\/posts\/2563\/revisions"}],"predecessor-version":[{"id":2753,"href":"https:\/\/blog.3kgroup.ee:443\/index.php?rest_route=\/wp\/v2\/posts\/2563\/revisions\/2753"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.3kgroup.ee:443\/index.php?rest_route=\/wp\/v2\/media\/1274"}],"wp:attachment":[{"href":"https:\/\/blog.3kgroup.ee:443\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.3kgroup.ee:443\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.3kgroup.ee:443\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}