nfsiostat command fails with "ValueError: invalid literal for long() with base 10: 'device'"

Solution Verified - Updated -

Issue

  • nfsiostat command fails with below error:
# nfsiostat
Traceback (most recent call last):
  File "/usr/sbin/nfsiostat", line 639, in 
    iostat_command(prog)
  File "/usr/sbin/nfsiostat", line 592, in iostat_command
    devices = list_nfs_mounts(origdevices, mountstats)
  File "/usr/sbin/nfsiostat", line 495, in list_nfs_mounts
    stats.parse_stats(descr)
  File "/usr/sbin/nfsiostat", line 179, in parse_stats
    self.__parse_rpc_line(words)
  File "/usr/sbin/nfsiostat", line 163, in __parse_rpc_line
    self.__rpc_data[op] = [long(word) for word in words[1:]]
ValueError: invalid literal for long() with base 10: 'device'

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • seen on nfs-utils-1.3.0-0.48.el7_4.3 and below.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In