Show hosts name in quotas

Suggest improvements and new features for Gargoyle.

Moderator: Moderators

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Show hosts name in quotas

Postby Tareq » Tue Dec 29, 2015 5:36 pm

Is there any way or additional code lines to show hosts name in quotas?

It would be useful.



Image
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Show hosts name in quotas

Postby Tareq » Sat Jan 09, 2016 4:20 am

No one answer :roll:
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Lantis
Moderator
Posts: 5211
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Show hosts name in quotas

Postby Lantis » Sat Jan 09, 2016 4:39 am

I'm sure there is a built in function if you check out the source code

Alternatively, write your own.
My approach would be to parse the ip's against the /etc/hosts file.

Have fun.
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases

nworbnhoj
Posts: 914
Joined: Mon Jul 21, 2014 10:08 am
Location: Australia
Contact:

Re: Show hosts name in quotas

Postby nworbnhoj » Sat Jan 09, 2016 5:05 am

This will probably seem a bit redundant once the known devices function is merged
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Show hosts name in quotas

Postby Tareq » Sat Jan 09, 2016 6:28 am

Sorry, and thank you all.
I don't know any thing about this programming language.

Just i ask if one programmers did that. I think that code must be in quota.js file.
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Show hostnames in quotas.sh

Postby Tareq » Tue Nov 20, 2018 4:40 am

Hi there,

I need to show every hostname beside of ip address in "quotas.sh".

Please help me to write script doing that in quotas.sh

Image
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Lantis
Moderator
Posts: 5211
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Show hosts name in quotas

Postby Lantis » Tue Nov 20, 2018 5:40 am

Merged with your original request for this 3 years ago.
And my answer still remains the same :)
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Show hosts name in quotas

Postby Tareq » Tue Nov 20, 2018 6:06 am

Lantis wrote:Merged with your original request for this 3 years ago.
And my answer still remains the same :)


But please I need the exact code that doing what I want, and where should put it.
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Tareq
Posts: 58
Joined: Mon Dec 14, 2015 6:56 am

Re: Show hosts name in quotas

Postby Tareq » Tue Nov 20, 2018 6:15 am

Lantis wrote:Merged with your original request for this 3 years ago.
And my answer still remains the same :)



How you got what i said before 3 years?, i don't remember. :D
TP-LINK WR841N. V8.4 | Gargoyle 1.9 | South Yemen

Lantis
Moderator
Posts: 5211
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Show hosts name in quotas

Postby Lantis » Tue Nov 20, 2018 6:23 am

I have a very good memory.

You said you were a vb.net programmer, but it looks like you haven't bothered to read the source code to even try? Why should i be inclined to help you?

The way i would approach it, is i would look at a page that already does this, and figure out how it does it.

An example would be the hosts.sh page.
Looking at the source, an iptohostname[] array is formed.
Looking at where that comes from, it is produced by gargoyle_header_footer with a particular option.
So now you know how to get the iptohostname array to come up in quotas.sh.
Now you just need to write some code to replace the IP addresses with the hostnames, which should be very simple as the IP addresses are the keys to the array.
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases


Return to “Feature Requests”

Who is online

Users browsing this forum: No registered users and 3 guests