-
Notifications
You must be signed in to change notification settings - Fork 6
/
firstTimeSetup_provision_ASM.sh
57 lines (52 loc) · 1.57 KB
/
firstTimeSetup_provision_ASM.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
#
# By: Christopher Gray
# Version: 0.0.1
# Updated: 1/15/20
#
# BigIP Versions Tested on: 15.0 - 15.1
#
# Source: https://clouddocs.f5.com/cli/tmsh-reference/latest/modules/net/
#-----------------------------------------------------------------------------
# echo "Resource Provisioning.. "
# https://techdocs.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/bigip-system-essentials-11-6-0/7.html
# The module name. The set of valid modules are platform dependent.
# "afm" - Advanced Firewall Manager.
# "am" - Acceleration Manager.
# "apm" - Application Policy Manager
# "asm" - Application Security Manager
# "avr" - Application Visibility and Reporting
# "cgnat" - Carrier Grade NAT
# "dos" - DOS
# "fps" - Fraud Protection Service
# "gtm" - Global Traffic Manager
# "ilx" - iRules Language Extension
# "lc" - Link Controller
# "ltm" - Local Traffic Manager
# "pem" - Policy Enforcement Manager
# "swg" - Secure Web Gateway
# "vcmp" - Virtual CMP.
echo "Provisioning BigIP... "
echo "LTM "
tmsh modify sys provision ltm { level minimum }
sleep 45
echo "ASM "
tmsh sys provision asm { level nominal }
sleep 45
#tmsh sys provision ilx { level minimum }
echo "AVR "
tmsh modify sys provision avr { level minimum }
#-- You should reboot at this point before continuing. --
#------------------------------------
echo "Saving config.. "
tmsh save sys config
wait
echo "Done!"
echo " "
echo " "
echo "Once you log back in, run the script: 'firstTimeSetup.sh' "
echo " "
echo "Reminder: After resetting the config. the CLI login is: root / default "
echo " "
echo "Rebooting... "
reboot