Forum Discussion

sarat_82132's avatar
sarat_82132
Icon for Nimbostratus rankNimbostratus
Jul 28, 2015

Access configuration Details from Irule

Hello I am trying to fetch the Host name of the LTM in the Irule. I need this information to print out a dashboard I see there is one command that can fetch the Host name

 

set ltmHostname [ exec hostname]

 

but we get the following error "error: [command is disabled: "exec"]"

 

Is there a way to fetch the host name info into a variable in the Irule. I was thinking if I can have the value in the datagroup and manually popualte it. but the issue there will be that is that datagroups sync to the fail over LTM and then the information is inaccurate when we hit the fail over LTM.

 

Thoughts?

 

  • If on an 11.4.0 and above BIG-IP:

    upvar 0 tcl_platform static::tcl_platform
    
    log local0. $static::tcl_platform(machine)