Author Topic: Trying to Output the SMDR Logs to file  (Read 7484 times)

Offline meBruler

  • Contributer
  • *
  • Posts: 7
  • Country: us
  • Karma: +0/-0
    • View Profile
Trying to Output the SMDR Logs to file
« on: March 30, 2016, 08:28:15 AM »
Hey guys,

trying this:
LOGSYS READ SMDR INTO File.log NEWEST 2000 MATCH 1111

and getting "LOGSYS error: Could not open destination file                                   
              File System error: Catalog does not exist.  "

Am I going about this wrong?  Whats the easiest way to export the SMDR to a CSV / file of some sort.


Offline lundah

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1215
  • Country: us
  • Karma: +66/-0
  • Senior Chief Grunt
    • View Profile
Re: Trying to Output the SMDR Logs to file
« Reply #1 on: March 30, 2016, 09:10:53 AM »
You have to state what folder (Mitel calls it a catalog) you want to write the file in. However, on the more recent releases you only have read access to the filesystem, so you can't create a catalog to put it (don't mess around in the system-created catalogs, messing with the existing files there can do very bad things). If you're on MCD5 or above, use the scheduler to send the SMDR logs to an FTP server and then you can play around with that file.

Offline meBruler

  • Contributer
  • *
  • Posts: 7
  • Country: us
  • Karma: +0/-0
    • View Profile
Re: Trying to Output the SMDR Logs to file
« Reply #2 on: March 30, 2016, 09:32:37 AM »
Perfect! :)

Got it Exported and scheduled on a weekly basis... exactly what I was trying to do in the first place.

Thanks!

Offline meBruler

  • Contributer
  • *
  • Posts: 7
  • Country: us
  • Karma: +0/-0
    • View Profile
Re: Trying to Output the SMDR Logs to file
« Reply #3 on: March 30, 2016, 09:35:49 AM »
Do you by chance know the Column layout of the file?  So I can add headers to the file?

Offline lundah

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1215
  • Country: us
  • Karma: +66/-0
  • Senior Chief Grunt
    • View Profile
Re: Trying to Output the SMDR Logs to file
« Reply #4 on: March 30, 2016, 10:14:23 AM »
It will vary depending on how SMDR Options settings are configured. The built-in help tool has all the info.

Offline meBruler

  • Contributer
  • *
  • Posts: 7
  • Country: us
  • Karma: +0/-0
    • View Profile
Re: Trying to Output the SMDR Logs to file
« Reply #5 on: March 30, 2016, 02:26:32 PM »
This i what I found:
Operation
The SMDR record format changes to accommodate SMDR Extended Reporting. The following tables list the column positions (see SMDR Recorded Information for comparison):

Extended Reporting Level 1

Name
 Columns
 
Long Call
 1
 
Date
 2-6
 
Spacer
 7
 
Start Time
 8-13
 
Spacer
 14
 
Duration of Call
 15-24
 
Spacer
 25
 
Calling Party
 26-32
 
Attendant
 33
 
Time To answer
 34-37
 
Spacer
 38
 
Digits Dialed on the Trunk
 39-64 or 39-58
 
Spacer
 N/A or 59
 
Meter Pulses
 N/A or 60-64
 
Call Completion Status
 65
 
Speed Call or Call Forward Flags
 66
 
Called Party
 67-73
 
Spacer
 74
 
LDN Called
 75-81
 
Transfer/Conference Call
 82
 
Spacer
 83
 
Third Party
 84-90
 
Spacer
 91
 
Account Code
 92-103
 
Route Optimization Flag
 104
 
System Identifier
 105-107
 
Spacer
 108
 
MLPP Precedence Level
 109
 
Spacer
 110
 
ANI
 111-130
 
Spacer
 131
 
DNIS
 132-141
 
Spacer
 142
 
Suite Identifier
 143-149
 
Spacer
 150
 
Call Identifier
 151-158
 
Spacer
 159
 
Call Sequence Identifier
 160
 
Spacer
 161
 
Associated Call Identifier
 162-169
 

 



Basing this on what I started to fill out in my Excel doc:
Date   Time   Duration   Calling Party   Attendant                     
%03/07   10:28:14A   0000:13:56   T1   0   9900 6850   S6856   0   4406862300   9900   G0004207   A
%03/07   10:29:20A   0000:12:51   T1   0   9900 6850   S6858   0   4406862300   9900   G0000384   A
%03/07   10:28:42A   0000:13:30   T1   0   9900 6850   S6857   0   4406862300   9900   E0008567   A
%03/07   10:22:57A   0000:19:21   T1   0   9900 6850   S6873   0   4406862300   9900   E0007825   A
07-Mar   02:56:30P   0000:00:03   T1   0   9900 6850   S6862   0   4406862300   9900   G0000536   A


But I'm not sure this is accurate...

it'd be nice to be able to output the FTP transfer with headers from the system... know of an option for this?

Offline JasonTL

  • Sr. Member
  • ****
  • Posts: 208
  • Country: us
  • Karma: +0/-1
    • View Profile
Re: Trying to Output the SMDR Logs to file
« Reply #6 on: June 17, 2016, 02:36:48 PM »
Been looking for this. I haven't exported a file through the maint. commands. What is the command to export to ftp server?

Offline lundah

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1215
  • Country: us
  • Karma: +66/-0
  • Senior Chief Grunt
    • View Profile
Re: Trying to Output the SMDR Logs to file
« Reply #7 on: June 21, 2016, 09:07:32 AM »
Been looking for this. I haven't exported a file through the maint. commands. What is the command to export to ftp server?

Assuming you're on MCD 5 or newer, set up the FTP location in External FTP Server, then set up the scheduled file export in the Scheduler.


 

Sitemap 1 2 3 4 5 6 7 8 9 10