mgr -nodico -X <file>

This is the main discussion forum, if the subject that you want to talk about is not listed around here.
zanex

Post by zanex »

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 "|".
User avatar
lapepe
Member
Posts: 45
Joined: 03 Oct 2005 11:52
Location: Czech Republic

Post by lapepe »

Great.... :lol:

(1)oxe> edsbr

==========================
enter criteria or command:
==========================

What command??
Is some guide for ed tool??
LaPEPE
User avatar
lapepe
Member
Posts: 45
Joined: 03 Oct 2005 11:52
Location: Czech Republic

Post by lapepe »

It is perfectly.
I type help * and enter. :idea:

Thanks this forum.
LaPEPE
User avatar
lapepe
Member
Posts: 45
Joined: 03 Oct 2005 11:52
Location: Czech Republic

Post by lapepe »

I type my next question here.

Thanks all. :wink:
LaPEPE
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7013
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Post by cavagnaro »

After edsbr write "go" to launch the query.
Ignorance is not the problem, the problem is the one who doesn't want to learn

OTUC/ICS ACFE/ACSE R3.0/4.0/5.0/6.0
Certified Genesys CIV 8.5
Certified Genesys Troubleshooting 8.5
Certified Genesys BEP 8.x
Genesys Developer
User avatar
finaluser
Member
Posts: 12
Joined: 09 Apr 2007 15:47
Location: Guatemala
Contact:

Use the command edsbr

Post by finaluser »

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
==========================
--
finaluser
Eliott_DUP

Re: mgr export

Post by Eliott_DUP »

lapepe wrote: How export users to TXT file via mgr??
Another way - sample for R5.1.2-e2.504-1-ai

1st) Check which object is for Users

Code: Select all

echo "?" | mgr -line  |grep ": Users"
=> 129: 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
Okay, it's a very bad format... But the question was "using mgr"....

...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
Okay, okay. It's much better using A4760 Export ...
User avatar
tot3nkopf
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 4058
Joined: 02 Feb 2006 10:41
Location: Germany & Romania
Contact:

Re: mgr -nodico -X <file>

Post by tot3nkopf »

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)
Eliott_DUP

Re: mgr -nodico -X <file>

Post by Eliott_DUP »

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)
User avatar
tot3nkopf
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 4058
Joined: 02 Feb 2006 10:41
Location: Germany & Romania
Contact:

Re: mgr -nodico -X <file>

Post by tot3nkopf »

Eliott 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)
Ha, ha ... very nice. It surely does the job :)
Thank you Eliott.
Post Reply

Return to “MAIN”