Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 3.142.198.250
202 Domain
8.1.31
nbspublicschool
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
bash-completion /
completions /
[ HOME SHELL ]
Name
Size
Permission
Action
addpart
520
B
-rw-r--r--
blkdiscard
651
B
-rw-r--r--
blkid
1.47
KB
-rw-r--r--
blockdev
761
B
-rw-r--r--
bootctl
1.79
KB
-rw-r--r--
busctl
7.54
KB
-rw-r--r--
bzip2
1.13
KB
-rw-r--r--
cal
404
B
-rw-r--r--
cfdisk
736
B
-rw-r--r--
chage
599
B
-rw-r--r--
chcpu
1.18
KB
-rw-r--r--
chfn
445
B
-rw-r--r--
chgrp
995
B
-rw-r--r--
chown
1.1
KB
-rw-r--r--
chpasswd
620
B
-rw-r--r--
chrt
800
B
-rw-r--r--
chsh
506
B
-rw-r--r--
col
460
B
-rw-r--r--
colcrt
484
B
-rw-r--r--
colrm
509
B
-rw-r--r--
column
725
B
-rw-r--r--
coredumpctl
3.34
KB
-rw-r--r--
cpio
2.87
KB
-rw-r--r--
ctrlaltdel
335
B
-rw-r--r--
curl
2.92
KB
-rw-r--r--
delpart
649
B
-rw-r--r--
dmesg
1.03
KB
-rw-r--r--
dracut
3.5
KB
-rw-r--r--
eject
1.16
KB
-rw-r--r--
fallocate
593
B
-rw-r--r--
fdformat
414
B
-rw-r--r--
fdisk
1.05
KB
-rw-r--r--
find
3.88
KB
-rw-r--r--
findmnt
2.77
KB
-rw-r--r--
firewall-cmd
10.1
KB
-rw-r--r--
flock
860
B
-rw-r--r--
fsck
789
B
-rw-r--r--
fsck.cramfs
508
B
-rw-r--r--
fsck.minix
403
B
-rw-r--r--
fsfreeze
524
B
-rw-r--r--
fstrim
626
B
-rw-r--r--
gapplication
1.36
KB
-rw-r--r--
gdbus
935
B
-rw-r--r--
getopt
815
B
-rw-r--r--
groupadd
645
B
-rw-r--r--
groupdel
134
B
-rw-r--r--
groupmod
705
B
-rw-r--r--
grub
11.41
KB
-rw-r--r--
gsettings
2.76
KB
-rw-r--r--
gzip
1.17
KB
-rw-r--r--
hexdump
659
B
-rw-r--r--
hostnamectl
2.16
KB
-rw-r--r--
hwclock
937
B
-rw-r--r--
ionice
837
B
-rw-r--r--
ip
9.54
KB
-rw-r--r--
ipcrm
1.39
KB
-rw-r--r--
ipcs
514
B
-rw-r--r--
iptables
2.21
KB
-rw-r--r--
isosize
426
B
-rw-r--r--
journalctl
5.4
KB
-rw-r--r--
kernel-install
1.75
KB
-rw-r--r--
kmod
3.16
KB
-rw-r--r--
ldattach
1.23
KB
-rw-r--r--
localectl
3.36
KB
-rw-r--r--
logger
1.13
KB
-rw-r--r--
loginctl
4.03
KB
-rw-r--r--
look
572
B
-rw-r--r--
losetup
1.47
KB
-rw-r--r--
lsblk
1.44
KB
-rw-r--r--
lscpu
829
B
-rw-r--r--
lsinitrd
2.05
KB
-rw-r--r--
lslocks
1002
B
-rw-r--r--
lsmcli
18.54
KB
-rw-r--r--
lvchange
21.26
KB
-rw-r--r--
lvcreate
21.26
KB
-rw-r--r--
lvdisplay
21.26
KB
-rw-r--r--
lvextend
21.26
KB
-rw-r--r--
lvm
21.26
KB
-rw-r--r--
lvmdiskscan
21.26
KB
-rw-r--r--
lvreduce
21.26
KB
-rw-r--r--
lvremove
21.26
KB
-rw-r--r--
lvrename
21.26
KB
-rw-r--r--
lvresize
21.26
KB
-rw-r--r--
lvs
21.26
KB
-rw-r--r--
lvscan
21.26
KB
-rw-r--r--
machinectl
3.12
KB
-rw-r--r--
mcookie
502
B
-rw-r--r--
mdadm
4.41
KB
-rw-r--r--
mkfs
692
B
-rw-r--r--
mkfs.cramfs
821
B
-rw-r--r--
mkfs.minix
716
B
-rw-r--r--
mkswap
765
B
-rw-r--r--
more
528
B
-rw-r--r--
mount
1.93
KB
-rw-r--r--
mountpoint
570
B
-rw-r--r--
namei
500
B
-rw-r--r--
nsenter
955
B
-rw-r--r--
partx
1.07
KB
-rw-r--r--
passwd
514
B
-rw-r--r--
ping
1.8
KB
-rw-r--r--
pivot_root
387
B
-rw-r--r--
prlimit
1.16
KB
-rw-r--r--
pvchange
21.26
KB
-rw-r--r--
pvcreate
21.26
KB
-rw-r--r--
pvdisplay
21.26
KB
-rw-r--r--
pvmove
21.26
KB
-rw-r--r--
pvremove
21.26
KB
-rw-r--r--
pvs
21.26
KB
-rw-r--r--
pvscan
21.26
KB
-rw-r--r--
quota
3.67
KB
-rw-r--r--
quotacheck
3.67
KB
-rw-r--r--
quotaoff
3.67
KB
-rw-r--r--
quotaon
3.67
KB
-rw-r--r--
raw
482
B
-rw-r--r--
readprofile
679
B
-rw-r--r--
rename
632
B
-rw-r--r--
renice
812
B
-rw-r--r--
repquota
3.67
KB
-rw-r--r--
resizepart
691
B
-rw-r--r--
rev
432
B
-rw-r--r--
rpm
9.77
KB
-rw-r--r--
rtcwake
841
B
-rw-r--r--
runuser
864
B
-rw-r--r--
script
667
B
-rw-r--r--
scriptreplay
592
B
-rw-r--r--
semanage
6.42
KB
-rw-r--r--
setarch
775
B
-rw-r--r--
setpriv
1.97
KB
-rw-r--r--
setquota
3.67
KB
-rw-r--r--
setsebool
1.77
KB
-rw-r--r--
setsid
433
B
-rw-r--r--
setterm
2.24
KB
-rw-r--r--
sfdisk
1.41
KB
-rw-r--r--
ssh
11.49
KB
-rw-r--r--
su
864
B
-rw-r--r--
sudo
1.29
KB
-rw-r--r--
swaplabel
635
B
-rw-r--r--
swapon
1.32
KB
-rw-r--r--
systemctl
12.29
KB
-rw-r--r--
systemd-analyze
3.9
KB
-rw-r--r--
systemd-cat
1.87
KB
-rw-r--r--
systemd-cgls
1.75
KB
-rw-r--r--
systemd-cgtop
1.32
KB
-rw-r--r--
systemd-delta
1.91
KB
-rw-r--r--
systemd-detect-virt
1.29
KB
-rw-r--r--
systemd-nspawn
5.74
KB
-rw-r--r--
systemd-run
3.51
KB
-rw-r--r--
tailf
530
B
-rw-r--r--
taskset
1.06
KB
-rw-r--r--
tc
26.41
KB
-rw-r--r--
tcpdump
1.01
KB
-rw-r--r--
timedatectl
2.52
KB
-rw-r--r--
tuned-adm
511
B
-rw-r--r--
udevadm
3.64
KB
-rw-r--r--
ul
655
B
-rw-r--r--
umount
525
B
-rw-r--r--
umount.linux
4.38
KB
-rw-r--r--
unshare
496
B
-rw-r--r--
useradd
1.21
KB
-rw-r--r--
userdel
554
B
-rw-r--r--
usermod
1.3
KB
-rw-r--r--
utmpdump
466
B
-rw-r--r--
uuidgen
384
B
-rw-r--r--
vgcfgbackup
21.26
KB
-rw-r--r--
vgcfgrestore
21.26
KB
-rw-r--r--
vgchange
21.26
KB
-rw-r--r--
vgck
21.26
KB
-rw-r--r--
vgconvert
21.26
KB
-rw-r--r--
vgcreate
21.26
KB
-rw-r--r--
vgdisplay
21.26
KB
-rw-r--r--
vgexport
21.26
KB
-rw-r--r--
vgextend
21.26
KB
-rw-r--r--
vgimport
21.26
KB
-rw-r--r--
vgmerge
21.26
KB
-rw-r--r--
vgmknodes
21.26
KB
-rw-r--r--
vgreduce
21.26
KB
-rw-r--r--
vgremove
21.26
KB
-rw-r--r--
vgrename
21.26
KB
-rw-r--r--
vgs
21.26
KB
-rw-r--r--
vgscan
21.26
KB
-rw-r--r--
vgsplit
21.26
KB
-rw-r--r--
wdctl
1.17
KB
-rw-r--r--
wget
6.26
KB
-rw-r--r--
whereis
535
B
-rw-r--r--
wipefs
760
B
-rw-r--r--
write
494
B
-rw-r--r--
xz
1.46
KB
-rw-r--r--
yum
11.23
KB
-rw-r--r--
yummain.py
11.23
KB
-rw-r--r--
zramctl
1.18
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : lsmcli
# Copyright (C) 2015 Red Hat, Inc., Tony Asleson <tasleson@redhat.com> # Distributed under the GNU General Public License, version 2.0. # See: https://www.gnu.org/licenses/gpl-2.0.html # # Bash completion for lsmcli. This may be far from ideal, # suggestions & improvements appreciated! potential_args='' # Skip value lookups by default NO_VALUE_LOOKUP=${LSMCLI_AUTO_COMPLETE_VALUE:=0} function join { local IFS="$1"; shift; echo "$*"; } # Linear search of an array of strings for the specified string function listcontains() { declare -a the_list=("${!1}") for word in "${the_list[@]}" ; do [[ ${word} == $2 ]] && return 0 done return 1 } # Given a list of what is possible and what is on the command line return # what is left. # $1 What is possible # Retults are returned in global string $potential_args function possible_args() { local l=() for i in $1 do listcontains COMP_WORDS[@] "$i" if [[ $? -eq 1 ]] ; then l+=("$i") fi done potential_args=$( join ' ', "${l[@]}" ) } # Returns the position of the value in the COMP_WORDS that contains $1, or # 255 if it doesn't exist function arg_index() { count=0 for i in "${COMP_WORDS[@]}" do if [[ "$i" == "$1" ]] ; then return ${count} fi let count+=1 done return 255 } function _lsm() { local cur prev opts sep='#' COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" opts_short="-b -v -u -P -H -t -e -f -w -b" opts_long=" --help --version --uri --prompt --human --terse --enum \ --force --wait --header --script " opts_cmds="list job-status capabilities plugin-info volume-create \ volume-delete volume-resize volume-replicate \ volume-replicate-range volume-replicate-range-block-size \ volume-dependants volume-dependants-rm volume-access-group \ volume-mask volume-unmask access-group-create \ access-group-delete access-group-add access-group-remove \ volume-enable volume-disable iscsi-chap fs-create fs-delete \ fs-resize fs-export fs-unexport fs-clone fs-snap-create \ fs-snap-delete fs-snap-restore fs-dependants fs-dependants-rm \ file-clone ls lp lv ld la lf lt lb c p vc vd vr vm vi ve vi ac \ aa ar ad vri volume-raid-info pool-member-info pmi \ vrc volume-raid-create vrcc volume-raid-create-cap \ volume-phy-disk-cache-update vpdcu \ volume-read-cache-policy-update vrcpu \ volume-write-cache-policy-update vwcpu \ volume-cache-info vci volume-ident-led-on vilon \ volume-ident-led-off viloff local-disk-list ldl \ system-read-cache-pct-update srcpu \ local-disk-ident-led-on ldilon \ local-disk-ident-led-off ldiloff \ local-disk-fault-led-on ldflon \ local-disk-fault-led-off ldfloff" list_args="--type" list_type_args="volumes pools fs snapshots exports nfs_client_auth \ access_groups systems disks plugins target_ports \ batteries" opts_filter="--sys --pool --vol --disk --ag --fs --nfs" cap_args="--sys" volume_create_args="--name --size --pool" volume_delete_args="--vol --force" # Should force be here, to easy to tab through?" volume_resize_args="--vol --size --force" # Should force be here, to easy to tab through?" volume_replicate_args="--vol --name --rep-type" # Hmmm, this looks like a bug with CLI, should support lower and upper case? volume_rep_types="CLONE COPY MIRROR_ASYNC MIRROR_SYNC" volume_replicate_range_args="--src-vol --dst-vol --rep-type --src-start \ --dst-start --count --force" # Force ? volume_replication_range_bs="--sys" volume_dependants="--vol" volume_access_group_args="--vol" volume_masking_args="--vol --ag" access_group_create_args="--name --init --sys" access_group_delete_args="--ag" access_group_add_remove_args="--ag --init" volume_enable_disable_args="--vol" volume_raidinfo_args="--vol" iscsi_chap_args="--in-user --in-pass --out-user --out-pass" fs_create_args="--name --size --pool" fs_delete_args="--fs --force" # Force ? fs_resize_args="--fs --size --force" # Force ? fs_export_args="--fs --exportpath --anonuid --auth-type --root-host --ro-host --rw-host" fs_unexport_args="--export" fs_clone_args="--src-fs --dst-name" fs_snap_create_args="--name --fs" fs_snap_delete_args="--snap --fs" fs_snap_restore_args="--snap --fs --file --fileas --force" fs_dependants_args="--fs" file_clone_args="--fs --src --dst --backing-snapshot" pool_member_info_args="--pool" volume_raid_create_args="--name --disk --raid-type --strip-size" volume_raid_create_cap_args="--sys" volume_phy_disk_cache_update_args="--vol --policy" volume_read_cache_policy_update_args="--vol --policy" volume_write_cache_policy_update_args="--vol --policy" volume_cache_info_args="--vol" volume_ident_led_on_off_args="--vol" system_read_cache_pct_update_args="--vol --read-pct" local_disk_led_args="--path" # These operations can potentially be slow and cause hangs depending on plugin and configuration if [[ ${NO_VALUE_LOOKUP} -ne 0 ]] ; then # Check if we have somthing present that we can help the user with case "${prev}" in --sys) # Is there a better way todo this? local items=`lsmcli list --type systems -t${sep} | awk -F ${sep} '{print $1}'` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 ;; --pool) # Is there a better way todo this? local items=`lsmcli list --type pools -t${sep} | awk -F ${sep} '{print $1}'` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 ;; --vol|--src-vol|--dst-vol) # Is there a better way todo this? local items=`lsmcli list --type volumes -t${sep} | awk -F ${sep} '{print $1}'` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 ;; --disk) # Is there a better way todo this? local items=`lsmcli list --type disks -t${sep} | awk -F ${sep} '{print $1}'` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 ;; --ag) # Is there a better way todo this? local items=`lsmcli list --type access_groups -t${sep} | awk -F ${sep} '{print $1}'` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 ;; --init) arg_index "--ag" i=$? # We have an access group present on the command line so filter the intiators to it if [[ ${i} -ne 255 ]]; then # It would be better if we filtered the result with the access group # if it's present on the command line already. local items=`lsmcli list --type access_groups -t${sep} --ag ${COMP_WORDS[${i}+1]} | awk -F ${sep} '{print $3}'` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 else local items=`lsmcli list --type access_groups -t${sep} | awk -F ${sep} '{print $3}'` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 fi ;; --nfs-export) # Is there a better way todo this? local items=`lsmcli list --type exports -t${sep} | awk -F ${sep} '{print $1}'` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 ;; --tgt) # Is there a better way todo this? local items=`lsmcli list --type target_ports -t${sep} | awk -F ${sep} '{print $1}'` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 ;; --fs|--src-fs) local items=`lsmcli list --type fs -t${sep} | awk -F ${sep} '{print $1}'` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 ;; --export) local items=`lsmcli list --type exports -t${sep} | awk -F ${sep} '{print $1}'` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 ;; --snap) arg_index "--fs" i=$? # We have an access group present on the command line so filter the snapshots to it if [[ ${i} -ne 255 ]]; then local items=`lsmcli list --type snapshots \ --fs ${COMP_WORDS[${i}+1]} -t${sep} | awk -F ${sep} '{print $1}'` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 else COMPREPLY=( $(compgen -W "" -- ${cur}) ) return 0 fi ;; --auth-type) local items=`lsmcli list --type nfs_client_auth -t ' '` COMPREPLY=( $(compgen -W "${items}" -- ${cur}) ) return 0 ;; *) ;; esac fi # Cases where we don't have to worry about look-up time case "${prev}" in --type) COMPREPLY=( $(compgen -W "${list_type_args}" -- ${cur}) ) return 0 ;; --size|--count|--src-start|--dst-start|--name|--in-user|--in-pass|\ --out-user|--out-pass|--exportpath|--anonuid|--root-host|--ro-host|\ --rw-host|--dest-name|--file|--fileas|--src|--dst) # These we cannot lookup, so don't offer any values COMPREPLY=( $(compgen -W "" -- ${cur}) ) return 0 ;; --rep-type) COMPREPLY=( $(compgen -W "${volume_rep_types}" -- ${cur}) ) return 0 ;; snapshots) # Specific listing case where you need a fs too if [[ ${COMP_WORDS[COMP_CWORD-2]} == '--type' && \ ${COMP_WORDS[COMP_CWORD-3]} == 'list' ]] ; then COMPREPLY=( $(compgen -W "--fs" -- ${cur}) ) return 0 fi ;; *) esac case "${COMP_WORDS[1]}" in job-status) possible_args "--job" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; list) possible_args ${list_args} COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-create|vc) possible_args "${volume_create_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-delete|vd) possible_args "${volume_delete_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-raid-info|vri) possible_args "${volume_raidinfo_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-resize|vr) possible_args "${volume_resize_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-replicate) possible_args "${volume_replicate_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-replicate-range) possible_args "${volume_replicate_range_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-replicate-range-block-size) possible_args "${volume_replication_range_bs}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-dependants|volume-dependants-rm) possible_args "${volume_dependants}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-access-group) possible_args "${volume_access_group_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-mask|volume-unmask|vm|vu) possible_args "${volume_masking_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; access-group-create|ac) possible_args "${access_group_create_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; access-group-delete|ad) possible_args "${access_group_delete_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; access-group-add|access-group-remove|aa|ar) possible_args "${access_group_add_remove_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-enable|volume-disable|ve|vi) possible_args "${volume_enable_disable_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; iscsi-chap) possible_args "${iscsi_chap_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; fs-create) possible_args "${fs_create_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; fs-delete) possible_args "${fs_delete_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; fs-resize) possible_args "${fs_resize_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; fs-export) possible_args "${fs_export_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; fs-unexport) possible_args "${fs_unexport_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; fs-clone) possible_args "${fs_clone_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; fs-snap-create) possible_args "${fs_snap_create_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; fs-snap-delete) possible_args "${fs_snap_delete_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; fs-snap-restore) possible_args "${fs_snap_restore_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; fs-dependants|fs-dependants-rm) possible_args "${fs_dependants_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; file-clone) possible_args "${file_clone_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; capabilities|c) possible_args "${cap_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; pool-member-info|pmi) possible_args "${pool_member_info_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-raid-create|vrc) possible_args "${volume_raid_create_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-raid-create-cap|vrcc) possible_args "${volume_raid_create_cap_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-phy-disk-cache-update|vpdcu) possible_args "${volume_phy_disk_cache_update_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-read-cache-policy-update|vrcpu) possible_args "${volume_read_cache_policy_update_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-write-cache-policy-update|vwcpu) possible_args "${volume_write_cache_policy_update_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-cache-info|vci) possible_args "${volume_cache_info_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; volume-ident-led-on|volume-ident-led-off|vilon|viloff) possible_args "${volume_ident_led_on_off_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; system-read-cache-pct-update|srcpu) possible_args "${system_read_cache_pct_update_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; local-disk-ident-led-on|ldilon| \ local-disk-ident-led-off|ldiloff| \ local-disk-fault-led-on|ldflon| \ local-disk-fault-led-off|ldfloff) possible_args "${local_disk_led_args}" COMPREPLY=( $(compgen -W "${potential_args}" -- ${cur}) ) return 0 ;; *) ;; esac # Handle the case where we are starting out with nothing if [[ ${prev} == 'lsmcli' ]] ; then if [[ ${cur} == --* ]] ; then COMPREPLY=( $(compgen -W "${opts_long}" -- ${cur}) ) return 0 fi if [[ ${cur} == -* ]] ; then COMPREPLY=( $(compgen -W "${opts_short}${opts_long}" -- ${cur}) ) return 0 fi if [[ ${cur} == * ]] ; then COMPREPLY=( $(compgen -W "${opts_short}${opts_long}${opts_cmds}" -- ${cur}) ) return 0 fi fi } complete -F _lsm lsmcli
Close