Zentyal Forum, Linux Small Business Server

Zentyal Server => Other modules => Topic started by: mushab.mmm@gmail.com on July 25, 2019, 07:36:53 am

Title: Adding IPaddress in object section
Post by: mushab.mmm@gmail.com on July 25, 2019, 07:36:53 am
Hi,

I want to add the IP Address via command line Instead of GUI.

IP address as in
Network -> Object.

Is there any possible way to do this without GUI.
Title: Re: Adding IPaddress in object section
Post by: doncamilo on July 25, 2019, 02:35:16 pm
Hi!
Zentyal manages network objects through the Ebox API. You can read the main part of this code here: https://github.com/zentyal/zentyal/blob/master/main/network/src/EBox/Objects/Members.pm
Why do you want to configure the ip ranges the programming way?
Zentyal loads his user defined configuration from a redis database, so you could study how the network objects configuration is stored on redis and to make an script able to introduce your data on redis.
Could be you'll find useful these commands:

Code: [Select]
#redis editable information
/usr/share/zentyal/redisvi network
#work with EBox API
/usr/share/zentyal/shell

However I've never tried this.
Please, if you try to do it, tell us about it. If you need some more help, please let me know, I think it's an interesting theme.
Cheers!