Skip to content

Instantly share code, notes, and snippets.

@tek0011
Last active February 8, 2018 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tek0011/73c38c66c8cf3a330306a8b9a8b0cae4 to your computer and use it in GitHub Desktop.
Save tek0011/73c38c66c8cf3a330306a8b9a8b0cae4 to your computer and use it in GitHub Desktop.
Without touching the hba_fc_passthrough file (where I move the facter resolution outside the if statement)
C:\Users\Administrator>facter -p --debug --trace --strict
2018-02-08 10:18:00.692836 INFO puppetlabs.facter - executed with command line: -p --debug --trace --strict.
2018-02-08 10:18:00.708482 DEBUG leatherman.dynamic_library:62 - no loaded libraries found matching pattern ^[^_]*ruby(\d)?(\d)?(\d)?\.dll$
2018-02-08 10:18:00.708482 DEBUG leatherman.ruby:510 - ruby was found at "C:\Program Files\Puppet Labs\Puppet\sys\ruby\bin\ruby.exe".
2018-02-08 10:18:00.708482 DEBUG leatherman.execution:92 - executing command: C:\Program Files\Puppet Labs\Puppet\sys\ruby\bin\ruby.exe -e print(['libdir', 'archlibdir', 'sitearchlibdir', 'bindir'].find do |name|dir = RbConfig::CONFIG[name];next unless dir;file = File.join(dir, RbConfig::CONFIG['LIBRUBY_SO']);break file if File.exist? file;false end)
2018-02-08 10:18:00.880359 DEBUG | - C:/Program Files/Puppet Labs/Puppet/sys/ruby/bin/x64-msvcrt-ruby210.dll
2018-02-08 10:18:00.880359 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:00.880359 INFO leatherman.ruby:138 - ruby loaded from "C:/Program Files/Puppet Labs/Puppet/sys/ruby/bin/x64-msvcrt-ruby210.dll".
2018-02-08 10:18:00.989751 INFO leatherman.ruby:187 - using ruby version 2.1.9
2018-02-08 10:18:00.989751 INFO puppetlabs.facter - resolving all facts.
2018-02-08 10:18:00.989751 DEBUG puppetlabs.facter - fact "facterversion" has resolved to "3.6.8".
2018-02-08 10:18:00.989751 DEBUG puppetlabs.facter - fact "aio_agent_version" has resolved to "1.10.9".
2018-02-08 10:18:00.989751 DEBUG leatherman.windows:42 - initializing WMI
2018-02-08 10:18:01.020996 DEBUG puppetlabs.facter - initializing Winsock
2018-02-08 10:18:01.023371 DEBUG leatherman.file_util:65 - Error reading file: The system cannot find the path specified
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - loading external fact directories from config file
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - fact "facterversion" has resolved to "3.6.8".
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - fact "aio_agent_version" has resolved to "1.10.9".
2018-02-08 10:18:02.898578 DEBUG leatherman.windows:42 - initializing WMI
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - searching "C:\ProgramData\PuppetLabs\facter\facts.d" for external facts.
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - searching "C:/ProgramData/PuppetLabs/puppet/cache/facts.d" for external facts.
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - checking execution on C:/ProgramData/PuppetLabs/puppet/cache/facts.d\cygwin_packages.ps1
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\cygwin_packages.ps1".
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - resolving operating system facts.
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - resolving kernel facts.
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - fact "kernel" has resolved to "windows".
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - fact "kernelrelease" has resolved to "10.0.14393".
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - fact "kernelmajversion" has resolved to "10.0".
2018-02-08 10:18:02.898578 DEBUG puppetlabs.facter - fact "kernelversion" has resolved to "10.0.14393".
2018-02-08 10:18:02.929828 DEBUG puppetlabs.facter - fact "osfamily" has resolved to "windows".
2018-02-08 10:18:02.929828 DEBUG puppetlabs.facter - fact "operatingsystemmajrelease" has resolved to "2016".
2018-02-08 10:18:02.929828 DEBUG puppetlabs.facter - fact "operatingsystemrelease" has resolved to "2016".
2018-02-08 10:18:02.929828 DEBUG puppetlabs.facter - fact "hardwaremodel" has resolved to "x86_64".
2018-02-08 10:18:02.929828 DEBUG puppetlabs.facter - fact "architecture" has resolved to "x64".
2018-02-08 10:18:02.929828 DEBUG puppetlabs.facter - fact "operatingsystem" has resolved to "windows".
2018-02-08 10:18:02.929828 DEBUG puppetlabs.facter - fact "system32" has resolved to "C:\Windows\system32".
2018-02-08 10:18:02.929828 DEBUG puppetlabs.facter - fact "os" has resolved to {
architecture => "x64",
family => "windows",
hardware => "x86_64",
name => "windows",
release => {
full => "2016",
major => "2016"
},
windows => {
system32 => "C:\Windows\system32"
}
}.
2018-02-08 10:18:02.929828 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -File C:/ProgramData/PuppetLabs/puppet/cache/facts.d\cygwin_packages.ps1
2018-02-08 10:18:03.492387 DEBUG | - cygwin_pkglist=na
2018-02-08 10:18:03.492387 DEBUG puppetlabs.facter - fact "cygwin_pkglist" has resolved to "na".
2018-02-08 10:18:03.539267 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:03.539267 DEBUG puppetlabs.facter - completed resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\cygwin_packages.ps1".
2018-02-08 10:18:03.539267 DEBUG puppetlabs.facter - checking execution on C:/ProgramData/PuppetLabs/puppet/cache/facts.d\intel_nics.ps1
2018-02-08 10:18:03.539267 DEBUG puppetlabs.facter - resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\intel_nics.ps1".
2018-02-08 10:18:03.539267 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -File C:/ProgramData/PuppetLabs/puppet/cache/facts.d\intel_nics.ps1
2018-02-08 10:18:05.773876 DEBUG | - intel_nics=True
2018-02-08 10:18:05.773876 DEBUG puppetlabs.facter - fact "intel_nics" has resolved to "True".
2018-02-08 10:18:05.773876 DEBUG | - intel_nics=True
2018-02-08 10:18:05.773876 DEBUG puppetlabs.facter - fact "intel_nics" has changed from "True" to "True".
2018-02-08 10:18:05.773876 DEBUG | - intel_nics=True
2018-02-08 10:18:05.773876 DEBUG puppetlabs.facter - fact "intel_nics" has changed from "True" to "True".
2018-02-08 10:18:05.773876 DEBUG | - intel_nics=True
2018-02-08 10:18:05.773876 DEBUG puppetlabs.facter - fact "intel_nics" has changed from "True" to "True".
2018-02-08 10:18:05.820756 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:05.836380 DEBUG puppetlabs.facter - completed resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\intel_nics.ps1".
2018-02-08 10:18:05.836380 DEBUG puppetlabs.facter - checking execution on C:/ProgramData/PuppetLabs/puppet/cache/facts.d\nagles_results.ps1
2018-02-08 10:18:05.836380 DEBUG puppetlabs.facter - resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\nagles_results.ps1".
2018-02-08 10:18:05.836380 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -File C:/ProgramData/PuppetLabs/puppet/cache/facts.d\nagles_results.ps1
2018-02-08 10:18:07.930352 DEBUG | - nagles_global_interruptmoderation=Disabled
2018-02-08 10:18:07.930352 DEBUG puppetlabs.facter - fact "nagles_global_interruptmoderation" has resolved to "Disabled".
2018-02-08 10:18:07.977233 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:07.992860 DEBUG puppetlabs.facter - completed resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\nagles_results.ps1".
2018-02-08 10:18:07.992860 DEBUG puppetlabs.facter - checking execution on C:/ProgramData/PuppetLabs/puppet/cache/facts.d\putty_version.ps1
2018-02-08 10:18:07.992860 DEBUG puppetlabs.facter - resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\putty_version.ps1".
2018-02-08 10:18:07.992860 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -File C:/ProgramData/PuppetLabs/puppet/cache/facts.d\putty_version.ps1
2018-02-08 10:18:08.649190 DEBUG | - putty_version=False
2018-02-08 10:18:08.649190 DEBUG puppetlabs.facter - fact "putty_version" has resolved to "False".
2018-02-08 10:18:08.711685 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:08.711685 DEBUG puppetlabs.facter - completed resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\putty_version.ps1".
2018-02-08 10:18:08.711685 DEBUG puppetlabs.facter - checking execution on C:/ProgramData/PuppetLabs/puppet/cache/facts.d\setup_proxy_latest.ps1
2018-02-08 10:18:08.711685 DEBUG puppetlabs.facter - resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\setup_proxy_latest.ps1".
2018-02-08 10:18:08.711685 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -File C:/ProgramData/PuppetLabs/puppet/cache/facts.d\setup_proxy_latest.ps1
2018-02-08 10:18:09.821343 DEBUG | - setup_proxy_latest=2.1.0.1878
2018-02-08 10:18:09.821343 DEBUG puppetlabs.facter - fact "setup_proxy_latest" has resolved to "2.1.0.1878".
2018-02-08 10:18:09.868212 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:09.868212 DEBUG puppetlabs.facter - completed resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\setup_proxy_latest.ps1".
2018-02-08 10:18:09.883839 DEBUG puppetlabs.facter - checking execution on C:/ProgramData/PuppetLabs/puppet/cache/facts.d\wannacry_smbv1.ps1
2018-02-08 10:18:09.883839 DEBUG puppetlabs.facter - resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\wannacry_smbv1.ps1".
2018-02-08 10:18:09.883839 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -File C:/ProgramData/PuppetLabs/puppet/cache/facts.d\wannacry_smbv1.ps1
2018-02-08 10:18:11.962178 DEBUG | - wannacry_smbv1_protocol=true
2018-02-08 10:18:11.962178 DEBUG puppetlabs.facter - fact "wannacry_smbv1_protocol" has resolved to "true".
2018-02-08 10:18:14.338117 DEBUG | - wannacry_smbv1_feature=true
2018-02-08 10:18:14.338117 DEBUG puppetlabs.facter - fact "wannacry_smbv1_feature" has resolved to "true".
2018-02-08 10:18:14.400627 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:14.400627 DEBUG puppetlabs.facter - completed resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\wannacry_smbv1.ps1".
2018-02-08 10:18:14.400627 DEBUG puppetlabs.facter - checking execution on C:/ProgramData/PuppetLabs/puppet/cache/facts.d\wannacry_vulnerable.ps1
2018-02-08 10:18:14.400627 DEBUG puppetlabs.facter - resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\wannacry_vulnerable.ps1".
2018-02-08 10:18:14.400627 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -File C:/ProgramData/PuppetLabs/puppet/cache/facts.d\wannacry_vulnerable.ps1
2018-02-08 10:18:15.197597 DEBUG | - wannacry_vulnerable=false
2018-02-08 10:18:15.213209 DEBUG puppetlabs.facter - fact "wannacry_vulnerable" has resolved to "false".
2018-02-08 10:18:15.260104 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:15.260104 DEBUG puppetlabs.facter - completed resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\wannacry_vulnerable.ps1".
2018-02-08 10:18:15.260104 DEBUG puppetlabs.facter - checking execution on C:/ProgramData/PuppetLabs/puppet/cache/facts.d\windows_license_info.ps1
2018-02-08 10:18:15.260104 DEBUG puppetlabs.facter - resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\windows_license_info.ps1".
2018-02-08 10:18:15.275722 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -File C:/ProgramData/PuppetLabs/puppet/cache/facts.d\windows_license_info.ps1
2018-02-08 10:18:19.909256 DEBUG | - windows_licensed=false
2018-02-08 10:18:19.909256 DEBUG puppetlabs.facter - fact "windows_licensed" has resolved to "false".
2018-02-08 10:18:19.971776 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:19.971776 DEBUG puppetlabs.facter - completed resolving facts from powershell script "C:/ProgramData/PuppetLabs/puppet/cache/facts.d\windows_license_info.ps1".
2018-02-08 10:18:19.971776 DEBUG puppetlabs.facter - setting fact "env_windows_installdir" based on the value of environment variable "FACTER_env_windows_installdir".
2018-02-08 10:18:19.971776 DEBUG puppetlabs.facter - fact "env_windows_installdir" has resolved to "C:\Program Files\Puppet Labs\Puppet".
2018-02-08 10:18:19.971776 DEBUG puppetlabs.facter - loading all custom facts.
2018-02-08 10:18:19.971776 DEBUG puppetlabs.facter - loading custom fact directories from config file
2018-02-08 10:18:19.971776 DEBUG puppetlabs.facter - searching for custom facts in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:19.971776 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\apache_version.rb.
2018-02-08 10:18:19.971776 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\apt_reboot_required.rb.
2018-02-08 10:18:19.987388 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\apt_updates.rb.
2018-02-08 10:18:19.987388 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\apt_update_last_success.rb.
2018-02-08 10:18:19.987388 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\archive_windir.rb.
2018-02-08 10:18:19.987388 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\chocolateyversion.rb.
2018-02-08 10:18:22.050113 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\choco_install_path.rb.
2018-02-08 10:18:22.050113 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\dnssuffix.rb.
2018-02-08 10:18:22.050113 DEBUG puppetlabs.facter - searching for custom fact "kernel".
2018-02-08 10:18:22.050113 DEBUG puppetlabs.facter - searching for kernel.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:22.050113 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\emulexfacts.rb.
2018-02-08 10:18:22.065731 DEBUG puppetlabs.facter - searching for custom fact "virtual".
2018-02-08 10:18:22.065731 DEBUG puppetlabs.facter - searching for virtual.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:22.065731 DEBUG puppetlabs.facter - resolving virtualization facts.
2018-02-08 10:18:22.081354 DEBUG puppetlabs.facter - fact "is_virtual" has resolved to false.
2018-02-08 10:18:22.081354 DEBUG puppetlabs.facter - fact "virtual" has resolved to "physical".
2018-02-08 10:18:22.081354 DEBUG puppetlabs.facter - searching for custom fact "hba_fc_passthrough".
2018-02-08 10:18:22.081354 DEBUG puppetlabs.facter - searching for hba_fc_passthrough.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:22.096981 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\hba_fc_passthrough.rb.
2018-02-08 10:18:22.096981 DEBUG puppetlabs.facter - loading all custom facts.
2018-02-08 10:18:22.096981 DEBUG puppetlabs.facter - loading custom fact directories from config file
2018-02-08 10:18:22.096981 DEBUG puppetlabs.facter - searching for custom facts in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:22.096981 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\emulex_hbacmd_version.rb.
2018-02-08 10:18:22.112611 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\PROGRA~1\Emulex\Util\OCManager\hbacmd.exe version 2>&1
2018-02-08 10:18:22.315757 DEBUG | - OneCommand Manager Library Versions:
Command Line Interface : 11.4.142.17
RMAPI : 11.4.142.17
Discovery : 11.4.142.17
DFC Library : 11.4.138.0 X64
MILI Library : Not Available
Remote Management Agent : 11.4.142.17
2018-02-08 10:18:22.315757 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:22.315757 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\emulex_hbasettings.rb.
2018-02-08 10:18:22.315757 DEBUG puppetlabs.facter - searching for custom fact "hba_fc_passthrough".
2018-02-08 10:18:22.315757 DEBUG puppetlabs.facter - searching for hba_fc_passthrough.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:22.315757 DEBUG puppetlabs.facter - loading all custom facts.
2018-02-08 10:18:22.315757 DEBUG puppetlabs.facter - loading custom fact directories from config file
2018-02-08 10:18:22.315757 DEBUG puppetlabs.facter - searching for custom facts in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:22.331384 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\env_temp_variable.rb.
2018-02-08 10:18:22.347010 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\facter_dot_d.rb.
2018-02-08 10:18:22.347010 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\facts_last_uploaded.rb.
2018-02-08 10:18:22.347010 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe (Get-Date)
2018-02-08 10:18:22.972083 DEBUG | - Thursday, February 8, 2018 10:18:22 AM
2018-02-08 10:18:22.972083 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:22.972083 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\foreman_puppet_info.rb.
2018-02-08 10:18:22.987704 DEBUG puppetlabs.facter - searching for custom fact "fqdn".
2018-02-08 10:18:22.987704 DEBUG puppetlabs.facter - searching for fqdn.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:22.987704 DEBUG puppetlabs.facter - resolving networking facts.
2018-02-08 10:18:22.987704 DEBUG puppetlabs.facter - initializing Winsock
2018-02-08 10:18:22.987704 DEBUG puppetlabs.facter - fact "ipaddress_em1" has resolved to "100.91.41.165".
2018-02-08 10:18:22.987704 DEBUG puppetlabs.facter - fact "ipaddress" has resolved to "100.91.41.165".
2018-02-08 10:18:22.987704 DEBUG puppetlabs.facter - fact "netmask_em1" has resolved to "255.255.255.0".
2018-02-08 10:18:22.987704 DEBUG puppetlabs.facter - fact "netmask" has resolved to "255.255.255.0".
2018-02-08 10:18:23.003326 DEBUG puppetlabs.facter - fact "network_em1" has resolved to "100.91.41.0".
2018-02-08 10:18:23.003326 DEBUG puppetlabs.facter - fact "network" has resolved to "100.91.41.0".
2018-02-08 10:18:23.003326 DEBUG puppetlabs.facter - fact "ipaddress6_em1" has resolved to "fc00:ac:1729:0:749c:6a1:3125:2359".
2018-02-08 10:18:23.003326 DEBUG puppetlabs.facter - fact "ipaddress6" has resolved to "fc00:ac:1729:0:749c:6a1:3125:2359".
2018-02-08 10:18:23.003326 DEBUG puppetlabs.facter - fact "netmask6_em1" has resolved to "ffff:ffff:ffff:ffff::".
2018-02-08 10:18:23.003326 DEBUG puppetlabs.facter - fact "netmask6" has resolved to "ffff:ffff:ffff:ffff::".
2018-02-08 10:18:23.018953 DEBUG puppetlabs.facter - fact "network6_em1" has resolved to "fc00:ac:1729::".
2018-02-08 10:18:23.018953 DEBUG puppetlabs.facter - fact "network6" has resolved to "fc00:ac:1729::".
2018-02-08 10:18:23.018953 DEBUG puppetlabs.facter - fact "macaddress_em1" has resolved to "B8:CA:3A:6E:8A:50".
2018-02-08 10:18:23.018953 DEBUG puppetlabs.facter - fact "macaddress" has resolved to "B8:CA:3A:6E:8A:50".
2018-02-08 10:18:23.018953 DEBUG puppetlabs.facter - fact "mtu_em1" has resolved to 1500.
2018-02-08 10:18:23.034579 DEBUG puppetlabs.facter - fact "hostname" has resolved to "currahee".
2018-02-08 10:18:23.034579 DEBUG puppetlabs.facter - fact "domain" has resolved to "lab.beer.town".
2018-02-08 10:18:23.034579 DEBUG puppetlabs.facter - fact "fqdn" has resolved to "currahee.lab.beer.town".
2018-02-08 10:18:23.034579 DEBUG puppetlabs.facter - fact "interfaces" has resolved to "em1".
2018-02-08 10:18:23.034579 DEBUG puppetlabs.facter - fact "dhcp_servers" has resolved to {
em1 => "100.88.0.122",
system => "100.88.0.122"
}.
2018-02-08 10:18:23.034579 DEBUG puppetlabs.facter - fact "networking" has resolved to {
dhcp => "100.88.0.122",
domain => "lab.beer.town",
fqdn => "currahee.lab.beer.town",
hostname => "currahee",
interfaces => {
em1 => {
bindings => [
{
address => "100.91.41.165",
netmask => "255.255.255.0",
network => "100.91.41.0"
}
],
bindings6 => [
{
address => "fc00:ac:1729:0:749c:6a1:3125:2359",
netmask => "ffff:ffff:ffff:ffff::",
network => "fc00:ac:1729::"
},
{
address => "fe80::749c:6a1:3125:2359%6",
netmask => "ffff:ffff:ffff:ffff::",
network => "fe80::%6"
}
],
dhcp => "100.88.0.122",
ip => "100.91.41.165",
ip6 => "fc00:ac:1729:0:749c:6a1:3125:2359",
mac => "B8:CA:3A:6E:8A:50",
mtu => 1500,
netmask => "255.255.255.0",
netmask6 => "ffff:ffff:ffff:ffff::",
network => "100.91.41.0",
network6 => "fc00:ac:1729::"
}
},
ip => "100.91.41.165",
ip6 => "fc00:ac:1729:0:749c:6a1:3125:2359",
mac => "B8:CA:3A:6E:8A:50",
mtu => 1500,
netmask => "255.255.255.0",
netmask6 => "ffff:ffff:ffff:ffff::",
network => "100.91.41.0",
network6 => "fc00:ac:1729::",
primary => "em1"
}.
Checking Foreman Environment: production
Checking Foreman First Run: false
Checking Foreman Class Existence: true
2018-02-08 10:18:29.342494 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\ioverify_version.rb.
2018-02-08 10:18:29.342494 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "Get-WmiObject win32_service | Where-Object {$_.state -eq \"Running\"} | ?{$_.name -eq \"IOverify64Service\"} | select pathname"
2018-02-08 10:18:30.501354 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:30.501354 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "Get-ChildItem -Path C:\Users\Public\Desktop | Where-Object {$_.Name -like \"IOV*\"} | Select-Object Name | format-table -hidetableheaders"
2018-02-08 10:18:31.188925 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:31.188925 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\ip6tables_version.rb.
2018-02-08 10:18:31.188925 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\iptables_persistent_version.rb.
2018-02-08 10:18:31.188925 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\iptables_version.rb.
2018-02-08 10:18:31.188925 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\java_version.rb.
2018-02-08 10:18:31.188925 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\system32\cmd.exe /c echo %JAVA_HOME%
2018-02-08 10:18:31.251429 DEBUG | - %JAVA_HOME%
2018-02-08 10:18:31.251429 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:31.251429 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\mcafee_facts.rb.
2018-02-08 10:18:31.329569 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\mcollective.rb.
2018-02-08 10:18:31.329569 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\mco_config.rb.
2018-02-08 10:18:31.329569 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\mpio_compliant.rb.
2018-02-08 10:18:31.329569 DEBUG puppetlabs.facter - searching for custom fact "mpio_installed".
2018-02-08 10:18:31.329569 DEBUG puppetlabs.facter - searching for mpio_installed.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:31.329569 DEBUG puppetlabs.facter - loading all custom facts.
2018-02-08 10:18:31.329569 DEBUG puppetlabs.facter - loading custom fact directories from config file
2018-02-08 10:18:31.329569 DEBUG puppetlabs.facter - searching for custom facts in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:31.345188 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\mpio_fileversions.rb.
2018-02-08 10:18:31.345188 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "((Get-Item C:\Windows\System32\drivers\mpio.sys).VersionInfo | select FileMajorPart, FileMinorPart, FileBuildPart, FilePrivatePart | ft -hidetableheaders)" 2> $null
2018-02-08 10:18:32.173416 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:32.189034 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "((Get-Item C:\Windows\System32\drivers\msdsm.sys).VersionInfo | select FileMajorPart, FileMinorPart, FileBuildPart, FilePrivatePart | ft -hidetableheaders)" 2> $null
2018-02-08 10:18:33.064122 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:33.064122 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "((Get-Item C:\Windows\System32\drivers\storport.sys).VersionInfo | select FileMajorPart, FileMinorPart, FileBuildPart, FilePrivatePart | ft -hidetableheaders)" 2> $null
2018-02-08 10:18:33.767332 DEBUG | - 10 0 14393 2007
2018-02-08 10:18:33.767332 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:33.767332 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe "((Get-Item C:\Windows\System32\drivers\msiscsi.sys).VersionInfo | select FileMajorPart, FileMinorPart, FileBuildPart, FilePrivatePart | ft -hidetableheaders)" 2> $null
2018-02-08 10:18:34.470525 DEBUG | - 10 0 14393 1532
2018-02-08 10:18:34.470525 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:34.470525 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\mpio_iscsi_regvalues.rb.
2018-02-08 10:18:34.470525 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\mpio_reg_values.rb.
2018-02-08 10:18:34.470525 DEBUG puppetlabs.facter - searching for custom fact "mpio_installed".
2018-02-08 10:18:34.470525 DEBUG puppetlabs.facter - searching for mpio_installed.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:34.486144 DEBUG puppetlabs.facter - loading all custom facts.
2018-02-08 10:18:34.486144 DEBUG puppetlabs.facter - loading custom fact directories from config file
2018-02-08 10:18:34.486144 DEBUG puppetlabs.facter - searching for custom facts in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:34.486144 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\mpio_test_signing.rb.
2018-02-08 10:18:34.486144 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\bcdedit.exe | findstr "testsigning"
2018-02-08 10:18:34.579909 DEBUG leatherman.execution:688 - process exited with exit code 1.
2018-02-08 10:18:34.579909 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\mpio_win.rb.
2018-02-08 10:18:34.579909 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\system32\dism.exe /online /get-featureinfo /featurename:MultipathIo | findstr "Enabled"
2018-02-08 10:18:36.721627 DEBUG leatherman.execution:688 - process exited with exit code 1.
2018-02-08 10:18:36.721627 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\mysql_server_id.rb.
2018-02-08 10:18:36.721627 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\mysql_version.rb.
2018-02-08 10:18:36.721627 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\nagles_guids.rb.
2018-02-08 10:18:36.737256 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\notepadpp.rb.
2018-02-08 10:18:36.737256 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\package_provider.rb.
2018-02-08 10:18:37.956146 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\pe_version.rb.
2018-02-08 10:18:37.956146 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\pip_version.rb.
2018-02-08 10:18:37.971766 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\powershell_ver.rb.
2018-02-08 10:18:37.971766 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe $PSVersionTable.PSVersion
2018-02-08 10:18:38.159286 DEBUG | - Major Minor Build Revision
----- ----- ----- --------
5 1 14393 1944
2018-02-08 10:18:38.159286 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:38.159286 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe $PSVersionTable.PSVersion
2018-02-08 10:18:38.596824 DEBUG | - Major Minor Build Revision
----- ----- ----- --------
5 1 14393 1944
2018-02-08 10:18:38.596824 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:38.596824 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe $PSVersionTable.PSVersion
2018-02-08 10:18:39.036000 DEBUG | - Major Minor Build Revision
----- ----- ----- --------
5 1 14393 1944
2018-02-08 10:18:39.051629 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:39.051629 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\proxy_service.rb.
2018-02-08 10:18:39.895470 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\puppet_agent_appdata.rb.
2018-02-08 10:18:39.895470 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\puppet_agent_pid.rb.
2018-02-08 10:18:39.895470 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\puppet_settings.rb.
2018-02-08 10:18:39.911092 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\puppet_vardir.rb.
2018-02-08 10:18:39.911092 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\python_version.rb.
2018-02-08 10:18:39.911092 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\qcc_version.rb.
2018-02-08 10:18:39.911092 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\qlogicfcfacts.rb.
2018-02-08 10:18:39.911092 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe (Test-Path 'C:\Program Files\QLogic Corporation\QConvergeConsoleCLI\qaucli.exe')
2018-02-08 10:18:40.458281 DEBUG | - True
2018-02-08 10:18:40.458281 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:40.473913 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe (Get-Item 'C:\Program Files\QLogic Corporation\QConvergeConsoleCLI\qaucli.exe').VersionInfo.FileVersion 2> nul
2018-02-08 10:18:41.056702 DEBUG | - 1, 1, 4, 65
2018-02-08 10:18:41.056702 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:41.056702 DEBUG puppetlabs.facter - fact "qcc_version" has resolved to "1.1.4.65".
2018-02-08 10:18:41.056702 DEBUG puppetlabs.facter - searching for custom fact "hba_fc_passthrough".
2018-02-08 10:18:41.056702 DEBUG puppetlabs.facter - searching for hba_fc_passthrough.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:41.056702 DEBUG puppetlabs.facter - loading all custom facts.
2018-02-08 10:18:41.056702 DEBUG puppetlabs.facter - loading custom fact directories from config file
2018-02-08 10:18:41.056702 DEBUG puppetlabs.facter - searching for custom facts in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:41.072329 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\qlogiciscsifacts.rb.
2018-02-08 10:18:41.072329 DEBUG puppetlabs.facter - searching for custom fact "hba_fc_passthrough".
2018-02-08 10:18:41.072329 DEBUG puppetlabs.facter - searching for hba_fc_passthrough.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:41.072329 DEBUG puppetlabs.facter - loading all custom facts.
2018-02-08 10:18:41.087956 DEBUG puppetlabs.facter - loading custom fact directories from config file
2018-02-08 10:18:41.087956 DEBUG puppetlabs.facter - searching for custom facts in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:41.087956 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\qlogic_hbasettings.rb.
2018-02-08 10:18:41.087956 DEBUG puppetlabs.facter - searching for custom fact "hba_fc_passthrough".
2018-02-08 10:18:41.087956 DEBUG puppetlabs.facter - searching for hba_fc_passthrough.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:41.087956 DEBUG puppetlabs.facter - loading all custom facts.
2018-02-08 10:18:41.103581 DEBUG puppetlabs.facter - loading custom fact directories from config file
2018-02-08 10:18:41.103581 DEBUG puppetlabs.facter - searching for custom facts in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:41.103581 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\root_home.rb.
2018-02-08 10:18:41.103581 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\service_provider.rb.
2018-02-08 10:18:41.181720 DEBUG puppetlabs.facter - searching for custom fact "operatingsystem".
2018-02-08 10:18:41.197353 DEBUG puppetlabs.facter - searching for operatingsystem.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:41.197353 DEBUG puppetlabs.facter - searching for custom fact "osfamily".
2018-02-08 10:18:41.197353 DEBUG puppetlabs.facter - searching for osfamily.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:41.728670 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\settings.rb.
2018-02-08 10:18:41.728670 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\sssd.rb.
2018-02-08 10:18:41.744288 DEBUG puppetlabs.facter - Cannot load Augeas library for custom facts: cannot load such file -- augeas
2018-02-08 10:18:41.744288 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\staging_http_get.rb.
2018-02-08 10:18:41.744288 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\staging_windir.rb.
2018-02-08 10:18:41.744288 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\systemd.rb.
2018-02-08 10:18:41.744288 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\vcsrepo_svn_ver.rb.
2018-02-08 10:18:41.744288 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\virtualenv_version.rb.
2018-02-08 10:18:41.744288 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\windows_productkey.rb.
2018-02-08 10:18:41.744288 DEBUG puppetlabs.facter - searching for custom fact "windows_systemtype".
2018-02-08 10:18:41.744288 DEBUG puppetlabs.facter - searching for windows_systemtype.rb in C:/ProgramData\PuppetLabs\puppet\cache\lib\facter.
2018-02-08 10:18:41.759902 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\windows_systemtype.rb.
2018-02-08 10:18:41.759902 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\System32\Wbem\wmic.exe ComputerSystem get SystemType | FindStr /i x
2018-02-08 10:18:41.853666 DEBUG | - x64-based PC
2018-02-08 10:18:41.853666 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:41.869287 DEBUG puppetlabs.facter - fact "windows_systemtype" has resolved to "x64".
2018-02-08 10:18:41.869287 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\windows_releasename.rb.
2018-02-08 10:18:41.869287 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\windows_sid.rb.
2018-02-08 10:18:41.869287 INFO puppetlabs.facter - loading custom facts from C:/ProgramData\PuppetLabs\puppet\cache\lib\facter\wupdates_datetime.rb.
2018-02-08 10:18:41.869287 DEBUG puppetlabs.facter - custom fact "hba_fc_passthrough" was not found.
2018-02-08 10:18:41.869287 DEBUG puppetlabs.facter - custom fact "qle256xfcwwn_array" was not found.
2018-02-08 10:18:41.869287 DEBUG puppetlabs.facter - custom fact "qle266xfcwwn_array" was not found.
2018-02-08 10:18:41.869287 DEBUG puppetlabs.facter - custom fact "qle269xfcwwn_array" was not found.
2018-02-08 10:18:41.869287 DEBUG puppetlabs.facter - custom fact "qle274xfcwwn_array" was not found.
2018-02-08 10:18:41.869287 DEBUG puppetlabs.facter - custom fact "qlogiciscsimodel_array" was not found.
2018-02-08 10:18:41.884915 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\PROGRA~1\QLOGIC~1\QConvergeConsoleCLI\qaucli.exe -fc -i | find "HBA Port"
2018-02-08 10:18:43.208177 DEBUG | - HBA Port : 1
HBA Port : 2
HBA Port : 1
HBA Port : 2
2018-02-08 10:18:43.208177 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:43.208177 DEBUG puppetlabs.facter - custom fact "hba_fc_passthrough" was not found.
2018-02-08 10:18:43.208177 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c "C:\Program Files\Puppet Labs\Puppet\facter\bin\facter.exe" kernel
2018-02-08 10:18:43.630109 DEBUG | - windows
2018-02-08 10:18:43.630109 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:43.630109 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\system32\where.exe qaucli 2> nul
2018-02-08 10:18:43.864492 DEBUG | - C:\Program Files\QLogic Corporation\QConvergeConsoleCLI\qaucli.exe
2018-02-08 10:18:43.989531 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:43.989531 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\system32\where.exe qaucli 2> nul
2018-02-08 10:18:44.223916 DEBUG | - C:\Program Files\QLogic Corporation\QConvergeConsoleCLI\qaucli.exe
2018-02-08 10:18:44.223916 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:44.223916 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\PROGRA~1\QLOGIC~1\QConvergeConsoleCLI\qaucli.exe -iscsi -i | find "HBA Model"
2018-02-08 10:18:44.427055 DEBUG leatherman.execution:688 - process exited with exit code 1.
2018-02-08 10:18:44.427055 DEBUG puppetlabs.facter - custom fact "hba_fc_passthrough" was not found.
2018-02-08 10:18:44.427055 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c "C:\Program Files\Puppet Labs\Puppet\facter\bin\facter.exe" kernel
2018-02-08 10:18:44.848976 DEBUG | - windows
2018-02-08 10:18:44.848976 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:44.848976 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\system32\where.exe qaucli 2> nul
2018-02-08 10:18:45.067756 DEBUG | - C:\Program Files\QLogic Corporation\QConvergeConsoleCLI\qaucli.exe
2018-02-08 10:18:45.099008 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:45.114623 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\Windows\system32\where.exe qaucli 2> nul
2018-02-08 10:18:45.333401 DEBUG | - C:\Program Files\QLogic Corporation\QConvergeConsoleCLI\qaucli.exe
2018-02-08 10:18:45.333401 DEBUG leatherman.execution:688 - process exited with exit code 0.
2018-02-08 10:18:45.333401 DEBUG leatherman.execution:92 - executing command: C:\Windows\system32\cmd.exe /c C:\PROGRA~1\QLOGIC~1\QConvergeConsoleCLI\qaucli.exe -fc -i | find "HBA Port"
# Collects fact on virtual machine, FC passthrough
kernel = Facter.value(:kernel)
phys_virt = Facter.value(:virtual)
passthrough_ary = []
if (kernel == 'windows') and (phys_virt != 'physical')
require 'win32ole'
wmi = WIN32OLE.connect("winmgmts:\\\\.\\root\\cimv2")
wmi.ExecQuery("select Started from Win32_SystemDriver where Name = 'ql2300' or Name = 'ql2300i' or Name = 'ql40xx' or Name = 'ql40xx2i' or Name = 'qlfcoei' or Name = 'elxcna' or Name = 'elxfc' or Name = 'elxfcoe' or Name = 'elxstor'").each do |pci|
passthrough = pci.started
passthrough_ary.push("#{passthrough}")
end
if passthrough_ary.include? 'true'
Facter.add('hba_fc_passthrough') {setcode {'true'}}
else
Facter.add('hba_fc_passthrough') {setcode {'false'}}
end
end
# Adds qlogicfc card facts
#require 'facter'
kernel = Facter.value(:kernel)
phys_virt = Facter.value(:virtual)
fc_passthrough = Facter.value(:hba_fc_passthrough)
qcc_version = Facter.value(:qcc_version)
qcc_256xwwns = Facter.value(:qle256xfcwwn_array)
qcc_266xwwns = Facter.value(:qle266xfcwwn_array)
qcc_269xwwns = Facter.value(:qle269xfcwwn_array)
qcc_274xwwns = Facter.value(:qle274xfcwwn_array)
qcc_wwns_array = [qcc_256xwwns, qcc_266xwwns, qcc_269xwwns, qcc_274xwwns]
qcc_iscsi_instance = Facter.value(:qlogiciscsimodel_array)
if kernel == 'windows'
if phys_virt == 'physical' || fc_passthrough == 'true'
unless qcc_wwns_array.nil?
if qcc_version == 'qaucli_unavailable'
#puts "QCC CLI version #{qcc_version} does not match expected #{qcc_expected_version}. Skipping QLogic HBA settings. Please read Confluence page on Puppet HBA handling."
Facter.add("qlogicfcqcc") {setcode {'qcc_unavailable'}}
else
if Facter::Core::Execution.execute('qaucli -fc -i | find "HBA Port"').empty? #skip if no HBAs
##puts "No QLogic FC HBAs Detected."
Facter.add("qlogicfc") {setcode {'None Detected'}}
else
unless qcc_256xwwns.nil?
puts "Collecting QLogic 25x HBA Settings..."
qle25_settings_array = []
qcc_256xwwns.each_with_index do |item, index|
co = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Connection Options\"").split[3]
et = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Execution Throttle\"").split[3]
ldt = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Link Down Timeout\"").split[5]
lrc = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Login Retry Count\"").split[4]
pdrc = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Port Down Retry Count\"").split[5]
qle25_settings_array.push("#{co}")
qle25_settings_array.push("#{et}")
qle25_settings_array.push("#{ldt}")
qle25_settings_array.push("#{lrc}")
qle25_settings_array.push("#{pdrc}")
Facter.add("qle256xfcsetting_connectionoption#{index}") do
setcode {"#{co}"}
end
Facter.add("qle256xfcsetting_loginretrycount#{index}") do
setcode {"#{lrc}"}
end
Facter.add("qle256xfcsetting_portdownretrycount#{index}") do
setcode {"#{pdrc}"}
end
Facter.add("qle256xfcsetting_linkdowntimeout#{index}") do
setcode {"#{ldt}"}
end
Facter.add("qle256xfcsetting_executionthrottle#{index}") do
setcode {"#{et}"}
end
end
Facter.add("qle256xfcsettings_array") do
setcode {qle25_settings_array}
end
# Facter.add("qle256xfcsettings_stringified_array") do
# setcode { "#{qle25_settings_array}" }
# end
end
unless qcc_266xwwns.nil?
puts "Collecting QLogic 266x HBA Settings..."
qle266_settings_array = []
qcc_266xwwns.each_with_index do |item, index|
co = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Connection Options\"").split[3]
#et = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Execution Throttle\"").split[3]
ldt = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Link Down Timeout\"").split[5]
lrc = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Login Retry Count\"").split[4]
pdrc = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Port Down Retry Count\"").split[5]
qle266_settings_array.push("#{co}")
#qle26_settings_array.push("#{et}")
qle266_settings_array.push("#{ldt}")
qle266_settings_array.push("#{lrc}")
qle266_settings_array.push("#{pdrc}")
Facter.add("qle266xfcsetting_connectionoption#{index}") do
setcode {"#{co}"}
end
Facter.add("qle266xfcsetting_loginretrycount#{index}") do
setcode {"#{lrc}"}
end
Facter.add("qle266xfcsetting_portdownretrycount#{index}") do
setcode {"#{pdrc}"}
end
Facter.add("qle266xfcsetting_linkdowntimeout#{index}") do
setcode {"#{ldt}"}
end
# Facter.add("qle266xfcsetting_executionthrottle#{index}") do
# setcode { "#{et}" }
# end
end
Facter.add("qle266xfcsettings_array") do
setcode {qle266_settings_array}
end
# Facter.add("qle266xfcsettings_stringified_array") do
# setcode { "#{qle26_settings_array}" }
# end
end
unless qcc_269xwwns.nil?
puts "Collecting QLogic 269x HBA Settings..."
qle269_settings_array = []
qcc_269xwwns.each_with_index do |item, index|
co = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Connection Options\"").split[3]
#et = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Execution Throttle\"").split[3]
ldt = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Link Down Timeout\"").split[5]
lrc = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Login Retry Count\"").split[4]
pdrc = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Port Down Retry Count\"").split[5]
qle269_settings_array.push("#{co}")
#qle26_settings_array.push("#{et}")
qle269_settings_array.push("#{ldt}")
qle269_settings_array.push("#{lrc}")
qle269_settings_array.push("#{pdrc}")
Facter.add("qle269xfcsetting_connectionoption#{index}") do
setcode {"#{co}"}
end
Facter.add("qle269xfcsetting_loginretrycount#{index}") do
setcode {"#{lrc}"}
end
Facter.add("qle269xfcsetting_portdownretrycount#{index}") do
setcode {"#{pdrc}"}
end
Facter.add("qle269xfcsetting_linkdowntimeout#{index}") do
setcode {"#{ldt}"}
end
# Facter.add("qle266xfcsetting_executionthrottle#{index}") do
# setcode { "#{et}" }
# end
end
Facter.add("qle269xfcsettings_array") do
setcode {qle269_settings_array}
end
# Facter.add("qle266xfcsettings_stringified_array") do
# setcode { "#{qle26_settings_array}" }
# end
end
unless qcc_274xwwns.nil?
puts "Collecting QLogic 274x HBA Settings..."
qle274_settings_array = []
qcc_274xwwns.each_with_index do |item, index|
co = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Connection Options\"").split[3]
#et = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Execution Throttle\"").split[3]
ldt = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Link Down Timeout\"").split[5]
lrc = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Login Retry Count\"").split[4]
pdrc = Facter::Core::Execution.execute("qaucli -fc -c #{item} | find \"Port Down Retry Count\"").split[5]
qle274_settings_array.push("#{co}")
#qle26_settings_array.push("#{et}")
qle274_settings_array.push("#{ldt}")
qle274_settings_array.push("#{lrc}")
qle274_settings_array.push("#{pdrc}")
Facter.add("qle274xfcsetting_connectionoption#{index}") do
setcode {"#{co}"}
end
Facter.add("qle274xfcsetting_loginretrycount#{index}") do
setcode {"#{lrc}"}
end
Facter.add("qle274xfcsetting_portdownretrycount#{index}") do
setcode {"#{pdrc}"}
end
Facter.add("qle274xfcsetting_linkdowntimeout#{index}") do
setcode {"#{ldt}"}
end
# Facter.add("qle266xfcsetting_executionthrottle#{index}") do
# setcode { "#{et}" }
# end
end
Facter.add("qle274xfcsettings_array") do
setcode {qle274_settings_array}
end
# Facter.add("qle266xfcsettings_stringified_array") do
# setcode { "#{qle26_settings_array}" }
# end
end
unless qcc_iscsi_instance.nil?
#puts "Collecting QLogic iSCSI HBA Settings..."
ql_iscsi_settings_array = []
qcc_iscsi_instance.each_with_index do |item, index|
arp = Facter::Core::Execution.execute("qaucli -iscsi -c #{index} | find \"IP_ARP_Redirect\"").split[2]
ql_iscsi_settings_array.push("#{arp}")
Facter.add("qlogiciscsisetting_arpredirect#{index}") do
setcode {"#{arp}"}
end
end
Facter.add("qlogiciscsisetting_arpredirect_array") do
setcode {ql_iscsi_settings_array}
end
end
end
end
end
end
end
# Adds qlogicfc card facts
kernel = Facter.value(:kernel)
phys_virt = Facter.value(:virtual)
qcc_version = Facter.value(:qcc_version)
fc_passthrough = Facter.value(:hba_fc_passthrough)
if kernel == 'windows'
if phys_virt == 'physical' || fc_passthrough == 'true'
if qcc_version == 'qaucli_unavailable'
#puts "QLogic CLI #{qcc_expected_version} not installed. Skipping QLogic FC Facts. Please read Confluence page on Puppet HBA handling."
else
#if qcc_version != qcc_expected_version
#puts "QCC CLI version #{qcc_version} does not match expected #{qcc_expected_version}. Skipping QLogic FC Facts. Please read Confluence page on Puppet HBA handling."
#else
# noinspection RubyResolve,RubyResolve,RubyResolve,RubyResolve,RubyResolve,RubyResolve,RubyResolve,RubyResolve
if Facter::Core::Execution.exec('facter kernel').include? 'Linux' #skip if linux
# noinspection RubyResolve
Facter.add('qlogicfcqcc') {setcode {''}}
elsif Facter::Core::Execution.exec('where qaucli 2> nul').nil? #skip if no qaucli installed
#puts "QLogic CLI not detected. Use hba_cli config_group if managing HBAs. Skipping QLogic FC facts."
# noinspection RubyResolve
Facter.add('qlogicfcqcc') {setcode {'qcc_unavailable'}}
elsif Facter::Core::Execution.exec('where qaucli 2> nul').empty? #skip if no qaucli available
#puts "QLogic CLI not detected. Use hba_cli config_group if managing HBAs. Skipping QLogic FC facts."
# noinspection RubyResolve
Facter.add('qlogicfcqcc') {setcode {'qcc_unavailable'}}
elsif Facter::Core::Execution.exec('qaucli -fc -i | find "HBA Port"').empty? #skip if no HBAs
puts "No QLogic FC HBAs Detected."
# noinspection RubyResolve
Facter.add('qlogicfc') {setcode {'None Detected'}}
else
newpair = []
# noinspection RubyResolve,RubyResolve
models = Facter::Core::Execution.exec('qaucli -fc -i | find "HBA Port"')
models.each_line.each_with_index do |line, index|
# noinspection RubyResolve,RubyResolve
newmodels = Facter::Core::Execution.exec("qaucli -fc -i #{index} | find \"HBA Model\"").match(/Q[A-Z]+[0-9]+/).to_s
newmodels.split(/\n/).each do |pair|
newpair.push(pair)
end
end
ql24xx_present = newpair.grep(/Q[A-Z]+24[0-9].*/).any?
ql25xx_present = newpair.grep(/Q[A-Z]+25[0-9].*/).any?
ql26xx_present = newpair.grep(/Q[A-Z]+26[0-9].*/).any?
if ql24xx_present
puts "\e[41mWARNING: QLogic 24xx card detected. These are not supported for use in System Test.\e[0m"
end
if ql25xx_present != true && ql26xx_present != true
puts "\e[41mWARNING: No QLogic 25xx or 26xx cards detected. #{newpair} models may not be supported by System Test.\e[0m"
# noinspection RubyResolve
Facter.add('qlogicfc') {setcode {'None Detected'}}
else
#puts "Collecting Qlogic FC HBA Information..."
#Adds model#
#puts "Querying QLogic FC Model Information"
#puts "Creating QLogic FC Model Array Fact"
#puts "Creating QLogic FC Model Stringify Array Fact"
modelsarray256x = []
driversarray256x = []
firmwarearray256x = []
biosarray256x = []
serialsarray256x = []
wwnarray256x = []
#2660s
modelsarray266x = []
driversarray266x = []
firmwarearray266x = []
biosarray266x = []
serialsarray266x = []
wwnarray266x = []
#2690s
modelsarray269x = []
driversarray269x = []
firmwarearray269x = []
biosarray269x = []
serialsarray269x = []
wwnarray269x = []
#2740s
modelsarray274x = []
driversarray274x = []
firmwarearray274x = []
biosarray274x = []
serialsarray274x = []
wwnarray274x = []
# noinspection RubyResolve,RubyResolve
models = Facter::Core::Execution.exec('qaucli -fc -i | find "HBA Port"') #command runs globally so it pulls from all ports
models.each_line.each_with_index do |line, index| #each_line do the next thing for each line in the return - each_with_index, keep track of the indexes starting at 0 for each line do the next thing with |line, index|
# noinspection RubyResolve,RubyResolve
newmodels = Facter::Core::Execution.exec("qaucli -fc -i #{index} | find \"HBA Model\"").match(/Q[A-Z]+[0-9]+/).to_s #new variable, pass #{index} to it to run on a port level 0,1,2,3etc then strip anything after the :
if newmodels.include?('256')
Facter.add("qle256xfcmodel#{index}") do #create a new fact with a name of qlogicfcmodels + our #{index}
# noinspection RubyResolve
setcode do
newmodels #set the value of the fact to what newmodels is
end
end
modelsarray256x.push(newmodels)
Facter.add('qle256xfcmodel_array') do
# noinspection RubyResolve
setcode do
modelsarray256x
end
end
Facter.add('qle256xfcmodel_stringify_array') do
# noinspection RubyResolve
setcode do
modelsarray256x.join(', ')
end
end
elsif newmodels.include?('266')
Facter.add("qle266xfcmodel#{index}") do #create a new fact with a name of qlogicfcmodels + our #{index}
# noinspection RubyResolve
setcode do
newmodels #set the value of the fact to what newmodels is
end
end
modelsarray266x.push(newmodels)
Facter.add('qle266xfcmodel_array') do
# noinspection RubyResolve
setcode do
modelsarray266x
end
end
Facter.add('qle266xfcmodel_stringify_array') do
# noinspection RubyResolve
setcode do
modelsarray266x.join(', ')
end
end
elsif newmodels.include?('269')
Facter.add("qle269xfcmodel#{index}") do #create a new fact with a name of qlogicfcmodels + our #{index}
# noinspection RubyResolve
setcode do
newmodels #set the value of the fact to what newmodels is
end
end
modelsarray269x.push(newmodels)
Facter.add('qle269xfcmodel_array') do
# noinspection RubyResolve
setcode do
modelsarray269x
end
end
Facter.add('qle269xfcmodel_stringify_array') do
# noinspection RubyResolve
setcode do
modelsarray269x.join(', ')
end
end
elsif newmodels.include?('274')
Facter.add("qle274xfcmodel#{index}") do #create a new fact with a name of qlogicfcmodels + our #{index}
# noinspection RubyResolve
setcode do
newmodels #set the value of the fact to what newmodels is
end
end
modelsarray274x.push(newmodels)
Facter.add('qle274xfcmodel_array') do
# noinspection RubyResolve
setcode do
modelsarray274x
end
end
Facter.add('qle274xfcmodel_stringify_array') do
# noinspection RubyResolve
setcode do
modelsarray274x.join(', ')
end
end
end
puts "Querying QLogic FC Driver Information - Index #{index}"
#puts 'Creating QLogic FC Driver Array Fact'
#puts 'Creating QLogic FC Driver Stringify Array Fact'
#drivers = Facter::Core::Execution.exec('qaucli -fc -i | find "HBA Port"') #command runs globally so it pulls from all ports
#models.each_line.each_with_index do |line, index|
# noinspection RubyResolve,RubyResolve
newdrivers = Facter::Core::Execution.exec("qaucli -fc -i #{index} | find \"Driver Version\"").split(':').last.strip.gsub(/[A-Za-z ]/, '') #new variable, pass #{index} to it to run on a port level 0,1,2,3etc then strip anything after the :
#newmodels = Facter::Core::Execution.exec("qaucli -fc -i #{index} | find \"HBA Model\"").match(/QL[EA][a-zA-Z0-9]+/).to_s
# noinspection RubyResolve,RubyResolve,RubyResolve,RubyResolve
if newmodels.include?('256')
Facter.add("qle256xfcdriver#{index}") do #create a new fact with a name of qlogicfcdrivers + our #{index}
# noinspection RubyResolve
setcode do
newdrivers
end
end
elsif newmodels.include?('266')
Facter.add("qle266xfcdriver#{index}") do #create a new fact with a name of qlogicfcdrivers + our #{index}
# noinspection RubyResolve
setcode do
newdrivers
end
end
elsif newmodels.include?('269')
Facter.add("qle269xfcdriver#{index}") do #create a new fact with a name of qlogicfcdrivers + our #{index}
# noinspection RubyResolve
setcode do
newdrivers
end
end
elsif newmodels.include?('274')
Facter.add("qle274xfcdriver#{index}") do #create a new fact with a name of qlogicfcdrivers + our #{index}
# noinspection RubyResolve
setcode do
newdrivers
end
end
end
newdrivers.split(/\n/).each do |pair|
# noinspection RubyResolve,RubyResolve,RubyResolve,RubyResolve
if newmodels.include?('256')
driversarray256x.push(newdrivers)
Facter.add('qle256xfcdriver_array') do
# noinspection RubyResolve
setcode do
driversarray256x
end
end
Facter.add('qle256xfcdriver_stringify_array') do
# noinspection RubyResolve
setcode do
driversarray256x.join(', ')
end
end
elsif newmodels.include?('266')
driversarray266x.push(newdrivers)
Facter.add('qle266xfcdriver_array') do
# noinspection RubyResolve
setcode do
driversarray266x
end
end
Facter.add('qle266xfcdriver_stringify_array') do
# noinspection RubyResolve
setcode do
driversarray266x.join(', ')
end
end
elsif newmodels.include?('269')
driversarray269x.push(newdrivers)
Facter.add('qle269xfcdriver_array') do
# noinspection RubyResolve
setcode do
driversarray269x
end
end
Facter.add('qle269xfcdriver_stringify_array') do
# noinspection RubyResolve
setcode do
driversarray269x.join(', ')
end
end
elsif newmodels.include?('274')
driversarray274x.push(newdrivers)
Facter.add('qle274xfcdriver_array') do
# noinspection RubyResolve
setcode do
driversarray274x
end
end
Facter.add('qle274xfcdriver_stringify_array') do
# noinspection RubyResolve
setcode do
driversarray274x.join(', ')
end
end
end
end
#end
puts "Querying QLogic FC Firmware Information - Index #{index}"
#puts 'Creating QLogic FC Firmware Array Fact'
#puts 'Creating QLogic FC Firmware Stringify Array Fact'
#firmware = Facter::Core::Execution.exec('qaucli -fc -i | find "HBA Port"') #command runs globally so it pulls from all ports
#models.each_line.each_with_index do |line, index| #each_line do the next thing for each line in the return - each_with_index, keep track of the indexes starting at 0 for each line do the next thing with |line, index|
# noinspection RubyResolve,RubyResolve
newfirmware = Facter::Core::Execution.exec("qaucli -fc -i #{index} | findstr /c:\"Flash Firmware Version\" /c:\"Driver Firmware Version\"").split(':').last.strip
#newmodels = Facter::Core::Execution.exec("qaucli -fc -i #{index} | find \"HBA Model\"").match(/QL[EA][a-zA-Z0-9]+/).to_s
# noinspection RubyResolve,RubyResolve,RubyResolve,RubyResolve
if newmodels.include?('256')
Facter.add("qle256xfcfirmware#{index}") do
# noinspection RubyResolve
setcode do
newfirmware
end
end
elsif newmodels.include?('266')
Facter.add("qle266xfcfirmware#{index}") do
# noinspection RubyResolve
setcode do
newfirmware
end
end
elsif newmodels.include?('269')
Facter.add("qle269xfcfirmware#{index}") do
# noinspection RubyResolve
setcode do
newfirmware
end
end
elsif newmodels.include?('274')
Facter.add("qle274xfcfirmware#{index}") do
# noinspection RubyResolve
setcode do
newfirmware
end
end
end
newfirmware.split(/\n/).each do |pair|
# noinspection RubyResolve,RubyResolve,RubyResolve,RubyResolve
if newmodels.include?('256')
firmwarearray256x.push(newfirmware)
Facter.add('qle256xfcfirmware_array') do
# noinspection RubyResolve
setcode do
firmwarearray256x
end
end
Facter.add('qle256xfcfirmware_stringify_array') do
# noinspection RubyResolve
setcode do
firmwarearray256x.join(', ')
end
end
elsif newmodels.include?('266')
firmwarearray266x.push(newfirmware)
Facter.add('qle266xfcfirmware_array') do
# noinspection RubyResolve
setcode do
firmwarearray266x
end
end
Facter.add('qle266xfcfirmware_stringify_array') do
# noinspection RubyResolve
setcode do
firmwarearray266x.join(', ')
end
end
elsif newmodels.include?('269')
firmwarearray269x.push(newfirmware)
Facter.add('qle269xfcfirmware_array') do
# noinspection RubyResolve
setcode do
firmwarearray269x
end
end
Facter.add('qle269xfcfirmware_stringify_array') do
# noinspection RubyResolve
setcode do
firmwarearray269x.join(', ')
end
end
elsif newmodels.include?('274')
firmwarearray274x.push(newfirmware)
Facter.add('qle274xfcfirmware_array') do
# noinspection RubyResolve
setcode do
firmwarearray274x
end
end
Facter.add('qle274xfcfirmware_stringify_array') do
# noinspection RubyResolve
setcode do
firmwarearray274x.join(', ')
end
end
end
end
#end
puts "Querying QLogic FC Serial # Information - Index #{index}"
#puts 'Creating QLogic FC Serial # Array Fact'
#puts 'Creating QLogic FC Serial # Stringify Array Fact'
#serials = Facter::Core::Execution.exec('qaucli -fc -i | find "HBA Port"')#command runs globally so it pulls from all ports
#models.each_line.each_with_index do |line, index| #each_line do the next thing for each line in the return - each_with_index, keep track of the indexes starting at 0 for each line do the next thing with |line, index|
# noinspection RubyResolve,RubyResolve
newserials = Facter::Core::Execution.exec("qaucli -fc -i #{index} | find \"Serial Number\"").split(':').last.strip
#ewmodels = Facter::Core::Execution.exec("qaucli -fc -i #{index} | find \"HBA Model\"").match(/QL[EA][a-zA-Z0-9]+/).to_s
# noinspection RubyResolve,RubyResolve,RubyResolve
if newmodels.include?('256')
Facter.add("qle256xfcserial#{index}") do
# noinspection RubyResolve
setcode do
newserials
end
end
elsif newmodels.include?('266')
Facter.add("qle266xfcserial#{index}") do
# noinspection RubyResolve
setcode do
newserials
end
end
elsif newmodels.include?('269')
Facter.add("qle269xfcserial#{index}") do
# noinspection RubyResolve
setcode do
newserials
end
end
elsif newmodels.include?('274')
Facter.add("qle274xfcserial#{index}") do
# noinspection RubyResolve
setcode do
newserials
end
end
end
newserials.split(/\n/).each do |pair|
# noinspection RubyResolve,RubyResolve,RubyResolve,RubyResolve
if newmodels.include?('256')
serialsarray256x.push(newserials)
Facter.add('qle256xfcserials_array') do
# noinspection RubyResolve
setcode do
serialsarray256x
end
end
Facter.add('qle256xfcserials_stringify_array') do
# noinspection RubyResolve
setcode do
serialsarray256x.join(', ')
end
end
elsif newmodels.include?('266')
serialsarray266x.push(newserials)
Facter.add('qle266xfcserials_array') do
# noinspection RubyResolve
setcode do
serialsarray266x
end
end
Facter.add('qle266xfcserials_stringify_array') do
# noinspection RubyResolve
setcode do
serialsarray266x.join(', ')
end
end
elsif newmodels.include?('269')
serialsarray269x.push(newserials)
Facter.add('qle269xfcserials_array') do
# noinspection RubyResolve
setcode do
serialsarray269x
end
end
Facter.add('qle269xfcserials_stringify_array') do
# noinspection RubyResolve
setcode do
serialsarray269x.join(', ')
end
end
elsif newmodels.include?('274')
serialsarray274x.push(newserials)
Facter.add('qle274xfcserials_array') do
# noinspection RubyResolve
setcode do
serialsarray274x
end
end
Facter.add('qle274xfcserials_stringify_array') do
# noinspection RubyResolve
setcode do
serialsarray274x.join(', ')
end
end
end
end
#end
puts "Querying QLogic FC Bios Information - Index #{index}"
#puts 'Creating QLogic FC Bios Array Fact'
#puts 'Creating QLogic FC Bios Stringify Array Fact'
#bios = Facter::Core::Execution.exec('qaucli -fc -i | findstr /r "^BIOS Version$\"')
#models.each_line.each_with_index do |line, index|
# noinspection RubyResolve,RubyResolve
newbios = Facter::Core::Execution.exec("qaucli -fc -i #{index} | findstr /r \"^BIOS Version$\"").split(':').last.strip
#newmodels = Facter::Core::Execution.exec("qaucli -fc -i #{index} | find \"HBA Model\"").match(/QL[EA][a-zA-Z0-9]+/).to_s
# noinspection RubyResolve,RubyResolve,RubyResolve,RubyResolve
if newmodels.include?('256')
Facter.add("qle256xfcbios#{index}") do
# noinspection RubyResolve
setcode do
newbios
end
end
elsif newmodels.include?('266')
Facter.add("qle266xfcbios#{index}") do
# noinspection RubyResolve
setcode do
newbios
end
end
elsif newmodels.include?('269')
Facter.add("qle269xfcbios#{index}") do
# noinspection RubyResolve
setcode do
newbios
end
end
elsif newmodels.include?('274')
Facter.add("qle274xfcbios#{index}") do
# noinspection RubyResolve
setcode do
newbios
end
end
end
newbios.split(/\n/).each do |pair|
# noinspection RubyResolve,RubyResolve,RubyResolve,RubyResolve
if newmodels.include?('256')
biosarray256x.push(newbios)
Facter.add('qle256xfcbios_array') do
# noinspection RubyResolve
setcode do
biosarray256x
end
end
Facter.add('qle256xfcbios_stringify_array') do
# noinspection RubyResolve
setcode do
biosarray256x.join(', ')
end
end
elsif newmodels.include?('266')
biosarray266x.push(newbios)
Facter.add('qle266xfcbios_array') do
# noinspection RubyResolve
setcode do
biosarray266x
end
end
Facter.add('qle266xfcbios_stringify_array') do
# noinspection RubyResolve
setcode do
biosarray266x.join(', ')
end
end
elsif newmodels.include?('269')
biosarray269x.push(newbios)
Facter.add('qle269xfcbios_array') do
# noinspection RubyResolve
setcode do
biosarray269x
end
end
Facter.add('qle269xfcbios_stringify_array') do
# noinspection RubyResolve
setcode do
biosarray269x.join(', ')
end
end
elsif newmodels.include?('274')
biosarray274x.push(newbios)
Facter.add('qle274xfcbios_array') do
# noinspection RubyResolve
setcode do
biosarray274x
end
end
end
end
#end
puts "Querying QLogic FC WWN Information - Index #{index}"
#puts 'Creating QLogic FC WWN Array Fact'
#puts 'Creating QLogic FC WWN Stringify Array Fact'
#wwn = Facter::Core::Execution.exec('qaucli -fc -i | find "Port Name"')
#models.each_line.each_with_index do |line, index|
# noinspection RubyResolve,RubyResolve
newwwn = Facter::Core::Execution.exec("qaucli -fc -i #{index} | find \"Port Name\"").split(':').last.strip.gsub(/-/, '')
#newmodels = Facter::Core::Execution.exec("qaucli -fc -i #{index} | find \"HBA Model\"").match(/QL[EA][a-zA-Z0-9]+/).to_s
# noinspection RubyResolve,RubyResolve,RubyResolve,RubyResolve
if newmodels.include?('256')
Facter.add("qle256xfcwwn#{index}") do
# noinspection RubyResolve
setcode do
newwwn
end
end
elsif newmodels.include?('266')
Facter.add("qle266xfcwwn#{index}") do
# noinspection RubyResolve
setcode do
newwwn
end
end
elsif newmodels.include?('269')
Facter.add("qle269xfcwwn#{index}") do
# noinspection RubyResolve
setcode do
newwwn
end
end
elsif newmodels.include?('274')
Facter.add("qle274xfcwwn#{index}") do
# noinspection RubyResolve
setcode do
newwwn
end
end
end
newwwn.split(/\n/).each do |pair|
# noinspection RubyResolve,RubyResolve,RubyResolve,RubyResolve
if newmodels.include?('256')
wwnarray256x.push(newwwn)
Facter.add('qle256xfcwwn_array') do
# noinspection RubyResolve
setcode do
wwnarray256x
end
end
Facter.add('qle256xfcwwn_stringify_array') do
# noinspection RubyResolve
setcode do
wwnarray256x.join(', ')
end
end
elsif newmodels.include?('266')
wwnarray266x.push(newwwn)
Facter.add('qle266xfcwwn_array') do
# noinspection RubyResolve
setcode do
wwnarray266x
end
end
Facter.add('qle266xfcwwn_stringify_array') do
# noinspection RubyResolve
setcode do
wwnarray266x.join(', ')
end
end
elsif newmodels.include?('269')
wwnarray269x.push(newwwn)
Facter.add('qle269xfcwwn_array') do
# noinspection RubyResolve
setcode do
wwnarray269x
end
end
Facter.add('qle269xfcwwn_stringify_array') do
# noinspection RubyResolve
setcode do
wwnarray269x.join(', ')
end
end
elsif newmodels.include?('274')
wwnarray274x.push(newwwn)
Facter.add('qle274xfcwwn_array') do
# noinspection RubyResolve
setcode do
wwnarray274x
end
end
Facter.add('qle274xfcwwn_stringify_array') do
# noinspection RubyResolve
setcode do
wwnarray274x.join(', ')
end
end
end
end
end
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment