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

Add 'disks' fact resolver for AIX

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: FACT 3.5.0
    • Fix Version/s: FACT 3.6.0
    • Component/s: PE
    • Labels:
      None
    • Environment:

      FACT 3.4 / AIX 5.3, 6.1, 7.1 / PE 2016.2

    • Template:
    • Acceptance Criteria:
      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.
    • Team:
      Agent
    • Story Points:
      3
    • Sprint:
      AP 2017-01-11, AP 2017-01-25
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Add support for the "disks", "filesystems", "mountpoints", and "partitions" facts on AIX.
    • QA Risk Assessment:
      Manual
    • QA Risk Assessment Reason:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support