Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Host Manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
network
Host Manager
Commits
d86384f8
Commit
d86384f8
authored
1 year ago
by
Anjan Chanda
Browse files
Options
Downloads
Patches
Plain Diff
update README
parent
4fc344ac
Branches
master
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+16
-11
16 additions, 11 deletions
README.md
with
16 additions
and
11 deletions
README.md
+
16
−
11
View file @
d86384f8
...
...
@@ -39,6 +39,7 @@ Sample '/etc/config/hosts' file -
config global
'global'
option enabled
'1'
option
history
'1'
option history_reboot_persistent
'1'
option history_file
'/etc/hosts_history.json'
option history_timeout
'604800'
...
...
@@ -54,6 +55,7 @@ Section | Name | Type | Required | Default | Description
global | - | - | - | - | - |
" |enabled | boolean | no | 1 | When set to 0, disables hostmngr. The daemon will however keep running, and can be re-enabled by setting to 1. |
" |history| boolean | no | 1 | When set to 0, disables history. |
" |history_reboot_persistent| boolean | no | 1 | When set to 0, history entries are not persisted across reboots. |
" |history_file | string | no | '/etc/hosts_history.json' | Specifies history file name. History records are stored in this file in JSON format. |
" |history_timeout | integer | no | 604800 | Specifies the duration in seconds a _non-live_ history record will be kept in history. |
interface | - | - | - | - | - |
...
...
@@ -81,26 +83,29 @@ root@eagle-44d43771baa0:~# ubus call hosts show
{
"hosts"
:
[
{
"macaddr
ess
"
:
"00:02:02:aa:bb:cc"
,
"macaddr"
:
"00:02:02:aa:bb:cc"
,
"hostname"
:
"acx-laptop"
,
"ipv4addr"
:
"192.168.1.160"
,
"active"
:
true
,
"active_last_change"
:
"2023-05-30T21:31:57"
,
"ipaddr"
:
"192.168.1.160"
,
"address_source"
:
"DHCP"
,
"lease_time_remaining"
: 3369,
"i
swifi"
:
false
,
"i
nterface_type"
:
"Ethernet"
,
"is1905"
:
false
,
"state"
:
"reachable"
,
"link_macaddr"
:
""
,
"ndm_state"
:
"reachable"
,
"num_tcp"
: 0,
"num_udp"
: 10,
"interface"
:
"eth3"
,
"active_connections"
: 10,
"device"
:
"eth3"
,
"network"
:
"lan"
,
"ipv4_address"
:
[
{
"ip"
:
"192.168.1.160"
}
"ip"
:
"192.168.1.160"
]
,
"ipv6_address"
:
[
]
,
"
wan_
stats"
:
{
"stats"
:
{
"tx_packets"
: 70,
"tx_bytes"
: 7323,
"rx_packets"
: 61,
...
...
@@ -119,13 +124,13 @@ root@eagle-44d43771baa0:~# ubus call hosts history
"history"
:
[
{
"idx"
: 4,
"macaddr
ess
"
:
"00:02:02:aa:bb:cc"
,
"macaddr"
:
"00:02:02:aa:bb:cc"
,
"hostname"
:
"acx-laptop"
,
"first_seen"
:
"2023-05-30T21:30:38"
,
"last_seen"
:
"2023-05-30T21:31:57"
,
"alive"
:
true
,
"iswifi"
:
false
,
"
wan_
stats"
:
{
"stats"
:
{
"tx_packets"
: 0,
"tx_bytes"
: 0,
"rx_packets"
: 0,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment