void ipmi_raw_argp_parse (int argc, char **argv, struct ipmi_raw_arguments *cmd_args) { assert (argc >= 0); assert (argv); assert (cmd_args); init_common_cmd_args_admin (&(cmd_args->common_args)); cmd_args->cmd_file = NULL; memset (cmd_args->cmd, '\0', sizeof (uint8_t) * IPMI_RAW_MAX_ARGS); cmd_args->cmd_length = 0; argp_parse (&cmdline_config_file_argp, argc, argv, ARGP_IN_ORDER, NULL, &(cmd_args->common_args)); _ipmi_raw_config_file_parse (cmd_args); argp_parse (&cmdline_argp, argc, argv, ARGP_IN_ORDER, NULL, cmd_args); verify_common_cmd_args (&(cmd_args->common_args)); }
void ipmi_fru_argp_parse (int argc, char **argv, struct ipmi_fru_arguments *cmd_args) { assert (argc >= 0); assert (argv); assert (cmd_args); init_common_cmd_args_user (&(cmd_args->common_args)); cmd_args->device_id = 0; cmd_args->device_id_set = 0; cmd_args->verbose_count = 0; /* legacy */ cmd_args->skip_checks = 0; cmd_args->bridge_fru = 0; cmd_args->interpret_oem_data = 0; argp_parse (&cmdline_config_file_argp, argc, argv, ARGP_IN_ORDER, NULL, &(cmd_args->common_args)); _ipmi_fru_config_file_parse (cmd_args); argp_parse (&cmdline_argp, argc, argv, ARGP_IN_ORDER, NULL, cmd_args); verify_common_cmd_args (&(cmd_args->common_args)); }
void bmc_info_argp_parse (int argc, char **argv, struct bmc_info_arguments *cmd_args) { assert (argc >= 0); assert (argv); assert (cmd_args); init_common_cmd_args_user (&(cmd_args->common_args)); cmd_args->get_device_id = 0; cmd_args->get_device_guid = 0; cmd_args->get_system_guid = 0; cmd_args->get_system_info = 0; cmd_args->get_channel_info = 0; cmd_args->interpret_oem_data = 0; argp_parse (&cmdline_config_file_argp, argc, argv, ARGP_IN_ORDER, NULL, &(cmd_args->common_args)); _bmc_info_config_file_parse (cmd_args); argp_parse (&cmdline_argp, argc, argv, ARGP_IN_ORDER, NULL, cmd_args); verify_common_cmd_args (&(cmd_args->common_args)); }
void ipmi_chassis_config_argp_parse (int argc, char **argv, struct ipmi_chassis_config_arguments *cmd_args) { assert (argc >= 0); assert (argv); assert (cmd_args); init_config_args (&(cmd_args->config_args)); init_common_cmd_args_admin (&(cmd_args->config_args.common_args)); argp_parse (&cmdline_config_file_argp, argc, argv, ARGP_IN_ORDER, NULL, &(cmd_args->config_args.common_args)); _ipmi_chassis_config_config_file_parse (cmd_args); argp_parse (&cmdline_argp, argc, argv, ARGP_IN_ORDER, NULL, cmd_args); verify_common_cmd_args (&(cmd_args->config_args.common_args)); _ipmi_chassis_config_config_args_validate (cmd_args); }
void ipmi_chassis_argp_parse (int argc, char **argv, struct ipmi_chassis_arguments *cmd_args) { assert (argc >= 0); assert (argv); assert (cmd_args); init_common_cmd_args_admin (&(cmd_args->common_args)); cmd_args->get_chassis_capabilities = 0; cmd_args->get_chassis_status = 0; cmd_args->chassis_control = 0; cmd_args->chassis_control_arg = 0; cmd_args->chassis_identify = 0; cmd_args->chassis_identify_args.identify_interval = 0; cmd_args->chassis_identify_args.force_identify = 0; cmd_args->set_power_restore_policy = 0; cmd_args->set_power_restore_policy_arg = 0; cmd_args->set_power_cycle_interval = 0; cmd_args->set_power_cycle_interval_arg = 0; cmd_args->get_system_restart_cause = 0; cmd_args->get_power_on_hours_counter = 0; cmd_args->set_system_boot_options = 0; cmd_args->set_system_boot_options_args.bios_boot_type = 0; cmd_args->set_system_boot_options_args.lock_out_reset_button = 0; cmd_args->set_system_boot_options_args.screen_blank = 0; cmd_args->set_system_boot_options_args.boot_device = 0; cmd_args->set_system_boot_options_args.lock_keyboard = 0; cmd_args->set_system_boot_options_args.cmos_clear = 0; cmd_args->set_system_boot_options_args.console_redirection = 0; cmd_args->set_system_boot_options_args.user_password_bypass = 0; cmd_args->set_system_boot_options_args.force_progress_event_traps = 0; cmd_args->set_system_boot_options_args.firmware_bios_verbosity = 0; cmd_args->get_system_boot_options = 0; argp_parse (&cmdline_config_file_argp, argc, argv, ARGP_IN_ORDER, NULL, &(cmd_args->common_args)); _ipmi_chassis_config_file_parse (cmd_args); argp_parse (&cmdline_argp, argc, argv, ARGP_IN_ORDER, NULL, cmd_args); verify_common_cmd_args (&(cmd_args->common_args)); _ipmi_chassis_args_validate (cmd_args); }
void ipmi_dcmi_argp_parse (int argc, char **argv, struct ipmi_dcmi_arguments *cmd_args) { assert (argc >= 0); assert (argv); assert (cmd_args); init_common_cmd_args_admin (&(cmd_args->common_args)); cmd_args->get_dcmi_capability_info = 0; cmd_args->get_asset_tag = 0; cmd_args->set_asset_tag = 0; cmd_args->set_asset_tag_arg = NULL; cmd_args->get_management_controller_identifier_string = 0; cmd_args->set_management_controller_identifier_string = 0; cmd_args->set_management_controller_identifier_string_arg = NULL; cmd_args->get_dcmi_sensor_info = 0; cmd_args->get_system_power_statistics = 0; cmd_args->get_enhanced_system_power_statistics = 0; cmd_args->get_power_limit = 0; cmd_args->set_power_limit = 0; cmd_args->exception_actions = 0; cmd_args->power_limit_requested = 0; cmd_args->correction_time_limit = 0; cmd_args->statistics_sampling_period = 0; cmd_args->activate_deactivate_power_limit = 0; cmd_args->interpret_oem_data = 0; argp_parse (&cmdline_config_file_argp, argc, argv, ARGP_IN_ORDER, NULL, &(cmd_args->common_args)); _ipmi_dcmi_config_file_parse (cmd_args); argp_parse (&cmdline_argp, argc, argv, ARGP_IN_ORDER, NULL, cmd_args); verify_common_cmd_args (&(cmd_args->common_args)); _ipmi_dcmi_args_validate (cmd_args); }
void ipmiconsole_argp_parse (int argc, char **argv, struct ipmiconsole_arguments *cmd_args) { assert (argc >= 0); assert (argv); assert (cmd_args); init_common_cmd_args_admin (&(cmd_args->common_args)); /* ipmiconsole differences */ cmd_args->common_args.driver_type = IPMI_DEVICE_LAN_2_0; cmd_args->common_args.session_timeout = 60000; cmd_args->common_args.retransmission_timeout = 500; cmd_args->escape_char = '&'; cmd_args->dont_steal = 0; cmd_args->deactivate = 0; cmd_args->serial_keepalive = 0; cmd_args->serial_keepalive_empty = 0; cmd_args->sol_payload_instance = 0; cmd_args->deactivate_all_instances = 0; cmd_args->lock_memory = 0; #ifndef NDEBUG cmd_args->debugfile = 0; cmd_args->noraw = 0; #endif /* NDEBUG */ argp_parse (&cmdline_config_file_argp, argc, argv, ARGP_IN_ORDER, NULL, &(cmd_args->common_args)); _ipmiconsole_config_file_parse (cmd_args); argp_parse (&cmdline_argp, argc, argv, ARGP_IN_ORDER, NULL, cmd_args); verify_common_cmd_args (&(cmd_args->common_args)); _ipmiconsole_args_validate (cmd_args); }
void ipmi_config_argp_parse (int argc, char *argv[], struct ipmi_config_arguments *cmd_args) { assert (argc >= 0); assert (argv); assert (cmd_args); init_common_cmd_args_admin (&(cmd_args->common_args)); cmd_args->category_mask = IPMI_CONFIG_CATEGORY_MASK_CORE; cmd_args->action = 0; cmd_args->verbose_count = 0; cmd_args->filename = NULL; cmd_args->lan_channel_number = 0; cmd_args->lan_channel_number_set = 0; cmd_args->serial_channel_number = 0; cmd_args->serial_channel_number_set = 0; cmd_args->sol_channel_number = 0; cmd_args->sol_channel_number_set = 0; cmd_args->keypairs = NULL; cmd_args->section_strs = NULL; cmd_args->info = 0; argp_parse (&cmdline_config_file_argp, argc, argv, ARGP_IN_ORDER, NULL, &(cmd_args->common_args)); _ipmi_config_config_file_parse (cmd_args); argp_parse (&cmdline_argp, argc, argv, ARGP_IN_ORDER, NULL, cmd_args); verify_common_cmd_args (&(cmd_args->common_args)); _ipmi_config_args_validate (cmd_args); }
void ipmi_fru_argp_parse (int argc, char **argv, struct ipmi_fru_arguments *cmd_args) { init_common_cmd_args_user (&(cmd_args->common)); init_sdr_cmd_args (&(cmd_args->sdr)); init_hostrange_cmd_args (&(cmd_args->hostrange)); cmd_args->device_id = 0; cmd_args->device_id_set = 0; cmd_args->verbose_count = 0; cmd_args->skip_checks = 0; argp_parse (&cmdline_config_file_argp, argc, argv, ARGP_IN_ORDER, NULL, &(cmd_args->common)); _ipmi_fru_config_file_parse(cmd_args); argp_parse (&cmdline_argp, argc, argv, ARGP_IN_ORDER, NULL, cmd_args); verify_common_cmd_args (&(cmd_args->common)); verify_sdr_cmd_args (&(cmd_args->sdr)); verify_hostrange_cmd_args (&(cmd_args->hostrange)); }
void ipmi_sensors_argp_parse (int argc, char **argv, struct ipmi_sensors_arguments *cmd_args) { int i; init_common_cmd_args_operator (&(cmd_args->common)); init_sdr_cmd_args (&(cmd_args->sdr)); init_hostrange_cmd_args (&(cmd_args->hostrange)); cmd_args->verbose = 0; cmd_args->verbose_count = 0; cmd_args->quiet_readings = 0; cmd_args->sdr_info = 0; cmd_args->list_groups = 0; cmd_args->groups_wanted = 0; for (i = 0; i < IPMI_SENSORS_MAX_GROUPS; i++) memset(cmd_args->groups[i], '\0', IPMI_SENSORS_MAX_GROUPS_STRING_LENGTH+1); cmd_args->groups_length = 0; cmd_args->sensors_wanted = 0; memset(cmd_args->sensors, '\0', sizeof(unsigned int)*IPMI_SENSORS_MAX_RECORD_IDS); cmd_args->sensors_length = 0; cmd_args->bridge_sensors = 0; argp_parse (&cmdline_config_file_argp, argc, argv, ARGP_IN_ORDER, NULL, &(cmd_args->common)); _ipmi_sensors_config_file_parse(cmd_args); argp_parse (&cmdline_argp, argc, argv, ARGP_IN_ORDER, NULL, cmd_args); verify_common_cmd_args (&(cmd_args->common)); verify_sdr_cmd_args (&(cmd_args->sdr)); verify_hostrange_cmd_args (&(cmd_args->hostrange)); _ipmi_sensors_args_validate (cmd_args); }
void ipmi_oem_argp_parse (int argc, char **argv, struct ipmi_oem_arguments *cmd_args) { assert (argc >= 0); assert (argv); assert (cmd_args); init_common_cmd_args_admin (&(cmd_args->common_args)); cmd_args->list = 0; cmd_args->verbose_count = 0; cmd_args->oem_id = NULL; cmd_args->oem_command = NULL; memset (cmd_args->oem_options, '\0', sizeof (char *) * IPMI_OEM_MAX_ARGS); cmd_args->oem_options_count = 0; argp_parse (&cmdline_config_file_argp, argc, argv, ARGP_IN_ORDER, NULL, &(cmd_args->common_args)); _ipmi_oem_config_file_parse (cmd_args); argp_parse (&cmdline_argp, argc, argv, ARGP_IN_ORDER, NULL, cmd_args); verify_common_cmd_args (&(cmd_args->common_args)); }
void bmc_device_argp_parse (int argc, char **argv, struct bmc_device_arguments *cmd_args) { assert (argc >= 0); assert (argv); assert (cmd_args); init_common_cmd_args_admin (&(cmd_args->common_args)); cmd_args->cold_reset = 0; cmd_args->warm_reset = 0; cmd_args->get_self_test_results = 0; cmd_args->get_acpi_power_state = 0; cmd_args->set_acpi_power_state = 0; cmd_args->set_acpi_power_state_args.system_power_state = IPMI_ACPI_SYSTEM_POWER_STATE_NO_CHANGE; cmd_args->set_acpi_power_state_args.device_power_state = IPMI_ACPI_DEVICE_POWER_STATE_NO_CHANGE; cmd_args->get_lan_statistics = 0; cmd_args->clear_lan_statistics = 0; cmd_args->rearm_sensor = 0; cmd_args->rearm_sensor_arg = NULL; cmd_args->get_sdr_repository_time = 0; cmd_args->set_sdr_repository_time = 0; cmd_args->set_sdr_repository_time_arg = NULL; cmd_args->get_sel_time = 0; cmd_args->set_sel_time = 0; cmd_args->set_sel_time_arg = NULL; cmd_args->get_sel_time_utc_offset = 0; cmd_args->set_sel_time_utc_offset = 0; cmd_args->set_sel_time_utc_offset_arg = NULL; cmd_args->platform_event = 0; cmd_args->platform_event_arg = NULL; cmd_args->set_sensor_reading_and_event_status = 0; cmd_args->set_sensor_reading_and_event_status_arg = NULL; cmd_args->get_mca_auxiliary_log_status = 0; cmd_args->get_ssif_interface_capabilities = 0; cmd_args->get_kcs_interface_capabilities = 0; cmd_args->get_bt_interface_capabilities = 0; cmd_args->get_bmc_global_enables = 0; cmd_args->set_system_firmware_version = 0; cmd_args->set_system_firmware_version_arg = NULL; cmd_args->set_system_name = 0; cmd_args->set_system_name_arg = NULL; cmd_args->set_primary_operating_system_name = 0; cmd_args->set_primary_operating_system_name_arg = NULL; cmd_args->set_operating_system_name = 0; cmd_args->set_operating_system_name_arg = NULL; cmd_args->set_present_os_version_number = 0; cmd_args->set_present_os_version_number_arg = NULL; cmd_args->set_bmc_url = 0; cmd_args->set_bmc_url_arg = NULL; cmd_args->set_base_os_hypervisor_url = 0; cmd_args->set_base_os_hypervisor_url_arg = NULL; cmd_args->read_fru = 0; cmd_args->read_fru_filename = NULL; cmd_args->write_fru = 0; cmd_args->write_fru_filename = NULL; cmd_args->device_id_set = 0; cmd_args->verbose = 0; argp_parse (&cmdline_config_file_argp, argc, argv, ARGP_IN_ORDER, NULL, &(cmd_args->common_args)); _bmc_device_config_file_parse (cmd_args); argp_parse (&cmdline_argp, argc, argv, ARGP_IN_ORDER, NULL, cmd_args); verify_common_cmd_args (&(cmd_args->common_args)); _bmc_device_args_validate (cmd_args); }