Forum Discussion
kend
Jan 16, 2012Altostratus
iRule Syntax
I have an iRule where I am using the set command to create a pool name to a variable. The command is "set hostpool pool_$msrdp". The command works the way it is, but I want to add additional characters to the end of the pool name. For example, the way the command is now, the pool name that is assigned to hostpool is "pool_0A1", where 0A1 is the contents of $msrdp. But I want the pool name to be "pool_0A1_rdp". How would I modify the command to include the "_rdp"?
- nitassEmployeecan you try pool_${msrdp}_rdp?
- kendAltostratusThat worked. Thanks!
- hooleylistCirrostratusHi Ken,
if {[catch {pool $my_pool} result]==0}{ Assigned $my_pool pool successfully } else { Failed to assign $my_pool pool }
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