I am often in the situation where I am remotely connected to the web interface of the system, but can't telnet, so viewing the real time output is not possible. But the maintenance command window does allow you to see historic smdr records.
The basic command you could use is -
LOGSYS READ SMDR ALL
This is a bad idea!!!!!! The system will attempt to output the whole SMDR file onto your screen. The last time I did this there were 20,000 lines of information stored in the file and it took 30 minutes to complete the process.
Usually you will make a test call and then want to see the SMDR output, so you could do this -
LOGSYS READ SMDR NEWEST 20
This will output the last 20 call records and your test call will likely be among them for you to view.
What if I knew the call I was looking for had taken place in the last hour and came from a Nottingham (area code 0115) number? In that case I could narrow down the records returned by using the MATCH feature.
LOGSYS READ SMDR NEWEST 200 MATCH 0115
This will take a bit longer to complete as the newest 200 lines have to be searched and just the ones containing 0115 returned to the screen.
Perhaps the examples above will now allow you to make more sense of the section from the manual reproduced below.
LOGSYS READ followed by the qualifiers below
<logname> ALL
<logname> ALL MATCH <string>
<logname> INTO <filename> ALL
<logname> INTO <filename> ALL MATCH X
<logname> NEWEST X
<logname> NEWEST X MATCH <string>
<logname> INTO <filename> NEWEST X
<logname> INTO <filename> NEWEST X MATCH X
<logname> OLDEST X
<logname> INTO <filename> OLDEST X
<logname> INTO <filename> OLDEST X MATCH X
If you know of any other useful lognames that can be inserted above, then please let me know!
John Rogers
Telecom Care Ltd
No comments:
Post a Comment
Please keep your comments polite and free from bad language. Thanks