Community discussions

MUM Europe 2020
 
WirelessRudy
Forum Guru
Forum Guru
Topic Author
Posts: 3089
Joined: Tue Aug 08, 2006 5:54 pm
Location: Spain

Need to export part of long list, how?

Tue Jan 20, 2015 1:31 pm

I have a long list of assigned IP address in dhcp server.
I only want to export and import in another router a part of them.
How to do this?

It seems the 'exp' command just prints (or creates a file) with all settings withing that sub-menu?

I am looking for something like:

ip dhcp-server lease
exp find [addresses=172.25.33.0/27]

Anybody any clues?
Show your appreciation of this post by giving me Karma! Thanks.

Rudy R. Puister

WISP operator based on MT routerboard & ROS.
 
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1065
Joined: Wed Feb 21, 2007 2:26 pm
Location: Tirane
Contact:

Re: Need to export part of long list, how?

Tue Jan 20, 2015 7:58 pm

try this
/ip dhcp-server lease
print file=test where address>172.25.33.0 and address<172.25.34.0
-Toni-
Don't crash the ambulance, whatever you do
 
WirelessRudy
Forum Guru
Forum Guru
Topic Author
Posts: 3089
Joined: Tue Aug 08, 2006 5:54 pm
Location: Spain

Re: Need to export part of long list, how?

Wed Jan 21, 2015 4:30 am

I need an export command, so I can import it in a new router.
and something with a network range, like 192.168.1.0/28

How can I use the print output that is dumped in a file? I can't use that file to import.

Anybody has other ideas?
Show your appreciation of this post by giving me Karma! Thanks.

Rudy R. Puister

WISP operator based on MT routerboard & ROS.

Who is online

Users browsing this forum: No registered users and 89 guests