⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Zabbix Configs
All Projects
DuckCorp
»
DuckCorp Infrastructure
»
Zabbix Configs
Overview
Activity
Issues
Repository
Download (275 Bytes)
Statistics
| Branch:
master
| Revision:
root
/
scripts
/
stat_3ware_units_disco
@ 96ba0c24
View
History
Annotate
#!/bin/sh
list
=
for
CONTROLLER
in
$(
tw_cli show |
grep
-E
"^c[0-9]+"
|
cut
-f1
-d
" "
)
;
do
for
UNIT
in
$(
tw_cli /
${
CONTROLLER
}
show |
grep
-E
"^u[0-9]+"
|
cut
-f1
-d
" "
)
;
do
list
=
$list
',{"{#UNIT}":"'
/
${
CONTROLLER
}
/
${
UNIT
}
'"}'
done
done
echo
'{"data":['
${
list
#,
}
']}'
« Previous
1
2
3
4
…
14
Next »
(2-2/14)
Loading...