src/MIBS/Extreme/System/Common.php
public function powerSupplyStatus( $translate = false )
    {
        $states = $this->getSNMP()->walk1d( self::OID_POWER_SUPPLY_STATUS );

        if( !$translate )
            return $states;

        return $this->getSNMP()->translate( $states, self::$POWER_SUPPLY_STATES );
    }
public function powerSupplyStatus( $translate = false )
    {
        $states = $this->getSNMP()->walk1d( self::OID_POWER_SUPPLY_STATUS );

        if( !$translate )
            return $states;

        return $this->getSNMP()->translate( $states, self::$POWER_SUPPLY_STATES );
    }
public function powerSupplyStatus ( $ translate = false ) { $ states = $ this -> getSNMP ( ) -> walk1d ( self :: OID_POWER_SUPPLY_STATUS ) ; if ( ! $ translate ) return $ states ; return $ this -> getSNMP ( ) -> translate ( $ states , self :: $ POWER_SUPPLY_STATES ) ; }
Get the identifiers of the power supplies

E.g. from a X670V-48x without $translate:

[
[1] => 2
[2] => 2
]

E.g. from a X670V-48x with $translate:

[
[1] => "presentOK"
[2] => "presentOK"
]

@param boolean $translate If true, return the string representation via self::$POWER_SUPPLY_STATES
@return array Identifiers of the power supplies
Get the identifiers of the power supplies