Forum Discussion

daveferrier_202's avatar
daveferrier_202
Icon for Nimbostratus rankNimbostratus
Aug 08, 2018

Install iApp Template via CLI

Hello. Can someone please tell me how to install an iApp template from the cli instead of the gui. I do not have the ability to access my local drive from the LTM, to upload directly to the LTM. However, I can scp the template to the LTM. Thanks.

 

3 Replies

  • Tyler_Shaw_9498's avatar
    Tyler_Shaw_9498
    Historic F5 Account

    Getting the formatting right may be tricky, but you can create the template by running the command: "create /sys application template testing123" where "testing123" is the name of your iApp template.

    You will be presented with a vi interface with the following populated:

    create template testing123 {
        actions replace-all-with {
            definition {
                html-help {
                    
                }
                implementation {
                     insert tmsh script
                }
                macro {
                }
                presentation {
                     insert apl script
                }
            }
        }
        description none
        requires-bigip-version-max none
        requires-bigip-version-min none
        requires-modules none
    }
    

    You can manually format the contents of your iApp into that form. You'll have to use the vi commands to "write" and "quit" after which you'll be prompted to save the configuration - whereon validation of your template will commence.

    Secondarily, an easier way to do it might be upload the file using iControl. Joe Pruitt has a nice write up around managing iApp templates with iControl here: https://devcentral.f5.com/articles/managing-iapp-template-files-with-icontrol.

    • daveferrier_202's avatar
      daveferrier_202
      Icon for Nimbostratus rankNimbostratus

      Hello Tyler. Appreciate your feedback, but I realized I did not state my question properly. I actually want to install the MS Exchange 2016 template into the LTM as normal, via the gui. But I do not have access to my local drive to do this step. If there is a folder on the LTM where I can scp the template file to, I am suspecting it would appear in the template list from the gui screen. I am making a comparison to how I frequently upload large software images into /shared/images. Is this possible? Thanks Dave

       

    • daveferrier_202's avatar
      daveferrier_202
      Icon for Nimbostratus rankNimbostratus

      I have found the answer. It seems to work fine. I even built an iApp profile using the newly installed template.

       

      1. Backup /config/bigip_script.conf
      2. append the contents of *.tmpl file to the bigip_script.conf
      3. reload the configuration(verify first) tmsh load sys config verify tmsh load sys config