New mgr (?) script

All those commands that we don't really use very often, but that we should ! Documented or not, they worth it !
Post Reply
User avatar
patmul39
Member
Posts: 417
Joined: 03 Sep 2004 11:12
Location: Wellingborough - UK

New mgr (?) script

Post 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
We don't see things the way they are; we see things the way we are!
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: New mgr (?) script

Post 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
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
tgn
Member
Posts: 802
Joined: 30 Dec 2009 17:59
Location: Germany

Re: New mgr (?) script

Post 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...
User avatar
patmul39
Member
Posts: 417
Joined: 03 Sep 2004 11:12
Location: Wellingborough - UK

Re: New mgr (?) script

Post by patmul39 »

Thanks for your replies guys. I thought it might be a bit more straight forward.
We don't see things the way they are; we see things the way we are!
User avatar
Eliott
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 640
Joined: 10 Feb 2010 03:43

Re: New mgr (?) script

Post 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.
User avatar
cavagnaro
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 7014
Joined: 14 Sep 2005 19:45
Location: Brasil, Porto Alegre
Contact:

Re: New mgr (?) script

Post by cavagnaro »

O.o
Ahhhh hail Eliott master!!


Enviado de meu C6602 usando Tapatalk
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
Eliott
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 640
Joined: 10 Feb 2010 03:43

Re: New mgr (?) script

Post by Eliott »

Yeah, back after long time. :)
User avatar
Aquarius!
Member
Posts: 82
Joined: 28 Dec 2009 03:58
Location: Budapest

Re: New mgr (?) script

Post 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
User avatar
Eliott
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 640
Joined: 10 Feb 2010 03:43

Re: New mgr (?) script

Post 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.
User avatar
Aquarius!
Member
Posts: 82
Joined: 28 Dec 2009 03:58
Location: Budapest

Re: New mgr (?) script

Post by Aquarius! »

Thanks a lot Eliot for your quick reply!
We will try it how does it work.
Post Reply

Return to “Usefull commands”