Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created July 1, 2015 17:21
Show Gist options
  • Save anonymous/94b93c22b76ee74aa970 to your computer and use it in GitHub Desktop.
Save anonymous/94b93c22b76ee74aa970 to your computer and use it in GitHub Desktop.
irb(main):026:0> newdrivers = Facter::Core::Execution.exec("qaucli -iscsi -dv").lines
=> ["Using config file: C:\\Program Files\\QLogic Corporation\\QConvergeConsoleCLI\\qaucli.cfg\n", "Using config file: C:\\Program Files\\QLogic Corporation\\QConvergeConsoleC
LI\\iscli.cfg\n", "Loading iSCSI Data ...\n", "Loading iSCSI Instance: 1 HBA: 1 Physical Port: 2 (QLE4062C, 00-C0-DD-25-C0-4B) ...\n", "Loading iSCSI Instance: 2 HBA: 1 Physic
al Port: 1 (QLE4062C, 00-C0-DD-25-C0-49) ...\n", "2.1.4.27 (STOR wx64)\n", "Installation directory: C:\\Program Files\\QLogic Corporation\\QConvergeConsoleCLI\n", "Working dir
: C:\\Users\\Administrator"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment