Forum Discussion
Samir_Jha_52506
Jul 25, 2018Noctilucent
In F5 unix shell you can print hostname name by typing command
hostname
.
Python SDK
>>> settings = bigip.sys.global_settings.load()
>>> print settings.hostname
LAB1.mydomain.com
>>>
OR
Alternatively you can refer this
set hostname [tmsh::get_config /sys global-settings hostname]
puts [tmsh::get_field_value [lindex $hostname 0] hostname]