Subversion Repositories ALCASAR

Rev

Rev 2770 | Rev 3037 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2770 Rev 2976
Line 26... Line 26...
26
     */
26
     */
27
    public function __construct()
27
    public function __construct()
28
    {
28
    {
29
        parent::__construct();
29
        parent::__construct();
30
        $lines = "";
30
        $lines = "";
31
        switch (defined('PSI_SENSOR_IPMITOOL_ACCESS')?strtolower(PSI_SENSOR_IPMITOOL_ACCESS):'command') {
31
        if (!defined('PSI_EMU_HOSTNAME')) switch (defined('PSI_SENSOR_IPMITOOL_ACCESS')?strtolower(PSI_SENSOR_IPMITOOL_ACCESS):'command') {
32
        case 'command':
32
        case 'command':
33
            CommonFunctions::executeProgram('ipmitool', 'sensor -v', $lines);
33
            CommonFunctions::executeProgram('ipmitool', 'sensor -v', $lines);
34
            break;
34
            break;
35
        case 'data':
35
        case 'data':
36
            CommonFunctions::rfts(PSI_APP_ROOT.'/data/ipmitool.txt', $lines);
36
            CommonFunctions::rfts(PSI_APP_ROOT.'/data/ipmitool.txt', $lines);