[Bug 1616596] Re: ziomon_util: Unexpected return code

Dimitri John Ledkov launchpad at surgut.co.uk
Thu Sep 15 14:04:34 UTC 2016


@ maier

Is code review for s390-tools public? E.g. on github?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to s390-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1616596

Title:
  ziomon_util: Unexpected return code

Status in Ubuntu on IBM z Systems:
  Fix Released
Status in s390-tools package in Ubuntu:
  Fix Released

Bug description:
  $ lsb_release -rd
  Description: Ubuntu 16.04 LTS
  Release: 16.04

  $ apt-cache policy s390-tools
  s390-tools:
    Installed: 1.34.0-0ubuntu8.1
    Candidate: 1.34.0-0ubuntu8.1

  When benign options such as --help or --version are passed to ziomon_util the expected output is printed but the return code is non-zero. The unexpected return code is shown here:
      ubuntu at s5lp1-gen01:~$ ziomon_util --help
      Usage: ziomon_util [-h] [-v] [-V] [-i n] [-s n] [-Q <msgq_path> -q <msgq_id>
                         -m <msg_id>] -d n -a <n> -l <lun>

      Start the monitor for the host adapter utilization.
      Example: ziomon_util -d 60 -i 4 -a 0

      -h, --help            Print usage information and exit.
      -v, --version         Print version information and exit.
      -V, --verbose         Be verbose.
      -s, --sample-length   Duration between each sample in seconds.
                            Defaults to 2 seconds.
      -i, --interval-length Aggregate samples over this duration (in seconds).
                            Defaults to 'duration'.
      -d, --duration        Overall duration in seconds.
      -a, --adapter         Host adapter no. to watch. Specify each host adapter
                            separately.
      -l, --lun             watch I/O error count of LUN. Specify each LUN
                            separately in h:b:t:l format.
      -Q, --msg-queue-name  Specify the message queue path name.
      -q, --msg-queue-id    Specify the message queue id.
      -m, --msg-id          Specify the message id to use.
      -L, --msg-id-ioerr    Specify the message id for I/O error count messages.
      ubuntu at s5lp1-gen01:~$ echo $?
      255

      ubuntu at s5lp1-gen01:~$ ziomon_util --version
      ziomon_util: ziomon utilization monitor, version 1.34.0-build-20160609
      Copyright IBM Corp. 2008
      ubuntu at s5lp1-gen01:~$ echo $?
      255

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1616596/+subscriptions



More information about the foundations-bugs mailing list