How to copy SMAT file during the process is running?

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf How to copy SMAT file during the process is running?

  • Creator
    Topic
  • #48007
    Jae Joo
    Participant

    I am looking for the way how to copy the SMAT file without shutdowning the process.

    I could not copy or view the SMAT file because the SMAt file is locked by Process. After I shutdown the process, I can access it.

    Is there any way to copy or view the SMAT file without whutdowning the process?

    Thanks,

    Jae

Viewing 3 reply threads
  • Author
    Replies
    • #57276
      David Barr
      Participant

      Sure.  Cycle the log file:

      hcicmd -p -c “ save_cycle {in|out}”

      Or, right click on the thread in the net monitor, select “Control”, “Full” and “Cycle Save”.  Select “In” if the thread is inbound and “Out” if the thread is outbound.

      This will rename the current SMAT file with a .old extension and it will no longer be locked.

    • #57277
      Jae Joo
      Participant

      Thanks,

      So I wold like to cycle log, err and in/out smat files.

      hcicmd -p -c ‘. outpout_cycle’

      hcicmd -p -c ‘ save_cycle in’

      Is ther any chance to have INCONSISTEMNCE between log and err files AND SMAT file?

      Or any idea how to recycle log and err files AND smat file?

      Thanks,

    • #57278
      Jim Kosloskey
      Participant

      I am guessing you want to make sure no messages process while you are cycling.

      One way would be to stop the inbound thread, wait for any queues to clear, then cycle. Don’t forget to restart the thread.

      Another might be to place the inbound thread on hold (I have never tried this but no reason I can think of it would not work), wait for queues to clear,  then cycle. Don’t forget to release the inbound thread.

      I do not know of any way to cause the cycling of the logs AND SMAT to occur absolutely at the same time.

      Jim Kosloskey

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #57279
      Anonymous
      Participant

      Jae ,

      This question is posted from time to time. We had the same problem in our AIX boxes but we didn’t want to cycle our interfaces continuously. We turned off the “save inbound/outbound messages” feature and created tclprocs to save the messages with their metadata (with the same format in the .msg and .idx files).

      Now we can use hcismat or any other tool (grep, cat, more, etc.) to open the files (as read only) while receiving messages. So far we haven’t experienced any loss of data. I recommend this solution only if you need to see the content of those files on a regular basis.

      Carlos

Viewing 3 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,293
Replies
34,435
Topic Tags
286
Empty Topic Tags
10