Path : /proc/2/root/proc/3/cwd/var/lib/zabbix/ |
Current File : //proc/2/root/proc/3/cwd/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