Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-53859

Executing oscap in verbose mode fails with "oscap: unrecognized option '--verbose'"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • openscap
    • None
    • No
    • None
    • rhel-sst-security-compliance
    • ssg_security
    • None
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • None

      What were you trying to do that didn't work?

      Executing oscap in verbose mode fails with "oscap: unrecognized option '--verbose'"

      Please provide the package NVR for which bug is seen:

      1. oscap --version
        OpenSCAP command line tool (oscap) 1.3.10
        Copyright 2009--2023 Red Hat Inc., Durham, North Carolina.

      ==== Supported specifications ====
      SCAP Version: 1.3
      XCCDF Version: 1.2
      OVAL Version: 5.11.1
      CPE Version: 2.3
      CVSS Version: 2.0
      CVE Version: 2.0
      Asset Identification Version: 1.1
      Asset Reporting Format Version: 1.1
      CVRF Version: 1.1

      How reproducible:

      100%

      Steps to reproduce

      Execute oscap in verbose mode in RHEL-8
      ~~~~~~~~~~~~~~~~~

      1. oscap xccdf eval --profile ospp --verbose DEVEL --verbose-log-file log.txt --report eval_postinstall_report.html /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml
        oscap: unrecognized option '-verbose' ===========> Fails with unrecognized option '-verbose'

      ~~~~~~~~~~~~~~~~~

      The option exists however it fails when passed as an argument.

      ~~~~~~~~~~~~~~~~~

      1. oscap xccdf eval -h
        oscap -> xccdf -> eval

      Perform evaluation driven by XCCDF file and use OVAL as checking engine

      Usage: oscap [options] xccdf eval [options] INPUT_FILE [oval-definitions-files]

      Common options:
      --verbose <verbosity_level> - Turn on verbose mode at specified verbosity level.
      Verbosity level must be one of: DEVEL, INFO, WARNING, ERROR.
      --verbose-log-file <file> - Write verbose information into file.
      ~~~~~~~~~~~~~~~~~

      Expected results

      oscap should run in verbose mode.

      Actual results

      oscap: unrecognized option '--verbose'

              jcerny@redhat.com Jan Cerny
              rhn-support-sadas Satyajit Das
              Jan Cerny Jan Cerny
              SSG Security QE SSG Security QE
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: