Root Tcl Procs….

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Root Tcl Procs….

  • Creator
    Topic
  • #52834
    Tom Rioux
    Participant

      Is there a way to pull up the root tcl procs in the site GUI?  Right now I’m having to move the proc to the site tclprocs directory if I want to pull it up in the GUI.

      Thanks…

      Tom

    Viewing 5 reply threads
    • Author
      Replies
      • #75612
        James Cobane
        Participant

          If you’re on AIX, you could soft-link your root level procs to the site level; i.e.:

          ln -s $HCIROOT/tclprocs/* $HCISITEDIR/tclprocs/

          This creates a soft-link of the procs in the root-level to be accessible/editable at the site level.  But, “Buyer Beware” – this then allows anyone in the site to easily pull up a root level proc and edit it, which is not necessarily something that you want people to be able to do.

          Jim Cobane

          Henry Ford Health

        • #75613
          Jim Kosloskey
          Participant

            Tom,

            Not only what Jim Cobane warns but at least prior to the Master Site concept, when doing an upgrade the root tclprocs directory gets rebuilt so anything you place there (wheterh links to another dirctory or your code itself) goes away.

            We always had a ‘Master’ site and used soft links. We did not use the root tclprocs directory because of issues in using it. Once the Master site concept was imbedded in the engine we went to that.

            It works fine with one exception, you cannot see Master site objects from the local site. You can reference them but cannot see them in the GUI.

            Healthvisions explanation is their best practices dictate you should have to go to the master site to change any master site object.

            A position some of us have (and have requested as an enhancement) is either to allow read only from local sites and making the object appear in the local ‘Sirte Manager’ container – or – allow the customer to set a setting with each local site  if read/write should be allowed from the local site but all objects should be readable.

            The second gives the control back to the customer of what they consider to be ‘best practices’ and give granularity of control at the site level.

            So our position is if we have a global object it goes in the Master Site – and that has been our position before Cloverleaf inherently embraced the Master site concept.

            email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.

          • #75614
            Charlie Bursell
            Participant

              I’m a bit confused here.  When you look at the list of procs in the drop down list you should see those from root in italics with a blue font.

              Am I mis-interpeting the problem?

            • #75615
              Jim Kosloskey
              Participant

                Charlie,

                I think Tom means in the Site Manager container of the GUI.

                In 5.6 I only see the local procs.

                However if I want to select a proc for use in the NetConfig or Xlate for example, I see what you are describing.

                email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.

              • #75616
                Elisha Gould
                Participant

                  To use tcl scripts in another directory we use the tclIndex file in the sites tclprocs directory.

                  to create the tclIndex file the following command can be used:

                  mktclindex

                  run this in your root directory and in your sites tclprocs directory, then concatinate your root directory tclIndex file to you sites tclIndex file

                • #75617
                  Tom Rioux
                  Participant

                    Correct Jim.   I can see the procs in the blue italics when I’m in something like the NetConfig.   However, in the script editor, I only see the procs in the site/tclprocs directory.  

                    Tom

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