mgr -nodico -X <file>
you can use edsbr for users ednump for numbering plan and edabv for abb no. When you type go it will run the query and create a file in /usr4/tmp with the following filename mcsedXXXXXX where the X's are randomly generated chars - you can then pull the file off and into excel and just delimt on "|".
Use the command edsbr
You can use the command edsbr
(1)OXE> edsbr
1 - dir -> Directory number
2 - name -> Subscriber's Name
3 - act -> ACT shelf number
4 - cpl -> Coupler number
5 - pos -> Terminal number
6 - typ -> Station type
7 - pna -> Public Network Access
==========================
enter criteria or command: dir
==========================
enter criteria or command: name
==========================
enter criteria or command: go
==========================
09/04/07 EDSBR V. 4.00 Page : 1
+--------+----------------+---+---+---+--------+---+
|dir |name |act|cpl|pos|typ |pna|
+--------+----------------+---+---+---+--------+---+
|1601 |First Lastname | 0| 5| 16|ana | 1|
|1602 |Salita deEspera | 0| 6| 1|4001 | 1|
|1605 |Fax Gerencia | 2| 4| 16|ana | 4|
.
.
.
==========================
enter criteria or command: help
==========================
(1)OXE> edsbr
1 - dir -> Directory number
2 - name -> Subscriber's Name
3 - act -> ACT shelf number
4 - cpl -> Coupler number
5 - pos -> Terminal number
6 - typ -> Station type
7 - pna -> Public Network Access
==========================
enter criteria or command: dir
==========================
enter criteria or command: name
==========================
enter criteria or command: go
==========================
09/04/07 EDSBR V. 4.00 Page : 1
+--------+----------------+---+---+---+--------+---+
|dir |name |act|cpl|pos|typ |pna|
+--------+----------------+---+---+---+--------+---+
|1601 |First Lastname | 0| 5| 16|ana | 1|
|1602 |Salita deEspera | 0| 6| 1|4001 | 1|
|1605 |Fax Gerencia | 2| 4| 16|ana | 4|
.
.
.
==========================
enter criteria or command: help
==========================
--
finaluser
finaluser
Re: mgr export
Another way - sample for R5.1.2-e2.504-1-ailapepe wrote: How export users to TXT file via mgr??
1st) Check which object is for Users
Code: Select all
echo "?" | mgr -line |grep ": Users"
2nd) Change the 129 for other Versions in the following code - that's all.
Code: Select all
mgr -line >export.txt <<EOFMGR
129
4
1
1
$
$
$
EOFMGR
...or cuser...
Sample for number and hardwareposition:
Code: Select all
echo "SELECT numan,crystal,coupler,position from POSTE;" |cuser |grep -v contin |grep -v "1>" >export.txt
- tot3nkopf
- Alcatel Unleashed Certified Guru
- Posts: 4058
- Joined: 02 Feb 2006 10:41
- Location: Germany & Romania
- Contact:
Re: mgr -nodico -X <file>
Hi guys.
Is there any mgr -nodico -??? to enable direct command instead of file play?
Ex:
I would like to use smth like:
mgr -nodico -???? CREATE Called_Filter "1": "1": "5454"
(creating an entry in filtrering table)
Is there any mgr -nodico -??? to enable direct command instead of file play?
Ex:
I would like to use smth like:
mgr -nodico -???? CREATE Called_Filter "1": "1": "5454"
(creating an entry in filtrering table)
Re: mgr -nodico -X <file>
echo 'SET Subscriber "101": "100" { Annu_Name = "MyName", Annu_First_Name = "MyFirstName" }' > tmp.mgr; mgr -nodico -X tmp.mgr ; rm tmp.mgr
Not nice but should do the job. (Just replace the command with the one you need)
Not nice but should do the job. (Just replace the command with the one you need)
- tot3nkopf
- Alcatel Unleashed Certified Guru
- Posts: 4058
- Joined: 02 Feb 2006 10:41
- Location: Germany & Romania
- Contact:
Re: mgr -nodico -X <file>
Ha, ha ... very nice. It surely does the jobEliott wrote:echo 'SET Subscriber "101": "100" { Annu_Name = "MyName", Annu_First_Name = "MyFirstName" }' > tmp.mgr; mgr -nodico -X tmp.mgr ; rm tmp.mgr
Not nice but should do the job. (Just replace the command with the one you need)

Thank you Eliott.