Path : /proc/2/root/var/lib/zabbix/ |
Current File : //proc/2/root/var/lib/zabbix/ipmiinfo.sh |
#!/bin/bash type=$(/usr/bin/facter virtual) if [[ ${type} == "physical" ]]; then echo $(sudo /usr/bin/ipmitool lan print | grep "IP Address\s*:" | awk -F ":" '{print $2}') else echo "$type" fi