def check_server_power():
    """
    Check if the server is powered on
    Skip this check, if the --noPowerState is set
    """
    if power_state_flag:
        power_state = get_data(sess, oid_power_state, helper)
        power_state_summary_output, power_state_long_output = state_summary(power_state, 'Server power', server_power_state, helper, server_power_state[3])
        add_output(power_state_summary_output, power_state_long_output, helper)
Check if the server is powered on
    Skip this check, if the --noPowerState is set