Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1552

Add 'disks' fact resolver for AIX

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • FACT 3.5.0
    • FACT 3.6.0
    • PE
    • None
    • FACT 3.4 / AIX 5.3, 6.1, 7.1 / PE 2016.2

    • Hide

      On AIX, this `disks` structured fact returns correct information, with level of detail equivalent to other operating systems.

      Show
      On AIX, this `disks` structured fact returns correct information, with level of detail equivalent to other operating systems.
    • Agent
    • 3
    • AP 2017-01-11, AP 2017-01-25
    • New Feature
    • Add support for the "disks", "filesystems", "mountpoints", and "partitions" facts on AIX.
    • Manual
    • Easily tested in unit testing (spec); work-around exists

    Description

      There is no output for the 'disks' structured fact on AIX.

      Customers have been able to work around it with custom facts, but it should be included in core facter.

      XXX_disks
          lspvOuts = `lspv | awk ' $4 == "active" { print $1 } '`
          #puts "#{lspvOuts}"
          for lspvOut in lspvOuts.split(/\s+/)
            getconfOut = %x<getconf DISK_SIZE /dev/#{lspvOut}>
       
      XXX_mountpoints
          lsvgOuts = `lsvg`
          for lsvgOut in lsvgOuts.split(/\s+/)
            lsvgfsOuts = %x<lsvgfs #{lsvgOut}>
            for lsvgfsOut in lsvgfsOuts.split(/\s+/)
              dfOut = %x<df -g #{lsvgfsOut} | grep -v ^Filesystem | awk '{print $7,$1,$2}'>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            eric.sorenson Eric Sorenson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support