For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Lindsay_28673's avatar
Lindsay_28673
Icon for Nimbostratus rankNimbostratus
Apr 05, 2013

iapp description field

After I create an iapp via the F5 gui, I can review the deployment via Applications. I select the successfully created iapp and in the properties of the application services there is a blank description field...which I can edit and update.

 

 

Can I set this description field from my iapp code?.

 

 

thanks....

 

5 Replies

  • Fred_Slater_856's avatar
    Fred_Slater_856
    Historic F5 Account
    set app oracle-ebs1

     

    set obj [tmsh::get_config sys app ser ${app}.app/$app description]

     

    puts $obj

     

    yields

     

    {sys application service oracle-ebs1.app/oracle-ebs1 {

     

    description "iApp for E-Business Suite"

     

    }}

     

    .. and you can parse it out with lindex.

     

  • Thanks Fred.. I now have the syntax OK.. however as I am using this in the Implementation Section of my iApp, the iApp doesn't seem to have been be created when I am setting the description field (which is the last line of the Impl. section).. hence it runs an error saying my iApp wasn't found. I can subsequently modify the iApp OK via TMSH..

     

  • Fred_Slater_856's avatar
    Fred_Slater_856
    Historic F5 Account
    Lindsay,

     

    You are correct. You cannot retrieve the description field from an iApp that does not exist. You can get around this with a Tcl "catch".

     

    set app $tmsh::app_name

     

    set desc "Not available"

     

    catch { set desc [tmsh::list sys app ser $app description] } err

     

    If you wish to change the description from within the iApp, you can do that too:

     

    tmsh::modify sys app ser $app description \"Hello World\"

     

    I'm not sure what your objective is beyond that, but perhaps these examples will help.

     

    -Fred
  • Brent_Blood_768's avatar
    Brent_Blood_768
    Historic F5 Account
    In your iApp's implementation script, put the following code in it to set the description property of the application service that's currently executing:

     

     

    tmsh::modify sys app service $tmsh::app_name description \"foo bar baz\"

     

     

    Just replace "foo bar baz" with your own description - and make sure to escape those quotes.

     

     

    Is that what you were after?
  • Fred/Brent

     

     

    The tmsh::modify did the trick.. many thanks.

     

     

    The description field is for a Project code ..used as part of the automation process.

     

     

    I really appreciate your help here..