Path : /proc/2/cwd/proc/2/cwd/proc/2/cwd/proc/2/task/2/cwd/var/lib/zabbix/ |
Current File : //proc/2/cwd/proc/2/cwd/proc/2/cwd/proc/2/task/2/cwd/var/lib/zabbix/ipmitool_sdr.sh |
#!/bin/bash name=$(echo $7 | awk -F "_" '{print $1}') ID=$(echo $7 | awk -F "_" '{print $2}') ipmitool -I "$1" -H "$2" -U "$3" -P "$4" -L "$5" sdr type "$6" |grep -w "^$name \s" |grep "$ID" | awk -F "|" '{print $3 $5}'