Cloverleaf and Powershell

Clovertech Forums Cloverleaf Cloverleaf and Powershell

  • Creator
    Topic
  • #120598
    Markus
    Participant

      Hello everyone.

      I’m fairly new to Cloverleaf and not very experienced with PowerShell yet. Now I’m supposed to use PowerShell to check various things in Cloverleaf, such as verifying if log cycling works, if all channels are running, and if the licenses are valid. I yet have no idea how to do this. Has anyone in this forum done something like this before and could provide me with guidance? Is there any documentation on how to interact with Cloverleaf via the command line? I would appreciate any help.

      BR
      Markus

    Viewing 2 reply threads
    • Author
      Replies
      • #120604
        Charlie Bursell
        Participant

          Simply search the on-line documentation for “command line”.  Lots of documentation.

          I don’t understand the use of powershell.  You execute these commands via windows shell.  You could use powershell afterwards to run commands to look at files created.

          To use the windows shell:  Run the command prompt app by right clicking on it the right click again on command prompt in the pop-up and select Run as Administrator.  Once the shell appears simply enter the command “setroot” and root will be set to default site.

          You now have several environmental values available.  For example to change the directory to the site directory:  “chdir %hcisitedir%”  Upper or lower case is OK

          To see all of the “hci” variables available jusr type “set hci”  from the command line.

          HCILICFILE=C:\cloverleaf\YOUR ROOT\integrator\vers\license.dat
          HCIROOT=C:\cloverleaf\YOUR ROOT\integrator
          HCISITE=YOUR Current Site
          HCISITEDIR=C:\cloverleaf\Your Root\integrator\Your Current Site
          HCIVERSION=Your Current Version

           

          Hope this helps

        • #120606
          Jim Vilbrandt
          Participant

            Hello Markus,

            I attempted using PowerShell to export all protocol details (TCP-IP, Web-Service, Disk, etc.) but ended up writing in TCL. There are several TCL commands that allow easy access to NetConfig details. The benefit is that these scripts are not OS dependant and run on our Windows and Linux systems. I also integrated it (and one for Route Details) into a Thread that creates a CSV each day.

            PowerShell is a wonderful tool, but as Charlie pointed out, I don’t see the benefit of using it for the purposes you mentioned.

            Best Regards from Germany, Jim

          • #120607
            Markus
            Participant

              Dear all,

              thanks for your feedback. Seems that I will have to dig a little bit into TCL…

              BR

              Markus

          Viewing 2 reply threads
          • You must be logged in to reply to this topic.