Forum Discussion
Lindsay_28673
Nimbostratus
Apr 05, 2013iapp 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_856Historic F5 Accountset 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. - Lindsay_28673
Nimbostratus
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_856Historic F5 AccountLindsay,
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_768Historic F5 AccountIn 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? - Lindsay_28673
Nimbostratus
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..
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects