Community discussions

MikroTik App
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Hotspot user configeration

Tue Aug 10, 2010 6:10 pm

how can I make a file of the hotspot users and profile setting. I don't want all the routerOS setting. This is useful if I want to move the same users to a new Mikrotik server
 
russk
just joined
Posts: 8
Joined: Tue Mar 09, 2010 3:24 am
Location: Houston, TX

Re: Hotspot user configeration

Tue Aug 10, 2010 6:31 pm

You can run the export command in the particular section you want to export. For example:
/ip hotspot user export file=users_and_profiles
That command would export /ip hotspot user and /ip hotspot user profile which is beneath /ip hotspot user. Give it a try. It will generate a file called "users_and_profiles.rsc" in this case.

Russell Kaiser
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Hotspot user configeration

Wed Aug 11, 2010 6:22 pm

You can run the export command in the particular section you want to export. For example:
/ip hotspot user export file=users_and_profiles
That command would export /ip hotspot user and /ip hotspot user profile which is beneath /ip hotspot user. Give it a try. It will generate a file called "users_and_profiles.rsc" in this case.

Russell Kaiser
what the command to import the files?
Is it "/ip hotspot user import file=users_and_profiles" ?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Hotspot user configeration

Wed Aug 11, 2010 6:36 pm

It's "/import file-name=whatever", it'll automatically put it in the right section. You can also just open the file in a text editor and copy and paste it in.

http://wiki.mikrotik.com/wiki/Manual:Co ... figuration
Importing Configuration

Command name: /import

The root level command /import [file_name] executes a script, stored in the specified file adds the configuration from the specified file to the existing setup.