Export Subscribers to a file in CLI like in WBM or 8770

Post Reply
spoof54
Member
Posts: 1
Joined: 07 Jan 2021 05:05

Export Subscribers to a file in CLI like in WBM or 8770

Post by spoof54 »

Hello,

I wanted to know if there is a way to export a subscriber to a file (maybe csv) in CLI with user mtcl like the export function in WBM or 8770 ?

In mgr, the export function doesn't exist.

The idea is to make a backup of some subscribers before their deletion, and maybe import them (in mgr -nodico -X ?).

Thank you.

Regards

Steven
User avatar
frank
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 3169
Joined: 06 Jul 2004 00:18
Location: New York
Contact:

Re: Export Subscribers to a file in CLI like in WBM or 8770

Post by frank »

Just extensions, or full details ?
Code Free Or Die
User avatar
alex
Senior Member
Posts: 1458
Joined: 06 Jul 2004 07:27
Contact:

Re: Export Subscribers to a file in CLI like in WBM or 8770

Post by alex »

Just play with edsbr command. It's kind of interactive. Get help with "?".
To export all extensions do something like that (check all attributes with "? *")

Code: Select all

enter criteria or command:clear
enter criteria or command:dir
enter criteria or command:name
enter criteria or command:act
enter criteria or command:cpl
enter criteria or command:pos
enter criteria or command:typ
enter criteria or command:pna
enter criteria or command:fc
enter criteria or command:nblin FILE 1000
enter criteria or command:go FILE 
The result is saved in /tmpd/edsbr.out file.
Just run following commads to create tab-separated file.

Code: Select all

  grep -v "+" /tmpd/edsbr.out | tr "\|" "\t" > whatever_file.txt 
Just for one extension run. Check for spaces around the equals sign!

Code: Select all

enter criteria or command:dir = MCDU
enter criteria or command:go
If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.
Post Reply

Return to “Users”