2 Replies Latest reply on Aug 3, 2017 5:25 PM by 2923243

    HFM Rules Debugging/Logging

    2923243

      Hi All,

       

      We have migrated HFM application from Windows(11.1.2.2) to Linux environment(11.1.2.4). There is a sub procedure in HFM rule to create a log and error files in the server. It was working fine in windows but not in Linux server. Below are the paths in windows and Linux.

       

      Windows

       

              Set ObjShell = CreateObject("WScript.Shell")

       

              strFDMShare = ObjShell.Environment("SYSTEM").Item("FDM_SHARE")

              strComputerName = ObjShell.ExpandEnvironmentStrings("%COMPUTERNAME%")

              Set ObjShell = Nothing

              DebugFile = strFDMShare & "\LOGS\ELVIS_RulesDebug.log"

              ErrorFile = strFDMShare & "\LOGS\ELVIS_Errors.log" 

       

      Linux

             DebugFile = "/opt/hyp/app/LOGS/ELVIS_RulesDebug.log"

             ErrorFile = "/opt/hyp/app/LOGS/ELVIS_Errors.log"

       

      Please let me know if anyone faced the same issue.

        • 1. Re: HFM Rules Debugging/Logging
          Jeo123

          To start, Linux is only supported on Exalytics.  Is that what you're going with?

           

          Oracle "Supported versions" aside though, when your rule fails, it should be generating system messages that tell you specifically what line you fail on and why.  Are you getting anything in there or is this just not generating the file?

           

          Additionally, it seems like you're not specifying the same path exactly.  Your windows example was using an environment variable to specify the server to write to, but your Linux example will be writing the logs on the server hosting the XFMDataSource, which in a multi server environment could result in logs being written on two different servers.  Is this a case of the logs are being written somewhere other than where you expected?

           

          E.g.

          Windows writes to SERVER\LOGS\ELVIS_RulesDebug.log

          Linux writes to /opt/hyp/app/LOGS/ELVIS_RulesDebug.log but no server is specified.

          • 2. Re: HFM Rules Debugging/Logging
            2923243

            Hi Jeo, Thanks for the response. The server is Exalytics and we don't see any system message regarding rule fail, its just not generating the file.

            We have tried with below options as well in Linux.

             

            SERVER = "//(SERVERNAME)"

            Debugfile = SERVER & "/opt/hyp/app/LOGS/ELVIS_RulesDebug.log"

             

            SERVER = ""

            Debugfile = SERVER & "/opt/hyp/app/LOGS/ELVIS_RulesDebug.log"

             

            None of them are working.