{"id":42,"date":"2015-10-21T19:06:25","date_gmt":"2015-10-21T19:06:25","guid":{"rendered":"http:\/\/www.iam8up.com\/?p=42"},"modified":"2023-01-16T17:56:24","modified_gmt":"2023-01-16T17:56:24","slug":"onboarding-with-snmp-via-bash","status":"publish","type":"post","link":"https:\/\/www.iam8up.com\/?p=42","title":{"rendered":"Onboarding with SNMP via BASH"},"content":{"rendered":"<p>With the release of cnMaestro you can now ditch the CNS server *AFTER* you&#8217;ve upgraded your radios to 2.5+ \u00a0The text files ap.txt and cpe.txt are simply one IP per line. \u00a0I got these from my network management software (a simple SQL query for all Cambium ePMP AP and Cambium ePMP CPE). \u00a0This was done in PC with:<\/p>\n<pre>SELECT e.DeviceType,\nINET_NTOA(e.IPAddress + a.StartAddress) AS 'IP Address' FROM Equipment e\nINNER JOIN Customer c ON c.CustomerID=e.EndUserID\nLEFT OUTER JOIN AddressRange a ON e.IPType = a.AddressRangeID\nWHERE e.Type LIKE '%Access Point%'\nAND e.DeviceType LIKE '%Cambium ePMP AP%'\nGROUP BY e.ID\nORDER BY c.CustomerID;<\/pre>\n<p>This simply requires SNMP access and snmputils to work.<\/p>\n<blockquote><p>#!\/bin\/bash<\/p>\n<p>community=CHANGETHISCOMMUNITYHERE<br \/>\nserver=https:\/\/cloud.cambiumnetworks.com<br \/>\ncambiumid=URCMPNYIDGOESHERE<br \/>\nonboardkey=048j03j03jf093jf0j309jf03jf<\/p>\n<p>#use this to identify your radio versions (it needs 2.5+)<br \/>\n#while read -r radioip; do<br \/>\n# echo &#8220;Querying&#8221; $radioip<br \/>\n# snmpget -v2c -c$community $radioip .1.3.6.1.4.1.17713.21.1.1.1.0<br \/>\n#done &lt; &#8220;ap.txt&#8221;<\/p>\n<p>#this is how you enable, set host\/cambiumid\/onboardkey, apply<br \/>\nwhile read -r radioip; do<br \/>\necho &#8220;Querying&#8221; $radioip<br \/>\nsnmpset -v2c -c$community $radioip .1.3.6.1.4.1.17713.21.3.20.1.0 i 1<br \/>\nsnmpset -v2c -c$community $radioip .1.3.6.1.4.1.17713.21.3.20.2.0 s $server<br \/>\nsnmpset -v2c -c$community $radioip .1.3.6.1.4.1.17713.21.3.20.3.0 s $cambiumid<br \/>\nsnmpset -v2c -c$community $radioip .1.3.6.1.4.1.17713.21.3.20.4.0 s $onboardkey<br \/>\nsnmpset -v2c -c$community $radioip .1.3.6.1.4.1.17713.21.4.4.0 i 1<br \/>\ndone &lt; &#8220;ap.txt&#8221; &gt;&gt; onboard.log<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>With the release of cnMaestro you can now ditch the CNS server *AFTER* you&#8217;ve upgraded your radios to 2.5+ \u00a0The text files ap.txt and cpe.txt are simply one IP per line. \u00a0I got these from my network management software (a simple SQL query for all Cambium ePMP AP and Cambium ePMP CPE). \u00a0This was done &hellip; <a href=\"https:\/\/www.iam8up.com\/?p=42\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Onboarding with SNMP via BASH&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-42","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.iam8up.com\/index.php?rest_route=\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iam8up.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iam8up.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iam8up.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iam8up.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=42"}],"version-history":[{"count":5,"href":"https:\/\/www.iam8up.com\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/www.iam8up.com\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/www.iam8up.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iam8up.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iam8up.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}