Hi Federico 

Thanks for providing so details answer. Sure it will help me .

One more query -: *Can we register device only with MAC address information* 
? If we do device registration using HTTP resource , minimum information 
required is UUID and KEY or Shared_Secret . 

Client does want to share shared_secret due to security reason and  UUID & 
Key is generated by Openwisp itself .  Is there way we can generate UUID & 
Key using Device Mac Address ? 

Thanks for advance ! 

Regards
Amit 

On Wednesday, July 10, 2019 at 6:41:56 PM UTC+5:30, Federico Capoano wrote:
>
> There's no tool already made for this use case, but you could write a 
> script which reads the csv and for each row uses the device registration 
> HTTP resource of openwisp-controller to register the device using the 
> shared secret of the specific organization you want the device to register 
> to (or have the shared secret part of the csv if you want to register 
> devices for multiple organizations using this strategy).
>
> This is the shell code used by the openwisp-config deamon on OpenWRT to 
> register a device:
>
> https://github.com/openwisp/openwisp-config/blob/master/openwisp-config/files/openwisp.agent#L123-L221
> You can use this code as a guide for what you have to do in your script.
>
> I hope it helps.
> Federico
>
> On Wed, Jul 10, 2019 at 5:07 AM Amit Goyal <[email protected] 
> <javascript:>> wrote:
>
>> Hi , Can someone help here ? 
>>
>> On Friday, July 5, 2019 at 4:28:50 PM UTC+5:30, Amit Goyal wrote:
>>>
>>> Hi 
>>>
>>> I have requirement of registering AP in openwisp from backend. Client is 
>>> providing AP information like name , mac address etc in csv file .
>>> We have to get all information from csv file and need to register AP 
>>> using that information . 
>>> Is there any API or script exist in openwisp where we can pass these 
>>> information as arguments and register AP in openwisp.
>>>
>>> Regards
>>> Amit 
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web, visit 
>> https://groups.google.com/d/msgid/openwisp/7d5041cb-d141-46e2-b27f-23110b250a19%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/openwisp/7d5041cb-d141-46e2-b27f-23110b250a19%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/bedc0f80-1e46-44a7-912b-3bc18aead8d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to