Forum Discussion
sreebarcl_36723
Jul 25, 2018Nimbostratus
Display Hostname
Is there a cli command by which we can display the hostname of the f5 Device using the cli?
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]
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