Page 1 of 1
New mgr (?) script
Posted: 22 Jul 2015 05:11
by patmul39
I need to create a script that modifies certain parameters on subscribers. As an example I would need something as follows:
(1)csr_b> change 12345 [where change is the command name and 12345 is the extension number]
I would need the script to change the following:
• Entity to a predefined number eg 33
• Cost Centre ID to eg 330
• Public network COS to eg 5
• Pick up Group Name to eg Valletta
The values would be preset and the reason for this is that there are frequent user moves between sites. Scripting is not my forte so any help is appreciated.
Thanks
Re: New mgr (?) script
Posted: 22 Jul 2015 11:58
by cavagnaro
Not just scripting, that would be the easy part, but how on earth OXE will change those by command?
There are limits on what you can do via scripting on mgr execute mode...
Enviado de meu C6602 usando Tapatalk
Re: New mgr (?) script
Posted: 22 Jul 2015 17:10
by tgn
yes a bash script is complicated in syntax and also it is limited sometimes... but something is possible... here is some inspiration... ->
viewtopic.php?t=23873
but you have to take time to learn bash-programming.
if you do not have time, i can program it for you.
regards...
Re: New mgr (?) script
Posted: 24 Jul 2015 09:28
by patmul39
Thanks for your replies guys. I thought it might be a bit more straight forward.
Re: New mgr (?) script
Posted: 24 Jul 2015 18:07
by Eliott
It is easy. Record your modification with mgr -log filename -nodico
And then modify the file filename as you need it.
You can put all in one line to make it together with Nash scripting easier to handle.
When done execute it using mgr -X filename -nodico
Nodico means no Dictionary loading.
It's better than in your Language but you will see the variables in mgr...
Good luck.
Re: New mgr (?) script
Posted: 24 Jul 2015 18:26
by cavagnaro
O.o
Ahhhh hail Eliott master!!
Enviado de meu C6602 usando Tapatalk
Re: New mgr (?) script
Posted: 24 Jul 2015 18:29
by Eliott
Yeah, back after long time.

Re: New mgr (?) script
Posted: 14 Sep 2015 11:13
by Aquarius!
Hi Eliot!
It is great what you mentioned.
But under Appication within mgr it doesn't work.
Do you have any idea how can it be managed fe. an agent logoff command accordingly?
Regards,
Sándor
Re: New mgr (?) script
Posted: 15 Sep 2015 03:25
by Eliott
SET ACD2_Action "Nodenumber": "1": "1": "1": "1234" { ACD2_Action = "Logoff" }
or
SET ACD2_Action "Nodenumber": "1": "1": "1": "1234" { ACD2_Action = "ACD2_Logon", LOG_PG_Directory_Number = "PG-Number", LOG_Force_Pref_PG = "FALSE", LOG_Serial_Number = "-1" }
Replace Nodenumber by your node-Number and PG-Number by your Processing Group Directory Number.
Re: New mgr (?) script
Posted: 15 Sep 2015 03:50
by Aquarius!
Thanks a lot Eliot for your quick reply!
We will try it how does it work.