Koozali.org: home of the SME Server

Export/import Reserved names and ip-s

Offline stavi

  • 11
  • +0/-0
Export/import Reserved names and ip-s
« on: December 05, 2022, 11:52:13 AM »
Hello,
How can I export reserved host names, mac and ip addresses?
And then import it?
There are 150+ entries recorded as fixed IP.
It is possible?
I don't need a full USB backup. Only for reserved names.

Thank you very much.

Offline bunkobugsy

  • *
  • 278
  • +4/-0
Re: Export/import Reserved names and ip-s
« Reply #1 on: December 05, 2022, 12:49:10 PM »
They're in /home/e-smith/db/hosts

Offline ReetP

  • *
  • 3,730
  • +5/-0
Re: Export/import Reserved names and ip-s
« Reply #2 on: December 05, 2022, 04:16:09 PM »
There is no specific 'import' routine so be very careful.

There may well be other actions that run off 'host create' (ldap, groups etc etc) so that sticking them directly into the file may not work. Be VERY careful doing this.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline stavi

  • 11
  • +0/-0
Re: Export/import Reserved names and ip-s
« Reply #3 on: December 05, 2022, 04:49:00 PM »
many thanks for the quick response!

Offline stavi

  • 11
  • +0/-0
Re: Export/import Reserved names and ip-s
« Reply #4 on: December 05, 2022, 04:50:45 PM »
Thanks!
it will be due to new-fresh installation.
No other use, home server.
sandbox :)

Offline ReetP

  • *
  • 3,730
  • +5/-0
Re: Export/import Reserved names and ip-s
« Reply #5 on: December 05, 2022, 04:55:59 PM »
it will be due to new-fresh installation.

OK.

Quote
No other use, home server.

That doesn't change anything.

Quote
sandbox :)

A very good idea, but again, be extremely careful with hidden actions doing things you don't expect.

Might be worth looking at the backup and migrate scripts.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,760
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Export/import Reserved names and ip-s
« Reply #6 on: December 05, 2022, 10:53:09 PM »
look at lazy admin tools in wiki

Offline ReetP

  • *
  • 3,730
  • +5/-0
Re: Export/import Reserved names and ip-s
« Reply #7 on: December 05, 2022, 11:03:16 PM »
look at lazy admin tools in wiki

I always forget those :-)

Age. Brain fade.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation