Hello, you have to make modifications to the file :

# nano /etc/config/openwisp

here is my configuration in exemple : 

GNU nano 2.7.5                                                             
File: /etc/config/openwisp

# For more information about these config options please see the README
# or https://github.com/openwisp/openwisp-config#configuration-options

config controller 'http'
        option url 'https://192.168.1.143'
        #option interval '120'
        option verify_ssl '0'
        #option shared_secret ''
        #option consistent_key '1'
        #option mac_interface 'eth0'
        #option merge_config '1'
        #option test_config '1'
        #option test_script '/usr/sbin/mytest'
        option uuid '3ef6c097c93c47ac87768c8487948108'
        option key 'VXeUq3X808vUSuCDWH59ugBZn3IWK81J'
        list unmanaged 'system.@led'
        list unmanaged 'network.loopback'
        list unmanaged 'network.@switch'
        list unmanaged 'network.@switch_vlan'
        # curl options
        #option connect_timeout '15'
        #option max_time '30'
        #option capath '/etc/ssl/certs'
        #option cacert '/etc/ssl/certs/ca-certificates.crt'
        # hooks
        #option pre_reload_hook '/usr/sbin/my_pre_reload_hook'

after that you can make this command 

    # openwisp-reload-config


if you do after that this command you should have this at screen 

 # logread | grep openwisp

Thu Mar 23 21:21:32 2017 daemon.info openwisp: OpenWISP config agent started
Thu Mar 23 21:21:32 2017 user.notice : openwisp: OpenWISP config agent 
started
Thu Mar 23 21:21:32 2017 daemon.info openwisp: Local configuration outdated
Thu Mar 23 21:21:32 2017 daemon.info openwisp: Downloading configuration 
from controller...
Thu Mar 23 21:21:32 2017 daemon.info openwisp: Configuration downloaded, 
now applying it...
Thu Mar 23 21:21:32 2017 daemon.info openwisp: The following uci configs 
have been renamed: dhcp.cfg02411c, dropbear.cfg024dd4, firewall.cfg1c92bd, 
firewall.cfg0c92bd, firewall.cfg02e63d, firewall.cfg18af89, 
firewall.cfg04dc81, firewall.cfg1692bd, firewall.cfg0e92bd, 
firewall.cfg1492bd, firewall.cfg1292bd, firewall.cfg06dc81, 
firewall.cfg08ad58, firewall.cfg0a92bd, firewall.cfg1a92bd, 
firewall.cfg1092bd, rpcd.cfg02f8be, system.system, ucitrack.cfg20822b, 
ucitrack.cfg1e0f89, ucitrack.cfg0aad04, ucitrack.cfgThu Mar 23 21:21:32 
2017 daemon.info openwisp: Service dhcp has been reloaded via procd/ubus
Thu Mar 23 21:21:32 2017 daemon.info openwisp: Service dropbear has been 
reloaded via procd/ubus
Thu Mar 23 21:21:32 2017 daemon.info openwisp: Service firewall has been 
reloaded via procd/ubus
Thu Mar 23 21:21:32 2017 daemon.info openwisp: Service network has been 
reloaded via procd/ubus
Thu Mar 23 21:21:32 2017 daemon.info openwisp: Service rpcd has been 
reloaded via init.d script
Thu Mar 23 21:21:32 2017 daemon.info openwisp: Service system has been 
reloaded via procd/ubus
Thu Mar 23 21:21:32 2017 daemon.info openwisp: Service ucitrack has been 
reloaded via procd/ubus
Thu Mar 23 21:21:37 2017 daemon.info openwisp: Testing configuration...
Thu Mar 23 21:21:37 2017 daemon.info openwisp: Configuration test succeded
Thu Mar 23 21:21:37 2017 daemon.info openwisp: Configuration applied 
succesfully





Le jeudi 23 mars 2017 21:49:44 UTC+1, henriqsc a écrit :
>
> Hello I've just installed th e client openwisp-config for openwisp2 on a 
> virtual machine with openwrt for test. I followed the instructions to 
> install the nossl version of the client, everything went ok until I tried 
> to start the client using "openwisp_config start" which returns me the 
> message "sh:bad number" and "openwisp: missing required --url option". I 
> checked \etc\config\openwisp and uncommented and set option url, interval 
> and shared secret but with no effect. I don't have the server installed yet 
> do I need it to run the client? If not why am I getting this message since 
> the url is already configured?
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to