Please answer three questions

61 views
Skip to first unread message

김혜진

unread,
Sep 25, 2024, 10:38:31 PM9/25/24
to OpenWISP

Hello,

Since this is my first time asking a question, I don't know if this is the right way to ask it, but I'll tell you first.

I am trying to use OpenWISP and I have a few questions. I would appreciate it if you could answer them.

Currently, I have installed OpenWISP and listed my OpenWRT hardware device. Here are my questions:

Q1. The status of the device is showing as "unknown." I understand this means it is a recently registered device. However, even after a few days, the status does not change to "OK" or "Critical." Is there anything I need to do to change the status to "OK"? Please let me know in detail.

Q2. As you know, OpenWRT has configuration files such as /etc/config/network and /etc/config/wireless. Is there a way to read the default values of these config files from OpenWISP? I noticed that when adding templates, they are all empty by default, and only the contents of the added config templates are shown in the "Preview configuration." I am looking for a way to check the default values or the entire contents of the config files, similar to the output of "cat /etc/config/network." In short, how can I view the values stored in LuCI or the contents of /etc/config?

Q3. Could you please explain how to check the version information and update it?

I apologize for the length of my message and for any basic questions I might have asked. I would be very grateful for your responses.

I look forward to hearing from you. Thank you!

Federico Capoano

unread,
Sep 27, 2024, 3:17:56 PM9/27/24
to open...@googlegroups.com
Hi and welcome!
See my answers below.

On Wed, 25 Sept 2024 at 22:38, 김혜진 <yks...@naver.com> wrote:
... 

Q1. The status of the device is showing as "unknown." I understand this means it is a recently registered device. However, even after a few days, the status does not change to "OK" or "Critical." Is there anything I need to do to change the status to "OK"? Please let me know in detail.

It's all explained in Setting up the management VPN documentation page, please read carefully.
If something is still not clear after reading that page, please let us know.

Q2. As you know, OpenWRT has configuration files such as /etc/config/network and /etc/config/wireless. Is there a way to read the default values of these config files from OpenWISP? I noticed that when adding templates, they are all empty by default, and only the contents of the added config templates are shown in the "Preview configuration." I am looking for a way to check the default values or the entire contents of the config files, similar to the output of "cat /etc/config/network." In short, how can I view the values stored in LuCI or the contents of /etc/config?

At the moment OpenWISP won't receive the configuration stored in the device.
We started doing some work on that a while ago but concluded that the resources and amount of work needed to get that right are significant and we opted for a more lightweight implementation that allowed us to do what we needed in a reasonable timeframe.

The configuration from OpenWISP is merged with the local configuration, it's up to you to define the templates that play well with your firmware.

Q3. Could you please explain how to check the version information and update it?

In the development version there's a system info page.
In the old 22.05 release you'll need to do something like:

cd /opt/openwisp2
source env/bin/activate
pip freeze | grep openwisp

I hope this helps. 

Best regards
Federico Capoano
Reply all
Reply to author
Forward
Message has been deleted
0 new messages