Table of Contents

fsictl example calls

Different possibilites to list Servers

Show all Server in current Environment

fsictl cmd -q --showall 
 ID    Env        Servername                     Typ          Flags    PatchLevel           MAC                 RC              Mgmt IP         Control
 1     LAB        v5fsi.lab5.local               co7_64       -------- -                    00:50:56:05:ff:01   vcvm            172.16.5.3      lx : fsiinst
 2     LAB        v4printctrl.lab4.schnuerle.com rh8_64       -------- -                    00:50:56:bc:5b:1a   vcvm            172.16.4.101    lx : printsrv
 3     LAB        v4mockup.lab4.schnuerle.com    rl8_64       -------- -                    00:50:56:04:70:01   vcvm            172.16.4.50     lx : mockup
 4     LAB        v3fsi.lab3.local               co7_64       O------- 7.9.2009             00:50:56:03:ff:01   vcvm            172.16.3.2      lx : base
 5     LAB        v2xen-9                        xen712       -------- -                    00:50:56:02:59:01   vcvm            172.16.2.59     xp : XENPOOL4
 6     LAB        v2xen-8                        xen820       -------- -                    00:50:56:02:58:01   vcvm            172.16.2.58     xp : XENPOOL3
 7     LAB        v2xen-7                        xen820       -------- -                    00:50:56:02:57:01   vcvm            172.16.2.57     xp : XENPOOL3
 8     LAB        v2xen-6                        xen820       -------- -                    00:50:56:02:56:01   vcvm            172.16.2.56     xp : XENPOOL3
 9     LAB        v2xen-5                        xen821       O------- -                    00:50:56:02:55:01   vcvm            172.16.2.55     xp : PROD_VDA_FR2x6_8.2_01
 10    LAB        v2xen-4                        xen821       -------- -                    00:50:56:02:54:01   vcvm            172.16.2.54     xp : PROD_VDA_FR2x6_8.2_01
 11    LAB        v2xen-3                        xen821       O------- -                    00:50:56:02:53:01   vcvm            172.16.2.53     xp : PROD_VDA_FR2x6_8.2_01
 12    LAB        v2xen-2                        xen821       -------- -                    00:50:56:02:52:01   vcvm            172.16.2.52     xp : PROD_VDA_FR2x6_8.2_01
 13    LAB        v2xen-17                       xcp810       -------- -                    00:50:56:02:f7:01   vcvm            172.16.2.167    xp : XENPOOL2
 14    LAB        v2xen-16                       xcp810       -------- -                    00:50:56:02:f6:01   vcvm            172.16.2.166    xp : XENPOOL2
 15    LAB        v2xen-15                       xcp810       -------- -                    00:50:56:02:5f:01   vcvm            172.16.2.165    xp : XENPOOL2
 16    LAB        v2xen-14                       xen650       -------- -                    00:50:56:02:5e:01   vcvm            172.16.2.164    xp : XENPOOL5
 17    LAB        v2xen-13                       xen650       -------- -                    00:50:56:02:5d:01   vcvm            172.16.2.163    xp : XENPOOL5
 18    LAB        v2xen-12                       xen650       -------- -                    00:50:56:02:5c:01   vcvm            172.16.2.162    xp : XENPOOL5
 19    LAB        v2xen-11                       xen712       -------- -                    00:50:56:02:5b:01   vcvm            172.16.2.161    xp : XENPOOL4
 20    LAB        v2xen-10                       xen712       -------- -                    00:50:56:02:5a:01   vcvm            172.16.2.160    xp : XENPOOL4
 21    LAB        v2xen-1                        xen821       O------- -                    00:50:56:02:51:01   vcvm            172.16.2.51     xp : PROD_VDA_FR2x6_8.2_01
 22    LAB        v2rl-1.lab2.schnuerle.com      rl8_64       -------- -                    00:50:56:bc:ce:f3   vcvm            172.16.2.100    lx : base
 23    LAB        v2rh-1.lab2.schnuerle.com      rh8_64       -------- -                    00:50:56:bc:5f:f5   vcvm            172.16.2.81     lx : base
 24    LAB        v2fsirl.lab2.schnuerle.com     rl8_64       -------- -                    00:50:56:bc:35:9b   vcvm            172.16.2.4      lx : fsiinst
 25    LAB        v2fsirh.lab2.schnuerle.com     rh8_64       -------- -                    00:50:56:bc:58:cf   vcvm            172.16.2.3      lx : fsiinst
 26    LAB        v2fsi.lab2.schnuerle.com       co7_64       O------- 7.9.2009             00:50:56:02:ff:01   vcvm            172.16.2.2      lx : fsiinst
 27    LAB        v2esxi-5.lab2.schnuerle.com    esxi70       -------- -                    00:50:56:02:65:01   vcvm            172.16.2.65     vc : v2vcsa70.lab2.schnuerle.com
 28    LAB        v2esxi-4.lab2.schnuerle.com    esxi70       -------- -                    00:50:56:02:64:01   vcvm            172.16.2.64     vc : v2vcsa70.lab2.schnuerle.com
 29    LAB        v2esxi-2.lab2.schnuerle.com    esxi67       -------- -                    00:50:56:02:62:01   none            172.16.2.62     vc : v2vcsa70.lab2.schnuerle.com
 30    LAB        v2esxi-1.lab2.schnuerle.com    esxi70u2     ----E--- -                    00:50:56:02:61:01   vcvm            172.16.2.61     vc : v2vcsa70.lab2.schnuerle.com
 31    LAB        v2co-1.lab2.schnuerle.com      co8_64       -------- -                    00:50:56:bc:fd:b1   vcvm            172.16.2.91     lx : base
 32    LAB        v2al-1.lab2.schnuerle.com      al8_64       -------- -                    00:50:56:bc:87:c4   vcvm            172.16.2.130    lx : base
 33    LAB        v1co-1.lab1.schnuerle.com      co7_64       -------- -                    00:50:56:bc:11:62   vcvm            172.16.1.71     lx : ansibletower
 76    LAB        openvas.lab.schnuerle.com      rl8_64       -------- -                    00:50:56:bc:bc:1f   vcvm            172.16.0.150    lx : base
 79    LAB        nextcloud.lab.schnuerle.com    co8_64       O------- 8.4.2105             00:50:56:01:05:01   vcvm            172.16.0.28     lx : nextcloud
 80    LAB        mongo.lab.schnuerle.com        co8_64       -------- -                    00:50:56:02:03:01   vcvm            172.16.0.27     lx : mongodb
 117   LAB        devtower.lab.schnuerle.com     co7_64       -------- -                    00:50:56:bc:74:9b   vcvm            172.16.0.26     lx : ansibletower 

Show all Server in all Environments

fsictl cmd -q --showall --env % 
 ID    Env        Servername                     Typ          Flags    PatchLevel           MAC                 RC              Mgmt IP         Control
 1     LAB        v5fsi.lab5.local               co7_64       -------- -                    00:50:56:05:ff:01   vcvm            172.16.5.3      lx : fsiinst
 2     LAB        v4printctrl.lab4.schnuerle.com rh8_64       -------- -                    00:50:56:bc:5b:1a   vcvm            172.16.4.101    lx : printsrv
 3     LAB        v4mockup.lab4.schnuerle.com    rl8_64       -------- -                    00:50:56:04:70:01   vcvm            172.16.4.50     lx : mockup
 4     LAB        v3fsi.lab3.local               co7_64       O------- 7.9.2009             00:50:56:03:ff:01   vcvm            172.16.3.2      lx : base
 5     LAB        v2xen-9                        xen712       -------- -                    00:50:56:02:59:01   vcvm            172.16.2.59     xp : XENPOOL4
 6     LAB        v2xen-8                        xen820       -------- -                    00:50:56:02:58:01   vcvm            172.16.2.58     xp : XENPOOL3
 7     LAB        v2xen-7                        xen820       -------- -                    00:50:56:02:57:01   vcvm            172.16.2.57     xp : XENPOOL3
 8     LAB        v2xen-6                        xen820       -------- -                    00:50:56:02:56:01   vcvm            172.16.2.56     xp : XENPOOL3
 9     LAB        v2xen-5                        xen821       O------- -                    00:50:56:02:55:01   vcvm            172.16.2.55     xp : PROD_VDA_FR2x6_8.2_01
 10    LAB        v2xen-4                        xen821       -------- -                    00:50:56:02:54:01   vcvm            172.16.2.54     xp : PROD_VDA_FR2x6_8.2_01
 11    LAB        v2xen-3                        xen821       O------- -                    00:50:56:02:53:01   vcvm            172.16.2.53     xp : PROD_VDA_FR2x6_8.2_01
 12    LAB        v2xen-2                        xen821       -------- -                    00:50:56:02:52:01   vcvm            172.16.2.52     xp : PROD_VDA_FR2x6_8.2_01
 13    LAB        v2xen-17                       xcp810       -------- -                    00:50:56:02:f7:01   vcvm            172.16.2.167    xp : XENPOOL2
 14    LAB        v2xen-16                       xcp810       -------- -                    00:50:56:02:f6:01   vcvm            172.16.2.166    xp : XENPOOL2
 15    LAB        v2xen-15                       xcp810       -------- -                    00:50:56:02:5f:01   vcvm            172.16.2.165    xp : XENPOOL2
 16    LAB        v2xen-14                       xen650       -------- -                    00:50:56:02:5e:01   vcvm            172.16.2.164    xp : XENPOOL5
 17    LAB        v2xen-13                       xen650       -------- -                    00:50:56:02:5d:01   vcvm            172.16.2.163    xp : XENPOOL5
 18    LAB        v2xen-12                       xen650       -------- -                    00:50:56:02:5c:01   vcvm            172.16.2.162    xp : XENPOOL5
 19    LAB        v2xen-11                       xen712       -------- -                    00:50:56:02:5b:01   vcvm            172.16.2.161    xp : XENPOOL4
 20    LAB        v2xen-10                       xen712       -------- -                    00:50:56:02:5a:01   vcvm            172.16.2.160    xp : XENPOOL4
 21    LAB        v2xen-1                        xen821       O------- -                    00:50:56:02:51:01   vcvm            172.16.2.51     xp : PROD_VDA_FR2x6_8.2_01
 22    LAB        v2rl-1.lab2.schnuerle.com      rl8_64       -------- -                    00:50:56:bc:ce:f3   vcvm            172.16.2.100    lx : base
 23    LAB        v2rh-1.lab2.schnuerle.com      rh8_64       -------- -                    00:50:56:bc:5f:f5   vcvm            172.16.2.81     lx : base
 24    LAB        v2fsirl.lab2.schnuerle.com     rl8_64       -------- -                    00:50:56:bc:35:9b   vcvm            172.16.2.4      lx : fsiinst
...
 39    DEVLAB     testsrv3.lab.local             rh6_64       -------- -                    00:50:56:12:03:01   vcvm            172.16.1.133    lx : base
 40    DEVLAB     testsrv2.lab.local             rh7_64       -------- -                    00:50:56:12:02:01   vcvm            172.16.1.132    lx : base
 41    DEVLAB     testsrv1.lab.local             co7_64       -------- -                    00:50:56:12:01:01   vcvm            172.16.1.131    lx : base
 42    EDV        test23                         xen620       --h----- -                    00:50:56:11:23:01   vcvm            172.16.1.93     xp : EDV_620_XD_03
 43    EDV        test22                         xen620       --h----- -                    00:50:56:11:22:01   vcvm            172.16.1.92     xp : EDV_620_XD_03
 44    EDV        test21                         xen700       --h----- -                    00:50:56:11:21:01   vcvm            172.16.1.91     xp : EDV_700_XA_01
 45    ESXILAB    test20.lab2.local              esxi51u3     -------- -                    00:50:56:18:01:16   vcvm            172.16.2.16     vc : vCwin.lab2.local
 46    EDV        test20                         xen700       --h----- -                    00:50:56:11:20:01   vcvm            172.16.1.90     xp : EDV_700_XA_01
 47    EDV        test19                         xen620       --h----- -                    00:50:56:11:19:01   vcvm            172.16.1.89     xp : EDV_620_XD_02
 48    EDV        test18                         xen620       --h----- -                    00:50:56:11:18:01   vcvm            172.16.1.88     xp : EDV_620_XD_02
 49    EDV        test17                         xen650       --h----- -                    00:50:56:11:17:01   vcvm            172.16.1.87     xp : EDV_650_XD_02
 50    EDV        test16                         xen650       --h----- -                    00:50:56:11:16:01   vcvm            172.16.1.86     xp : EDV_650_XD_02
 51    EDV        test15                         xen650       --h----- -                    00:50:56:11:15:01   vcvm            172.16.1.85     xp : EDV_650_XD_02
 52    EDV        test14                         xen620       --h----- -                    00:50:56:11:14:01   vcvm            172.16.1.84     xp : EDV_620_XD_01
 53    EDV        test13                         xen620       --h----- -                    00:50:56:11:13:01   vcvm            172.16.1.83     xp : EDV_620_XD_01
 54    EDV        test12                         xen620       -------- -                    00:50:56:11:12:01   vcvm            172.16.1.82     xp : EDV_620_XA_99
 55    EDV        test11                         xen620       -------- -                    00:50:56:11:11:01   vcvm            172.16.1.81     xp : EDV_620_XA_99
 56    DEVLAB     test10                         xen620       -------- -                    00:50:56:11:10:01   vcvm            172.16.1.80     xp : EDV_620_XA_99
 57    DEVLAB     test09                         xen650       --h----- -                    00:50:56:11:09:01   vcvm            172.16.1.79     xp : EDV_620_XA_02
 58    DEVLAB     test08                         xen650       --h----- -                    00:50:56:11:08:01   vcvm            172.16.1.78     xp : EDV_620_XA_02
 59    DEVLAB     test07                         xen650       --h----- -                    00:50:56:11:07:01   vcvm            172.16.1.77     xp : EDV_620_XA_02
 60    DEVLAB     test06                         xen650       --h----- -                    00:50:56:11:06:01   vcvm            172.16.1.76     xp : EDV_620_XA_02
 61    DEVLAB     test05                         xen650       --h----- -                    00:50:56:11:05:01   vcvm            172.16.1.75     xp : EDV_620_XA_02
...
 

Find special Server

fsictl cmd --showsrv '%v2xen%' -q 
 ID    Env        Servername                     Typ          Flags    PatchLevel           MAC                 RC              Mgmt IP         Control
 5     LAB        v2xen-9                        xen712       -------- -                    00:50:56:02:59:01   vcvm            172.16.2.59     xp : XENPOOL4
 6     LAB        v2xen-8                        xen820       -------- -                    00:50:56:02:58:01   vcvm            172.16.2.58     xp : XENPOOL3
 7     LAB        v2xen-7                        xen820       -------- -                    00:50:56:02:57:01   vcvm            172.16.2.57     xp : XENPOOL3
 8     LAB        v2xen-6                        xen820       -------- -                    00:50:56:02:56:01   vcvm            172.16.2.56     xp : XENPOOL3 

Show XenServer Pool

fsictl cmd --showall --pool XENPOOL2 -q 
 ID    Env        Servername                     Typ          Flags    PatchLevel           MAC                 RC              Mgmt IP         Control
 13    LAB        v2xen-17                       xcp810       -------- -                    00:50:56:02:f7:01   vcvm            172.16.2.167    xp : XENPOOL2
 14    LAB        v2xen-16                       xcp810       -------- -                    00:50:56:02:f6:01   vcvm            172.16.2.166    xp : XENPOOL2
 15    LAB        v2xen-15                       xcp810       -------- -                    00:50:56:02:5f:01   vcvm            172.16.2.165    xp : XENPOOL2 

Show ESXi assign to a Virtual Center

First implemented for XenPools … you can use this for ESXi Virtual Center view and Linux Model view too:

fsictl cmd --showall --pool vCwin.lab2.local -q --env % 
 ID    Env        Servername                     Typ          Flags    PatchLevel           MAC                 RC              Mgmt IP         Control
 45    ESXILAB    test20.lab2.local              esxi51u3     -------- -                    00:50:56:18:01:16   vcvm            172.16.2.16     vc : vCwin.lab2.local
 94    ESXILAB    esxitestsrv20_extralanger_s... esxi51u3     -------- -                    00:50:56:18:01:20   unavailable     172.16.2.20     vc : vCwin.lab2.local
 95    ESXILAB    esxitestsrv19.lab2.local       esxi51u3     -------- -                    00:50:56:18:01:19   unavailable     172.16.2.19     vc : vCwin.lab2.local
 96    ESXILAB    esxitestsrv18.lab2.local       esxi51u3     -------- -                    00:50:56:18:01:18   unavailable     172.16.2.18     vc : vCwin.lab2.local
 97    ESXILAB    esxitestsrv17.lab2.local       esxi51u3     -------- -                    00:50:56:18:01:17   unavailable     172.16.2.17     vc : vCwin.lab2.local
 98    ESXILAB    esxitestsrv15.lab2.local       esxi51u3     -------- -                    00:50:56:18:01:15   vcvm            172.16.2.15     vc : vCwin.lab2.local
 99    ESXILAB    esxitestsrv14.lab2.local       esxi51u3     -------- -                    00:50:56:18:01:14   vcvm            172.16.2.14     vc : vCwin.lab2.local
 100   ESXILAB    esxitestsrv13.lab2.local       esxi51u3     -------- -                    00:50:56:18:01:13   vcvm            172.16.2.13     vc : vCwin.lab2.local
 104   ESXILAB    esxitestsrv09.lab2.local       esxi51u3     -------- -                    00:50:56:18:01:09   vcvm            172.16.2.9      vc : vCwin.lab2.local
 105   ESXILAB    esxitestsrv08.lab2.local       esxi51u3     -------- -                    00:50:56:18:01:08   vcvm            172.16.2.8      vc : vCwin.lab2.local
 106   ESXILAB    esxitestsrv07.lab2.local       esxi51u3     -------- -                    00:50:56:18:01:07   vcvm            172.16.2.7      vc : vCwin.lab2.local
 107   ESXILAB    esxitestsrv06.lab2.local       esxi51u3     -------- -                    00:50:56:18:01:06   vcvm            172.16.2.6      vc : vCwin.lab2.local
 108   ESXILAB    esxitestsrv05.lab2.local       esxi51u3     O------- -                    00:50:56:18:01:05   vcvm            172.16.2.5      vc : vCwin.lab2.local
 109   ESXILAB    esxitestsrv04.lab2.local       esxi51u3     -------- -                    00:50:56:18:01:04   vcvm            172.16.2.4      vc : vCwin.lab2.local
 110   ESXILAB    esxitestsrv03.lab2.local       esxi51u3     -------- -                    00:50:56:18:01:03   vcvm            172.16.2.3      vc : vCwin.lab2.local
 111   ESXILAB    esxitestsrv02.lab2.local       esxi51u3     O------- -                    00:50:56:18:01:02   vcvm            172.16.2.2      vc : vCwin.lab2.local
 112   ESXILAB    esxitestsrv01.lab2.local       esxi51u3     O------- -                    00:50:56:18:01:01   unavailable     172.16.2.1      vc : vCwin.lab2.local 

Show all Server with Model

fsictl cmd --showall --pool base -q --env % 
 ID    Env        Servername                     Typ          Flags    PatchLevel           MAC                 RC              Mgmt IP         Control
 4     LAB        v3fsi.lab3.local               co7_64       O------- 7.9.2009             00:50:56:03:ff:01   vcvm            172.16.3.2      lx : base
 22    LAB        v2rl-1.lab2.schnuerle.com      rl8_64       -------- -                    00:50:56:bc:ce:f3   vcvm            172.16.2.100    lx : base
 23    LAB        v2rh-1.lab2.schnuerle.com      rh8_64       -------- -                    00:50:56:bc:5f:f5   vcvm            172.16.2.81     lx : base
 31    LAB        v2co-1.lab2.schnuerle.com      co8_64       -------- -                    00:50:56:bc:fd:b1   vcvm            172.16.2.91     lx : base
 32    LAB        v2al-1.lab2.schnuerle.com      al8_64       -------- -                    00:50:56:bc:87:c4   vcvm            172.16.2.130    lx : base
 34    EDV        unifi.schnuerle.local          co7_64       -------- -                    00:50:56:11:01:09   kvmvm           10.10.10.9      lx : base
 35    DEVLAB     testsrv8.lab.local             co5_64       -------- -                    00:50:56:12:08:01   vcvm            172.16.1.138    lx : base
 38    DEVLAB     testsrv4.lab.local             rh5_64       -------- -                    00:50:56:12:04:01   vcvm            172.16.1.134    lx : base
 39    DEVLAB     testsrv3.lab.local             rh6_64       -------- -                    00:50:56:12:03:01   vcvm            172.16.1.133    lx : base
 40    DEVLAB     testsrv2.lab.local             rh7_64       -------- -                    00:50:56:12:02:01   vcvm            172.16.1.132    lx : base
 41    DEVLAB     testsrv1.lab.local             co7_64       -------- -                    00:50:56:12:01:01   vcvm            172.16.1.131    lx : base

Connect to a Server

Long form:

[root@fsi /]# fsictl tool connect -s v3fsi

Short form:

[root@fsi /]# fsictl tool c -s v3fsi
08:37:43 - INFO   :  check if server [v3fsi.lab3.local]/[172.16.3.2] is online ...
08:37:43 - INFO   :  server online - connecting now ...
Last login: Wed Mar 30 07:39:04 2022 from fsi.lab.schnuerle.com
[root@v3fsi ~]#