summaryrefslogtreecommitdiff
path: root/docs/synopsis.txt
blob: 3d1e7f01cfd26ddb0329d2510be09e3335196086 (plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
usage: fapi [-b B] [-e E] [-f F] [-h] [-i] [-l] [-n] [-v] [-V] [-C C]
            [what] [name] [sub] [sub2] [sub3] [sub4] [sub5]

positional arguments:
  what  node|pool|monitor|vserver|...
  name  The object name to operate on
  sub   First sub command
  sub2  Second sub command
  sub3  Third sub command
  sub4  Fourth sub command
  sub5  Fith sub command

optional arguments:
  -b B  Forces to use the secified loadbalancer (overwrites -e)
  -e E  Env to use, e.g. dev,qa,live
  -f F  Overwrite partition/folder from fapi.conf
  -h    Print this help
  -i    Interactive shell
  -l    Use list output
  -n    No color (disable colorful output)
  -v    Verbose
  -V    Print program version
  -C C  Config file


Synopsis:
    monitor
    monitor NAME get desc|state
    node
    node NODENAME create|delete
    node NODENAME get detail|status
    pool
    pool NAME add member MEMBER:PORT
    pool NAME add monitor MONITOR
    pool NAME create [LIST,OF,POOL,MEMBERS:PORT]
    pool NAME delete
    pool NAME del member MEMBER:PORT
    pool NAME del monitors
    pool NAME get detail|lbmethod|members|monitor|status
    pool NAME set lbmethod LBMETHOD
    vip
    vip NAME create NETMASK
    vip NAME get arp|detail|status|tgroup
    vip NAME set arp enabled|disabled
    vip NAME set tgroup TGROUP
    vserver
    vserver NAME create [protocol] [profile] [poolname] [mask]
    vserver NAME delete
    vserver NAME get brief|detail|status
    vserver NAME set nat|pat disabled|enabled
    vserver NAME set pool POOLNAME
    vserver NAME set snat none
The following partially needs admininstrator privileges on / and /Common
    -f Common -b balancer.example.com selfip
    -f Common -b balancer.example.com selfip NAME create NETMASK VLANNAME [TGROUP]
    -f Common -b balancer.example.com selfip NAME delete
    -f Common -b balancer.example.com selfip NAME get detail|tgroup
    -f Common -b balancer.example.com selfip NAME set tgroup TGROUP
    -f Common tgroup
    -f Common tgroup NAME add ha_order DEVICE ORDER
    -f Common tgroup NAME create
    -f Common tgroup NAME delete
    -f Common tgroup NAME get detail
    -f Common tgroup NAME get ha_order
    -f Common tgroup NAME remove all_ha_orders
    -f Common tgroup NAME remove ha_order DEVICE ORDER
    -f Common vlan
    -f Common vlan NAME create tagged VLANID internal|external|...
    -f Common vlan NAME delete
    -f Common vlan NAME get detail
    -f / folder
    -f / folder NAME create|delete
    -f / folder NAME get detail|dgroup|tgroup
    -f / folder NAME set dgroup|tgroup DGROUP|TGROUP
Please consult the manpage for examples.