1targetclid(8) System Manager's Manual targetclid(8)
2
3
4
6 targetclid - daemon component for targetcli
7
9 targetclid is the daemon component of targetcli, which will help retain
10 state of various configfs object in memory, hence any new request/com‐
11 mand can directly use the in memory objects instead of reconstructing
12 them by parsing through the entire configfs files again and again for
13 each and every single command. This will greatly improve the overall
14 execution time taken by targetcli commands at scale.
15
16
18 targetclid [cmd]
19 --help for additional usage information.
20 --version for version information.
21
23 To start using the daemon, one need to enable targetclid socket,
24 $ systemctl enable targetclid.socket
25
26 If you would like to use the daemonized approach as default method
27 then,
28 $ targetcli set global auto_use_daemon=true
29 $ targetcli ls
30
31 You can use interactive mode,
32 $ targetcli <hit-enter>
33 targetcli shell version 2.1.51
34 Entering targetcli interactive mode for daemonized approach.
35 Type 'exit' to quit.
36 /> pwd
37 /
38 /> cd /iscsi
39 /> pwd
40 /iscsi
41 /> exit
42
43 You can also use batch mode for sending multiple commands in one go,
44 $ targetcli set global daemon_use_batch_mode=true
45 Parameter daemon_use_batch_mode is now 'true'.
46 $ targetcli <hit-enter>
47 targetcli shell version 2.1.51
48 Entering targetcli batch mode for daemonized approach.
49 Enter multiple commands separated by newline and type 'exit' to
50 run them all in one go.
51 /> ls
52 /> pwd
53 /> get global loglevel_file
54 /> exit
55
56 You can set preference to stop using daemonized mode even when the dae‐
57 mon is not running,
58 $ targetcli --disable-daemon
59
61 /etc/target/saveconfig.json
62 /etc/target/backup/*
63 /var/run/targetclid.sock
64 /var/run/targetclid.pid
65
67 TARGETCLI_HOME
68 If set, this variable points to a directory that should be used instead
69 of ~/.targetcli
70
72 targetcli(8), targetctl(8), tcmu-runner(8)
73
75 Written by Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
76 Man page written by Prasanna Kumar Kalever <prasanna.kalever@red‐
77 hat.com>
78
80 Report bugs via <targetcli-fb-devel@lists.fedorahosted.org>
81 or <https://github.com/open-iscsi/targetcli-fb/issues>
82
83
84
85 targetclid(8)