With the release of cnMaestro you can now ditch the CNS server *AFTER* you’ve upgraded your radios to 2.5+ The text files ap.txt and cpe.txt are simply one IP per line. I got these from my network management software (a simple SQL query for all Cambium ePMP AP and Cambium ePMP CPE). This was done in PC with:
SELECT e.DeviceType, INET_NTOA(e.IPAddress + a.StartAddress) AS 'IP Address' FROM Equipment e INNER JOIN Customer c ON c.CustomerID=e.EndUserID LEFT OUTER JOIN AddressRange a ON e.IPType = a.AddressRangeID WHERE e.Type LIKE '%Access Point%' AND e.DeviceType LIKE '%Cambium ePMP AP%' GROUP BY e.ID ORDER BY c.CustomerID;
This simply requires SNMP access and snmputils to work.
#!/bin/bash
community=CHANGETHISCOMMUNITYHERE
server=https://cloud.cambiumnetworks.com
cambiumid=URCMPNYIDGOESHERE
onboardkey=048j03j03jf093jf0j309jf03jf#use this to identify your radio versions (it needs 2.5+)
#while read -r radioip; do
# echo “Querying” $radioip
# snmpget -v2c -c$community $radioip .1.3.6.1.4.1.17713.21.1.1.1.0
#done < “ap.txt”#this is how you enable, set host/cambiumid/onboardkey, apply
while read -r radioip; do
echo “Querying” $radioip
snmpset -v2c -c$community $radioip .1.3.6.1.4.1.17713.21.3.20.1.0 i 1
snmpset -v2c -c$community $radioip .1.3.6.1.4.1.17713.21.3.20.2.0 s $server
snmpset -v2c -c$community $radioip .1.3.6.1.4.1.17713.21.3.20.3.0 s $cambiumid
snmpset -v2c -c$community $radioip .1.3.6.1.4.1.17713.21.3.20.4.0 s $onboardkey
snmpset -v2c -c$community $radioip .1.3.6.1.4.1.17713.21.4.4.0 i 1
done < “ap.txt” >> onboard.log