forked from CESNET/ipfixprobe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathipfixprobe.bash.in
More file actions
28 lines (24 loc) · 817 Bytes
/
ipfixprobe.bash.in
File metadata and controls
28 lines (24 loc) · 817 Bytes
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
# file: nemea-completion.sh
# flow_meter parameter-completion
_flow_meter ()
{
local cur prev words cword
_init_completion || return
case "$prev" in
-I)
COMPREPLY=( $( compgen -W "$(cat /proc/net/dev | cut -f1 -d: |tail -n +3)" -- $cur ) )
return 0;;
-r)
COMPREPLY=( $( compgen -f -- "$cur" ) )
return 0;;
-p)
startpart=$(echo $cur | grep , | sed 's/,[^,]*$/,/')
COMPREPLY=( $( compgen -W "${startpart}basic ${startpart}sip ${startpart}http ${startpart}ntp ${startpart}arp ${startpart}dns" -- $cur ) )
return 0;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W '-p -c -I -r -t -s -S -m -V -v --help -h -i' -- $cur ) );;
esac
return 0
} && complete -F _flow_meter -o filenames ./flow_meter @BINDIR@/flow_meter