Decoding SMAT database

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Decoding SMAT database

  • Creator
    Topic
  • #54865
    Tahir Shaikh
    Participant

      Hi,

      I am using Cloverleaf 6.1.

      Is there any API or any script to decode the SMAT databases to get the data out of it.

      Thanks,

      Tahir

    Viewing 15 reply threads
    • Author
      Replies
      • #83255
        Tahir Shaikh
        Participant

          I have found that there are some web services exposed such as getSiteList.

          How can I consume them?

          Thanks,

          Tahir

        • #83256
          Charlie Bursell
          Participant

            SMATDB or SMAT?

            I wrote scripts for both, hcismatdb and hcismat which have been posted on the forum a few times.  A search should find them

          • #83257
            Tahir Shaikh
            Participant

              Thanks Charlie,

              Appreciate your work. It worked.

              Some more questions-

              1. In which file will I get the Thread statistics? like, How many messages are processed, how many in progress, how many erred. The same parameters which we see on right click on thread in Network monitor under status window.

              2. If there any file as above, is there any script to decode it?

              Thanks,

              Tahir

            • #83258
              Charlie Bursell
              Participant

                You don’t most of that info from SMAT.  You can get totals by using simple math

                For the other stuff you nee MSI data

              • #83259
                Charlie Bursell
                Participant

                  SMATDB or SMAT?

                  I wrote scripts for both, hcismatdb and hcismat which have been posted on the forum a few times.  A search should find them

                • #83260
                  Tahir Shaikh
                  Participant

                    Hi Charlie,

                    Can we call this .htc file from within a tcl?

                    Thanks,

                    Tahir

                  • #83261
                    Charlie Bursell
                    Participant

                      Sure but it is a Tcl file.  Why would you want to do that?

                    • #83262
                      Tahir Shaikh
                      Participant

                        Thanks for quick reply   🙂

                        I am writing a utility (.tcl) which will run in scheduled mode (I am using UPOC). From that .tcl I want to call hcismatdb command.

                        Is there anything I should take care of while calling hcismatdb command.

                        I am familiar with cloverleaf .tcl, but don’t know how to call .htc command.

                        Thanks,

                        Tahir

                      • #83263
                        Tahir Shaikh
                        Participant

                          Here is what I am trying,

                          1. I copied your hcismatdb.htc in bin folder. I tested it using Remote commands window and it works fine.

                          2. Now I have written one tcl which will get called from UPOC. In this tcl, I have copied hcismatdb command as it is which is running from remote commands window in cloverleaf.

                          But I am getting error ‘invalid command name “hcismatdb”

                          Thanks,

                          Tahir

                        • #83264
                          Charlie Bursell
                          Participant

                            I am assuming this is on Windows?   If so you can only execute ,exe, .com and .bat files directly from Tcl.  For others you need to exec Tcl and pass the path to the script.

                            You could simply source the file in your script then the commands would be available.  You could also redo the hcismatdb as a Tcl package.

                            Lots of ways to go

                          • #83265
                            Tahir Shaikh
                            Participant

                              Hi Charlie,

                              I am at beginner level for all this tcl stuff.

                              By sourcing the file in .tcl script, I guess you mean to say copy code from .htc file to .tcl file.

                              I tried that but still getting invalid command error.

                              Also, it would be very helpful if you can share the hcismatdb in .tcl format or point me to some useful link.

                              Thanks,

                              Tahir

                            • #83266
                              Greg Tataryn
                              Participant

                                Charlie,

                                Does your script work if the SMATDB files are encrypted? If not, is there a way to access encrypted SMATDB files using SQLite?

                              • #83267
                                Charlie Bursell
                                Participant

                                  Yeah it works.  If you are accessing them in a different site than where they were created you must supply the password to the script.  See:

                                                   hcismatdb -help

                                • #83268
                                  Keith McLeod
                                  Participant

                                    FYI.. Charlie.  At the Inforum 2016 conference many folks were very appreciative for that hcismatdb script.  I know I use it frequently especially when performing upgrades or extracting messages.  The time you have saved the rest of us, for that I thank you…

                                  • #83269
                                    Greg Tataryn
                                    Participant

                                      Thank you, Charlie. I had not had a chance to dig into the script too deep just yet. At first glance I can already see it will be quite useful. Thank you for sharing with us.

                                    • #83270
                                      Charlie Bursell
                                      Participant

                                        Thanks Keith always nice to be appreciated  ðŸ˜€

                                        If you get a chance take a look at the tclGrep script I posted.

                                        I am already making some minor changes

                                                              Deal with files without proper read permissions

                                                              Maybe change output to show results as found rather than

                                                              wait till end to see all.  Useful when using recursion

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