cnPilot and on-premise cnmaestro - onboarding not working

Hi

I recently purchased 2 cnPilot R201 for testing purposes. We are planning on purchasing another 200 units if we can get this working. So far im quite disappointed. Having followed various guides for setting up DHCP option 43 and 60 i still havent managed to get this working. If i set my local cnmaestro url manually in the R201 it works perfectly, DHCP fails miserably. Im hoping someone can shed some light on what im doing wrong here. 

Product Name
cnPilot R201  
Internet(WAN) MAC Address
00:04:56:xxx:xx:xx
PC(LAN) MAC Address
00:04:56:xx:xx:xx 
Hardware Version
V2.1 
Loader Version
V3.30(Oct 28 2016 10:07:04) 
Firmware Version
4.3.1-R1(201612201721) 
Device-Agent Version
2.66 
 
______________________________________
DHCP setup on win server 2011:
 
Dhcp Server \\mysrv.domain.local Scope 192.168.1.0 set optionvalue 43 STRING vendor="Cambium" "192.168.1.249"
Dhcp Server \\mysrv.domain.local Scope 192.168.1.0 set optionvalue 60 STRING vendor="Cambium" ""Cambium-cnPilot R201""
 
_____________________________________
R201 log:
<Thu Apr 27 10:39:39 2017> ipphone[21506]: ***system booting***
<Thu Apr 27 10:39:39 2017> ipphone[21506]: SW:142(120106174008)
<Thu Apr 27 10:39:40 2017> ipphone[21513]: Invalid HW to PortGroup
<Thu Apr 27 10:39:40 2017> ipphone[21524]: [27][0][350@-19,440@-19;30(*/0/1+2)]
<Thu Apr 27 10:39:41 2017> ipphone[21524]: [27][2][440@-19,480@-19;*(2/4/1+2)]
<Thu Apr 27 10:39:41 2017> ipphone[21524]: [27][1][480@-19,620@-19;30(.5/.5/1+2)]
<Thu Apr 27 10:39:41 2017> ipphone[21524]: [27][3][480@-19,620@-19;*(.25/.25/1+2)]
<Thu Apr 27 10:39:41 2017> ipphone[21524]: [27][4][440@-19;*(.3/10/1)]
<Thu Apr 27 10:39:41 2017> ipphone[21524]: UISignalControl[30][9000][30][9000][9000]
<Thu Apr 27 10:39:41 2017> ipphone[21481]: Wan If eth2.1 ip Change :0.0.0.0 -> 192.168.1.84
<Thu Apr 27 10:39:41 2017> ipphone[21506]: Local SIP Addr:192.168.1.84
<Thu Apr 27 10:39:41 2017> ipphone[21506]: Start Init Sip Stack...
<Thu Apr 27 10:39:41 2017> ipphone[21506]: InitializeSIPStack channel=0 UdpAddresses=192.168.1.84
<Thu Apr 27 10:39:41 2017> ipphone[21506]: InitializeSIPStack channel=0 TcpAddresses=192.168.1.84
<Thu Apr 27 10:39:41 2017> ipphone[21506]: InitializeSIPStack channel=0 UdpAddresses=192.168.1.84
<Thu Apr 27 10:39:41 2017> ipphone[21506]: InitializeSIPStack channel=0 TcpAddresses=192.168.1.84
<Thu Apr 27 10:39:41 2017> ipphone[21506]: Start all Register client c=7000, l=255
<Thu Apr 27 10:39:41 2017> ipphone[21506]: SIP all register client init
<Thu Apr 27 10:39:41 2017> ipphone[21506]: GvSipRegClientInitAllChannel, stop timer TIM_SIP_REFRESH_...
<Thu Apr 27 10:39:41 2017> ipphone[21506]: GvSipRegClientInitAllChannel, stop timer TIM_SIP_REFRESH_...
<Thu Apr 27 10:39:41 2017> ipphone[21506]: SIP0(Disable) Contact:192.168.1.84:5060
<Thu Apr 27 10:39:41 2017> ipphone[21506]: SIP1(Disable) Contact:192.168.1.84:5061
<Thu Apr 27 10:39:41 2017> ipphone[21506]: Init Sip Stack Success
<Thu Apr 27 10:39:41 2017> ipphone[21505]: MiscellaneousTask: start work param_count=0,single_param_...
<Thu Apr 27 10:39:41 2017> ipphone[21505]: CMD>ralink_init renew 2860 /tmp/tempparam.dUZdnd
<Thu Apr 27 10:39:42 2017> ipphone[21481]: TZ change to GMT6
<Thu Apr 27 10:39:42 2017> ipphone[21504]: Start Register Client ...
<Thu Apr 27 10:39:47 2017> DEV_MANAGER[21535]: platform_start_pmac_listener: Start listening for pma...
<Thu Apr 27 10:39:47 2017> DEV_MANAGER[21535]: platform_set_cns_connection_state: New Connection sta...
<Thu Apr 27 10:39:47 2017> DEV_MANAGER[21573]: Received event = systemup in system_up_call_back
<Thu Apr 27 10:39:47 2017> looptask[21579]: start
<Thu Apr 27 10:39:48 2017> DEV_MANAGER[21535]: start_device_agent: Device mode []
<Thu Apr 27 10:39:48 2017> DEV_MANAGER[21535]: Initializing da.state to [0]
<Thu Apr 27 10:39:48 2017> DEV_MANAGER[21535]: Device-agent started (0)
<Thu Apr 27 10:39:48 2017> DEV_MANAGER[21535]: Previous state 0 new state 0
<Thu Apr 27 10:39:48 2017> DEV_MANAGER[21535]: da_enter_state:DA_STATE_IDLE
<Thu Apr 27 10:39:48 2017> DEV_MANAGER[21535]: started discover timer, idle_timeout = 5
<Thu Apr 27 10:39:48 2017> DEV_MANAGER[21535]: Attempting (re)connection in 5 seconds
<Thu Apr 27 10:39:48 2017> DEV_MANAGER[21535]: platform_set_cns_connection_state: New Connection sta...
<Thu Apr 27 10:39:48 2017> DEV_MANAGER[21535]: platform_set_cns_connection_state: idle_timeout=5
<Thu Apr 27 10:39:48 2017> goahead[21576]: webs start...
<Thu Apr 27 10:39:49 2017> goahead[21576]: webs: Listening for HTTP requests at address 192.168.11.1...
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: Previous state 0 new state 1
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: da_enter_state:DA_STATE_DISCOVERY
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: No Static URL configured
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: No dhcp 43 option configured
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: Try DHCP Option 15 DomainName
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: No DHCP Option 15 DomainName found
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: discover_cns: method 4 cns_url [cloud.cambiumnetworks...
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: dev_type [C3VoIP] sw_vers [4.3.1-R1] user_agent [cnDA...
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: build_http_get_request: cns_url [cloud.cambiumnetwork...
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: build_http_get_request: No cambium_id available
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: Enter platform_get_deviceId_cookie
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: Not able to find [ device_id ] in keystore
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: IPv4 address: 50.19.62.230 (50.19.62.230)
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: platform_set_cns_connection_state: New Connection sta...
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: platform_set_cns_connection_state: idle_timeout=5
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: Open connection ok
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: TCP connection is successful
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: Create SSL context, ca certs path is /etc_ro/cacerts/...
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: Openssl connection to cloud.cambiumnetworks.com : 443...
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: SSL_ERROR_WANT_READ try again
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: Server cert validation is enabled
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: https server 'cloud.cambiumnetworks.com' has this cer...
<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: SSL_ERROR_WANT_READ try again
<Thu Apr 27 10:39:55 2017> DEV_MANAGER[21535]: SSL_connect successful
<Thu Apr 27 10:39:55 2017> DEV_MANAGER[21535]: Server certificate is verified and it is valid
<Thu Apr 27 10:39:55 2017> DEV_MANAGER[21535]: SSL write 178 bytes
<Thu Apr 27 10:39:57 2017> goahead[21576]: User:admin Web Login. IP:192.168.1.82
<Thu Apr 27 10:39:58 2017> DEV_MANAGER[21535]: Wait for headers from router,max_tries =0
<Thu Apr 27 10:39:58 2017> DEV_MANAGER[21535]: Received 286 bytes
<Thu Apr 27 10:39:58 2017> DEV_MANAGER[21535]: Found end of http headers
<Thu Apr 27 10:39:58 2017> DEV_MANAGER[21535]: HTTP content-length is 70
<Thu Apr 27 10:39:58 2017> DEV_MANAGER[21535]: Received error message: [Device Not Claimed] from cn...
<Thu Apr 27 10:39:58 2017> DEV_MANAGER[21535]: platform_set_cns_connection_state: New Connection sta...
<Thu Apr 27 10:39:58 2017> DEV_MANAGER[21535]: Response json is {"error":{"level":"error","message":...
<Thu Apr 27 10:39:58 2017> DEV_MANAGER[21535]: Sending pmac discover, device smac 00-04-56-06-EB-81
<Thu Apr 27 10:39:58 2017> DEV_MANAGER[21535]: Not able to find cnMaestro, Try Discovering again
<Thu Apr 27 10:39:58 2017> DEV_MANAGER[21535]: Fast rediscover: idle_timeout 67
<Thu Apr 27 10:39:58 2017> DEV_MANAGER[21535]: Discovery of cnMaestro Failed
<Thu Apr 27 10:39:58 2017> DEV_MANAGER[21535]: Unable to discover cnMaestro URL (re-discover in 67 s...
 
 
Please note "<Thu Apr 27 10:39:54 2017> DEV_MANAGER[21535]: No dhcp 43 option configured"
____________________________________________________________
According to wireshark the R201 DOES IN FACT receive option 43+60.
 
212600 9261.558351 192.168.1.7 255.255.255.255 DHCP 386 DHCP Offer    - Transaction ID 0x3eb26329
Frame 212600: 386 bytes on wire (3088 bits), 386 bytes captured (3088 bits) on interface 0
Ethernet II, Src: Dell_14:17:14 (78:2b:cb:14:17:14), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol Version 4, Src: 192.168.1.7, Dst: 255.255.255.255
User Datagram Protocol, Src Port: 67, Dst Port: 68
Bootstrap Protocol (Offer)
Message type: Boot Reply (2)
Hardware type: Ethernet (0x01)
Hardware address length: 6
Hops: 0
Transaction ID: 0x3eb26329
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
Client IP address: 0.0.0.0
Your (client) IP address: 192.168.1.84
Next server IP address: 192.168.1.7
Relay agent IP address: 0.0.0.0
Client MAC address: CambiumN_xx:xx:xx (00:04:56:xx:xx:xx)
Client hardware address padding: 00000000000000000000
Server host name not given
Boot file name not given
Magic cookie: DHCP
Option: (53) DHCP Message Type (Offer)
Length: 1
DHCP: Offer (2)
Option: (1) Subnet Mask
Length: 4
Subnet Mask: 255.255.255.0
Option: (58) Renewal Time Value
Length: 4
Renewal Time Value: (86400s) 1 day
Option: (59) Rebinding Time Value
Length: 4
Rebinding Time Value: (151200s) 1 day, 18 hours
Option: (51) IP Address Lease Time
Length: 4
IP Address Lease Time: (172800s) 2 days
Option: (54) DHCP Server Identifier
Length: 4
DHCP Server Identifier: 192.168.1.7
Option: (3) Router
Length: 4
Router: 192.168.1.1
Option: (6) Domain Name Server
Length: 4
Domain Name Server: 192.168.1.7
Option: (15) Domain Name
Length: 13
Domain Name: domain.local
Option: (43) Vendor-Specific Information
Length: 41
Value: 2b0e3139322e3136382e312e323439003c172243616d6269...
Option: (255) End
Option End: 255
 
________________________________________
What am i doing wrong here?
 
Like i said... the server is reachable as i can set the server URL statically and it works. I want it to work with option 43 tho. 
 

I understand that you are facing this issue. Device onboarding  using with DHCP option 60/43 is broken current release image(4.3.1-R1).

This issue is fixed in upcoming release(4.3.2-R2). Please let me  know if you need  the  verified test image for this issue.

Ah i see....that explains the troubles ive had hehe:)

Possible to get a copy of the test image so we can try it out?

When is release date? 

This might just ruin it for us. We planned on deploying about 50 unites in 2 weeks.

Oh and also....what is the best way to upgrade that many units without opening every single box and manually upgrading each one? Its my understanding that you need a fairly updated firmware for on-premise cnmaestro to work. 

A dhcp option for tftp?

Please provide your email id to send the test image.  We have planned to release a new image  after two-three weeks.

      You can use DHCP options 66 to upgrade image. Please refer below  KB for more details.

    http://community.cambiumnetworks.com/t5/cnPilot-R-series-R201-R201P/Auto-Firmware-update-of-cnPilot-R200-R201-Family-Devices-using/td-p/63625

teknisk@gignetworks.no works:)
Thank you!

Hi. I didnt receive an image yet. We are currently running tests and would appricate an image as soon as possible. 

Hi

I have sent the test image for this issue.

Regards

Niraj

Hi

Still cant get it to work. 

Hardware Version
V2.1 
Loader Version
V3.31(Feb 16 2017 15:40:32) 
Firmware Version
4.3.2-R2(201704141152) 
Device-Agent Version
2.66 
 
 
DHCP ACK:
Frame 136603: 392 bytes on wire (3136 bits), 392 bytes captured (3136 bits) on interface 0
Ethernet II, Src: Dell_14:17:14 (78:2b:cb:14:17:14), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol Version 4, Src: 192.168.1.7, Dst: 255.255.255.255
User Datagram Protocol, Src Port: 67, Dst Port: 68
Bootstrap Protocol (ACK)
Message type: Boot Reply (2)
Hardware type: Ethernet (0x01)
Hardware address length: 6
Hops: 0
Transaction ID: 0x4244ba28
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
Client IP address: 0.0.0.0
Your (client) IP address: 192.168.1.84
Next server IP address: 0.0.0.0
Relay agent IP address: 0.0.0.0
Client MAC address: CambiumN_06:eb:81 (00:04:56:06:eb:81)
Client hardware address padding: 00000000000000000000
Server host name not given
Boot file name not given
Magic cookie: DHCP
Option: (53) DHCP Message Type (ACK)
Length: 1
DHCP: ACK (5)
Option: (58) Renewal Time Value
Length: 4
Renewal Time Value: (86400s) 1 day
Option: (59) Rebinding Time Value
Length: 4
Rebinding Time Value: (151200s) 1 day, 18 hours
Option: (51) IP Address Lease Time
Length: 4
IP Address Lease Time: (172800s) 2 days
Option: (54) DHCP Server Identifier
Length: 4
DHCP Server Identifier: 192.168.1.7
Option: (1) Subnet Mask
Length: 4
Subnet Mask: 255.255.255.0
Option: (3) Router
Length: 4
Router: 192.168.1.1
Option: (6) Domain Name Server
Length: 4
Domain Name Server: 192.168.1.7
Option: (15) Domain Name
Length: 13
Domain Name: domain.local
Option: (43) Vendor-Specific Information
Length: 47
Value: 2b1668747470733a2f2f3139322e3136382e312e32343900...
Option: (255) End
Option End: 255
 
See attachment
 
______________
 
Same response from cnpilot:
 
<Tue May 2 02:49:07 2017> DEV_MANAGER[17528]: da_enter_state:DA_STATE_DISCOVERY
<Tue May 2 02:49:07 2017> DEV_MANAGER[17528]: No Static URL configured
<Tue May 2 02:49:07 2017> DEV_MANAGER[17528]: No dhcp 43 option configured
<Tue May 2 02:49:07 2017> DEV_MANAGER[17528]: Try DHCP Option 15 DomainName
<Tue May 2 02:49:07 2017> DEV_MANAGER[17528]: No DHCP Option 15 DomainName found
<Tue May 2 02:49:07 2017> DEV_MANAGER[17528]: discover_cns: method 4 cns_url [cloud.cambiumnetworks...
 

Hi Pusur,

Option 43 is working fine with this build, we checked. Could be you are missing some config in your DHCP server.

If you are using linux based DHCP server, please check the screenshot attached of DHCP config with option 43.

In the attached config, "https://10.110.239.200" is our cnMaestro URL, you can replace it with your's.

Thanks,

Divakar

1 Like

Thank you! Works with linux server. Not sure why windows server failed. 

Looking forward to firmware release.