Sunday 8 September 2019

F5 Device Configuration CLI Commands


We can  have good understanding and fast revision of F5 CLI commands and theory, if we have them in segregated format. I have segregated some F5 commands and theory  in configuration and troubleshooting format, which further are separated as System, Software, Network, Directories and Backup


Configuration



System

Commands Explanation
#show Will show working status
#list Will show configuration details
Config# switchboot –b HD1.1 Default boot partition set
(tmos)# modify sys global-settings hostname bigip1.com
# tmsh modify cm device <hostname_of_the_device> hostname <new_hostname>
Change hostname of f5, name FQDN
# tmsh modify auth user admin prompt-for-password change system admin credentials
# tar –xvzf train1_base.ucs Decompress and extract the file contents
Tmos# load sys config Will load bigip.conf file into ram for settings to take effect
Tmos# load sys config verify Verifies config files
Tmos# show sys disk
root# bigstart restart mcpd can use the command line to manage most core daemons on the BIG-IP system. ,To stop, start, restart, or view the status of a daemon using the bigstart command
Tmos# cpcfg --source=HD1.2 HD1.3 to copy the configuration from boot location HD1.2 (11.3.0) to boot location HD1.3 (11.4.0)
Config# cpcfg --source=HD1.2 --reboot HD1.3 to copy the configuration from boot location HD1.2 (BIG-IP 11.3.0) to boot location HD1.3 (BIG-IP 11.4.0) and immediately reboot the system to the HD1.3 boot location
F5 AOM
[root@bigip2:NO LICENSE:Standalone] config # aom_setup_user
Enter username:root
Enter Password:
Confirm Password:
AOM username  root successfully set and enabled.  Note that the AOM network must be configured via the AOM menu.
[root@bigip2:NO LICENSE:Standalone] config #
[root@bigip2:NO LICENSE:Standalone] config # aom_setup_user -l
Current AOM username: root (enabled)
[root@bigip2:NO LICENSE:Standalone] config #



Software

Commands Explanation
Tmos# install sys software image BIGIP-12.0.0.0.0.606.iso volume HD1.5 create-volume to install BIG-IP 12.0.0 to new volume HD1.5
Tmos# install sys software hotfix Hotfix-BIGIP-11.0.0-1234.0-HF1.iso volume HD1.1 to install a hotfix on HD1.1
Tmos# delete sys software volume HD1.1 to delete volume HD1.1 running BIG-IP 10.2.4
Config# im<file_name>.im Installing the EUD from an IM installation package



Network

Commands Explanation
Config # config GUI based management IP configure
# tmsh modify /net self 10.10.10.1 allow-service default port lockdown setting for self IP address 10.10.10.1 to default
# tmsh modify /sys dns name-servers add { 192.168.1.2 192.168.100.100 192.168.200.200 } To add a name server to your /etc/resolv.conf file
# tmsh modify /sys dns name-servers delete { 192.168.1.2 192.168.100.100 192.168.200.200 } delete
# tmsh modify /sys dns name-servers none can remove all configured name servers
# tmsh modify /sys dns search add { f5.com foo.com test.com } add one or more domains to your DNS search list



Backup

Commands Explanation
Tmos# load sys ucs cs_backup.ucs Restore backup file
# tmsh load /sys ucs /var/tmp/MyUCS.ucs no-license install the UCS archive from mentioned location, this cannot be done from GUI only CLI, used for new RMA device


No comments:

Post a Comment

iRule

  iRule: -- o iRule is a powerful and flexible feature within the BIG-IP local traffic management (LTM). o IRule is a powerful & flexibl...