Browsed by
Category: Varie

OpsView wrong ipmi result

OpsView wrong ipmi result

Opsview cache the result into /var/log/nagios/.freeipmi/sdr-cache with file named by ip address.

Remove them to recreate cache from new device

How to decode error_reporting value

How to decode error_reporting value

<?php
    $error_number = 22527;
    $error_description = array( );
    $error_codes = array(
        E_ERROR              => "E_ERROR",
        E_WARNING            => "E_WARNING",
        E_PARSE              => "E_PARSE",
        E_NOTICE             => "E_NOTICE",
        E_CORE_ERROR         => "E_CORE_ERROR",
        E_CORE_WARNING       => "E_CORE_WARNING",
        E_COMPILE_ERROR      => "E_COMPILE_ERROR",
        E_COMPILE_WARNING    => "E_COMPILE_WARNING",
        E_USER_ERROR         => "E_USER_ERROR",
        E_USER_WARNING       => "E_USER_WARNING",
        E_USER_NOTICE        => "E_USER_NOTICE",
        E_STRICT             => "E_STRICT",
        E_RECOVERABLE_ERROR  => "E_RECOVERABLE_ERROR",
        E_DEPRECATED         => "E_DEPRECATED",
        E_USER_DEPRECATED    => "E_USER_DEPRECATED",
        E_ALL                => "E_ALL"
    );
    foreach( $error_codes as $number => $description )
    {
        if ( ( $number & $error_number ) == $number )
        {
            $error_description[ ] = $description;
        }
    }
    echo sprintf(
        "error number %d corresponds to:\n%s",
        $error_number,
        implode( " | ", $error_description )
    );
?>
Adaptec 3805 CIM for ESXi5

Adaptec 3805 CIM for ESXi5

Install CIM provider 7.30 attached (downloaded from Adaptec web site) cim_vmware_v7_30_18837
esxcli software vib install -f -v file:/vmfs/volume/datastore1/filename.vib
Open ESXi firewall to CIM provider port

Create symbolic link on esxi
ln -s /dev/aac0 /dev/aac

I have not yet checked what happens on esxi reboot if link is lost (I think)