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
Export Subscribers to a file in CLI like in WBM or 8770
- frank
- 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
Just extensions, or full details ?
Code Free Or Die
Re: Export Subscribers to a file in CLI like in WBM or 8770
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 "? *")
The result is saved in /tmpd/edsbr.out file.
Just run following commads to create tab-separated file.
Just for one extension run. Check for spaces around the equals sign!
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
Just run following commads to create tab-separated file.
Code: Select all
grep -v "+" /tmpd/edsbr.out | tr "\|" "\t" > whatever_file.txt
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.