Home/Support/Support Forum/How would I retrieve EventLog via RCI
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How would I retrieve EventLog via RCI

0 votes

I'm trying to obtain the event log via RCI interface but I always get an empty response xml file. I am using the WR21 and I can see the file Eventlog under the "FLASH directory" under File Management. Am I missing something? FW version used is 5246. Thanks in advance.

Here is my input:

<rci_request><do_command target="file_system"><get_file name="/FLASH/eventlog.txt"/></do_command></rci_request>

P.S.: I'm able to get good response for other query_state and query_settings. So I know the RCI settings in general works, except the "do_command" listed above.
asked Nov 17, 2014 in Digi TransPort Cellular by pt2005 New to the Community (0 points)
Please any help? My question is how to retrieve a text file (eventlog.txt) in this case via the RCI. Thanks

Please log in or register to answer this question.

1 Answer

0 votes
Use the type command and just type it out. so "type eventlog.txt".
answered Nov 20, 2014 by NicholasWilson Veteran of the Digi Community (1,003 points)
I understand that using "type eventlog.txt" in the CLI would display the log to the console. However, I need to retrieve the file via RCI interface.

Below is my request and response. Please note that string in the <data>....</data>. I would imaging the encoded string would be much longer than that (as this is the content of the eventlog file).

RCI Request:
<rci_request><do_command target="file_system"><get_file name="/eventlog.txt"/></do_command></rci_request>

RCI Response:
<rci_reply version="1.1">
<do_command target="file_system">
<get_file name="/eventlog.txt">
I meant use the do_command and then the cli command to type it out so:
  <send_message cache="false">
    <rci_request version="1.1">
       <do_command target="cli">
        <cli>type eventlog.txt</cli>

You don't even have to decode base64 then.
Thank you Nicholas. Your suggestion works! Appreciate your help a lot.