HomeRegistration is free!CalendarFind other membersHere you can view your subscribed threads, work with private messages and 
  edit your profile and preferencesFrequently Asked QuestionsSearch

Go Back   Community for Avaya Users > Solution Forums > Contact Centers and CRM
  Today's Posts Mark Forums Read

Contact Centers and CRM Discuss contact center and customer relationship management products and solutions.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-10, 11:26 AM
deef deef is offline
Member
 
Join Date: Jul 2008
Location: NC
Posts: 45
Unhappy CMS Interactive Scripts hanging

We have a DOS batch file that invokes *.acsup scripts to change agent skills. Intermittently, CMS hangs. I've checked Windows task Mgr and find that another version of Controller is there and is "Not Responding". I have to manually kill all the processes and restart CMS...which defeats the automation and midnight processing of these scripts.

Anybody have any idea what makes CMS generate another process of Controller? I have at least a 5 second delay betweens submitting each interactive script to CMS. I've tried changing the scripts to *.acsauto, but then the script does NOT change the agent skill set.

Any ideas would be greatly appreciated!!
Reply With Quote
  #2  
Old 02-17-10, 06:48 PM
AuxNazi AuxNazi is offline
Member
 
Join Date: Nov 2009
Location: NA
Posts: 25
Default

If avaya tries to run 2 scripts at the same time it fails for me. My solution was twofold.

First, when you create scripts, you have the option to append scripts onto an existing one. Do this with all your scripts. Save the scripts as acsauto when creating them. I've discovered that the machine running avaya scripts needs to have created at least one acsauto script before it actually runs acsauto scripts.

Second, After the job runs, run a second job to kill any avaya processes that are still running.

On a windows computer there is no dedicated process kill command that I am aware of, so I downloaded Pskill from microsoft to do this.

The batch file I have to kill the avaya process is as follows:
Code:
cd %USERPROFILE%\Desktop\
pskill acstrans.exe
pskill acssrv.exe
pskill acscript.exe
pskill acsapp.exe
pskill acsrep.exe
That should clean up any errant processes. I have this job set to run 5 minutes after each avaya script job that I run.

Check with your IT department to make sure you can use pskill.exe. It is flagged by some AVs (such as Sophos AV) as a "hacker tool."

If you want to check if your AV will likely flag it, you can run it through here. Your AV that you use is likely on the above site.
Reply With Quote
  #3  
Old 02-18-10, 05:57 AM
deef deef is offline
Member
 
Join Date: Jul 2008
Location: NC
Posts: 45
Default

WOW! Finally! It's so great to get some input on this issue!!!! THANK YOU SO MUCH!

But can you please explain to me what you mean by:

"First, when you create scripts, you have the option to append scripts onto an existing one. Do this with all your scripts. Save the scripts as acsauto when creating them. I've discovered that the machine running avaya scripts needs to have created at least one acsauto script before it actually runs acsauto scripts."

My scripts are *.acsup scripts, not acsauto. When I run an agent skill change script as .acsauto, it does not change the agent's skills.

Also...should I have CMS running BEFORE I run the scripts?

It will be great to finally be able to fix this problem!!!

Thanks again AuxNazi...I really appreciate it!
Reply With Quote
  #4  
Old 02-19-10, 11:27 AM
AuxNazi AuxNazi is offline
Member
 
Join Date: Nov 2009
Location: NA
Posts: 25
Default

If you create a script to move an agent and name it agentmove.acsup, you can instead of creating another separate script, choose to add to the same one.

When saving the script, instead of picking a new name for the new script, save it on top of the old one. A message like the attached one here will appear and you can then just click "add".

The caveat here is that Avaya will kick out the "agent skill change has been completed" message and you have to hit ok on each one. If someone here knows a way around that, it would be appreciated.

To run acsup scripts, you must be logged in to CMS supervisor.
Attached Thumbnails
Click image for larger version

Name:	scriptsave.JPG
Views:	105
Size:	20.3 KB
ID:	1484  
Reply With Quote
  #5  
Old 02-19-10, 11:29 AM
AuxNazi AuxNazi is offline
Member
 
Join Date: Nov 2009
Location: NA
Posts: 25
Default

As an aside, it turns out windows xp does have a task killer now!

the command line function is taskkill. the switch to kill a process by name is /IM.

Thus:

Code:
taskkill /im acstrans.exe /im acssrv.exe /im acscript.exe /im acsapp.exe /im acsrep.exe
Will work without any need for a 3rd party program. Huzzah!
Reply With Quote
  #6  
Old 04-19-10, 10:59 AM
Rblockent Rblockent is offline
Member
 
Join Date: Apr 2010
Location: Los Angeles
Posts: 1
Default Running script

hello

i am working on automizing a report on excel, I run the script from avaya & modified the some codes. It doesnt seem to be running the script can any1 help me out. Here's the script.

'LANGUAGE=ENU
'SERVERNAME=r3mbnoh
Public Sub Main()

'## cvs_cmd_begin
'## ID = 2001
'## Description = "Report: Historical: CMS custom: CCOG08a ag gr sum dy: Export Data"
'## Parameters.Add "Report: Historical: CMS custom: CCOG08a ag gr sum dy: Export Data","_Desc"
'## Parameters.Add "Reports","_Catalog"
'## Parameters.Add "5","_Action"
'## Parameters.Add "1","_Quit"
'## Parameters.Add "Historical\CMS custom\CCOG08a ag gr sum dy","_Report"
'## Parameters.Add "1","_ACD"
'## Parameters.Add "2160","_Top"
'## Parameters.Add "6495","_Left"
'## Parameters.Add "8925","_Width"
'## Parameters.Add "6225","_Height"
'## Parameters.Add "The report Historical\CMS custom\CCOG08a ag gr sum dy was not found on ACD 1.","_ReportNotFound"
'## Parameters.Add "*","_BeginProperties"
'## Parameters.Add "CA INWARD AHT","Agent Group"
'## Parameters.Add "14;170;173;233;234;337;338;1003;1004;1006;1010;10 33;1034;1042;1043;1044;1045;1046;1047;281;340;341; 87;727;728","Skill(s)"
'## Parameters.Add "4/1/2010-4/14/2010","Date(s)"
'## Parameters.Add "*","_EndProperties"
'## Parameters.Add "*","_BeginViews"
'## Parameters.Add "*","_EndViews"
'## Parameters.Add "\Crppasnaf00n1\users$\nbkq77q'(H\CCOG08a ag gr sum dy Cle.txt\","_Output"

On Error Resume Next

cvsSrv.Reports.ACD = 1
Set Info = cvsSrv.Reports.Reports("Historical\CMS custom\CCOG08a ag gr sum dy")

If Info Is Nothing Then
If cvsSrv.Interactive Then
MsgBox "The report Historical\CMS custom\CCOG08a ag gr sum dy was not found on ACD 1.", vbCritical Or vbOKOnly, "Avaya CMS Supervisor"
Else
Set Log = CreateObject("ACSERR.cvsLog")
Log.AutoLogWrite "The report Historical\CMS custom\CCOG08a ag gr sum dy was not found on ACD 1."
Set Log = Nothing
End If
Else

b = cvsSrv.Reports.CreateReport(Info,Rep)
If b Then

Rep.Window.Top = 2160
Rep.Window.Left = 6495
Rep.Window.Width = 8925
Rep.Window.Height = 6225



Rep.SetProperty "Agent Group","CA INWARD AHT"

Rep.SetProperty "Skill(s)","14;170;173;233;234;337;338;1003;1004;1 006;1010;1033;1034;1042;1043;1044;1045;1046;1047;2 81;340;341;87;727;728"

Rep.SetProperty "Date(s)","4/1/2010-4/14/2010"




b = Rep.ExportData("Crppasnaf00n1\users$\nbkq77q'(H\ CCOG08a ag gr sum dy Cle.txt", 9, 0, True, True, True)





Rep.Quit



If Not cvsSrv.Interactive Then cvsSrv.ActiveTasks.Remove Rep.TaskID
Set Rep = Nothing
End If

End If
Set Info = Nothing
'## cvs_cmd_end

End Sub
Reply With Quote
  #7  
Old 07-28-10, 07:51 AM
Barindelli Barindelli is offline
Member
 
Join Date: Feb 2010
Location: Montevideo
Posts: 6
Default Scripts

I said before by AuxNazi you need to be logged in CMS to run .acsup scripts, but you don't need to if you run .acsauto scripts.

You need to set a login and password for that, and when you run .acsauto scripts on your desktop it will use these credentials.
Go in CMS to Tools/Options/Scripting and set the user in the Automatic Scripts On This PC Run As dialog.
Reply With Quote
  #8  
Old 07-28-10, 08:07 AM
Barindelli Barindelli is offline
Member
 
Join Date: Feb 2010
Location: Montevideo
Posts: 6
Default Sorry

It was an "AS said before..."
Reply With Quote
  #9  
Old 07-28-10, 08:16 AM
Barindelli Barindelli is offline
Member
 
Join Date: Feb 2010
Location: Montevideo
Posts: 6
Default Things to consider

I was trying to make the changes thru VB or VB.net code to be able to easy loop between changes.

If you do that, you can keep the connection open (not possible with separate .acsauto scripts if you need some time difference between changes) and then make changes.

to close the objects created by cms after the changes are made you need to close the following:

Quote:
cvsCon.Logout
cvsCon.Disconnect

Set cvsSrv = Nothing
Set cvsCon = Nothing
Set cvsApp = Nothing
With the following code you can manage the connection:


Quote:
AvayaIP = "xx.xx.xx.xx"
UserName = "user name" 'need to have ACD access permissions, and skill changes permissions
Password = "password"



Dim cvsApp As cvsApplication
Dim cvsCon As cvsConnection
Dim cvsSrv As cvsServer
Dim cvsAgtMgmt As cvsAgentMgmt

Set cvsApp = New cvsApplication
Set cvsCon = New cvsConnection
Set cvsSrv = New cvsServer
Set cvsAgtMgmt = New cvsAgentMgmt

Dim rc As Boolean, sWarn As String
sWarn = ""

If cvsApp.CreateServer(UserName, Password, "", AvayaIP, False, "ENU", cvsSrv, cvsCon) Then
If cvsCon.Login(UserName, Password, AvayaIP, "ENU") Then

'Dim cvsACD As Collection

Set cvsACD = cvsSrv.ACDs(1)
Set cvsAgtMgmt = cvsSrv.AgentMgmt
cvsAgtMgmt.AcdStartUp -1, "", cvsSrv.Server

'****MAKE HERE ALL THE CHANGE SKILLS YOU WANT, add,
'move, delete or set skill sets.

End If
End If
Hope it helps.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 04:23 PM.

< Contact Us - Home - Disclaimer - Privacy >


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.