2017-07-20

/usr/bin/which: no qaucli

One of my colleague from Backup team requested to check why our media servers don't have the utility qaucli installed.  So I did some research and found out how to install it.

Source download:  http://driverdownloads.qlogic.com/ and choose the QConvergeConsole CLI for Linux under Management Tools.  And how I am able to get the information, I just did the following:

I went to one of our media servers who has this utility installed.

# qaucli -v
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli.cfg
Installation directory: /opt/QLogic_Corporation/QConvergeConsoleCLI
Working dir: /root
QConvergeConsole
CLI - Version 1.1.4 (Build 65)
Copyright (C) 2015 QLogic Corporation
Build Type: Release
Build Date: Sep 23 2015 12:47:50 
# which qaucli
/usr/local/bin/qaucli 
# yum whatprovides '*qaucli*'
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
rhel-x86_64-server-6                                                                                                                     | 1.8 kB     00:00  
https://mirrors.dotsrc.org/fedora-epel/6/x86_64/repodata/79e4f94bc0037f2dce184b518b08157c11cf3e1f7f1d48be9ee355dbbe55917f-filelists.sqlite.bz2: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/x86_64/repodata/79e4f94bc0037f2dce184b518b08157c11cf3e1f7f1d48be9ee355dbbe55917f-filelists.sqlite.bz2: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
http://mirror.vutbr.cz/epel/6/x86_64/repodata/79e4f94bc0037f2dce184b518b08157c11cf3e1f7f1d48be9ee355dbbe55917f-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
http://mirror.nl.leaseweb.net/epel/6/x86_64/repodata/79e4f94bc0037f2dce184b518b08157c11cf3e1f7f1d48be9ee355dbbe55917f-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
https://anorien.csc.warwick.ac.uk/mirrors/epel/6/x86_64/repodata/79e4f94bc0037f2dce184b518b08157c11cf3e1f7f1d48be9ee355dbbe55917f-filelists.sqlite.bz2: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
https://mirrors.nic.cz/epel/6/x86_64/repodata/79e4f94bc0037f2dce184b518b08157c11cf3e1f7f1d48be9ee355dbbe55917f-filelists.sqlite.bz2: [Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
epel/filelists_db                                                                                                                        | 7.7 MB     00:03  
rhel-x86_64-server-6/filelists                                                                                                           |  33 MB     00:04  
QConvergeConsoleCLI-1.1.04-65.x86_64 : QConvergeConsole Command Line Interface
Repo        : installed
Matched from:
Filename    : /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli_contents.dat
Filename    : /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli.cfg
Filename    : /opt/QLogic_Corporation/QConvergeConsoleCLI/libiscsi-qaucli-preun.sh
Filename    : /opt/QLogic_Corporation/QConvergeConsoleCLI/libiscsi-qaucli-post.sh
Filename    : /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli

So that's how I figured it out.  So I simply downloaded it (can't do it directly as there's an agreement box so I just copied over from my Windows machine to our NFS server).  Three media servers don't have this utility so I installed them as well via SSH thru for-do loop (of course I ensured that I can logon to these servers using my SSH keys to skip the password prompt).

$ for i in koios leto zefyr; do ssh -q $i.bck.corp.nnit.org -t "hostname; sudo yum install /depot/linux/sw_store/drivers_utils/utils/qlogic/QConvergeConsoleCLI-2.1.00-11.x86_64.rpm -y"; done

And to verify that it's working, I tried running the tool.

$ for i in dione koios leto zefyr; do ssh -q $i.bck.corp.nnit.org -t "sudo qaucli -iport"; echo -e "***********\r\n"; done                  
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli.cfg
Installation directory: /opt/QLogic_Corporation/QConvergeConsoleCLI
Working dir: /home/mmond


 ---------------------------------------------------------------------------------------
 Adapter Serial Number: 8C9717106E Model: SN1000Q Chip Revision: B0 Alias:
      1. Port: Protocol: FCoE
               Physical Port: 1 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 0
               WWNN: 51-40-2E-C0-00-F3-FC-CD
               WWPN: 51-40-2E-C0-00-F3-FC-CC
      2. Port: Protocol: FCoE
               Physical Port: 2 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 1
               WWNN: 51-40-2E-C0-00-F3-FC-CF
               WWPN: 51-40-2E-C0-00-F3-FC-CE
 ---------------------------------------------------------------------------------------
 Adapter Serial Number: 8C9717106T Model: SN1000Q Chip Revision: B0 Alias:
      3. Port: Protocol: FCoE
               Physical Port: 1 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 0
               WWNN: 51-40-2E-C0-00-F3-57-85
               WWPN: 51-40-2E-C0-00-F3-57-84
      4. Port: Protocol: FCoE
               Physical Port: 2 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 1
               WWNN: 51-40-2E-C0-00-F3-57-87
               WWPN: 51-40-2E-C0-00-F3-57-86
***********
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli.cfg
Installation directory: /opt/QLogic_Corporation/QConvergeConsoleCLI
Working dir: /home/mmond


 ---------------------------------------------------------------------------------------
 Adapter Serial Number: 8C9717102M Model: SN1000Q Chip Revision: B0 Alias:
      1. Port: Protocol: FCoE
               Physical Port: 1 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 0
               WWNN: 51-40-2E-C0-00-F3-FA-D9
               WWPN: 51-40-2E-C0-00-F3-FA-D8
      2. Port: Protocol: FCoE
               Physical Port: 2 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 1
               WWNN: 51-40-2E-C0-00-F3-FA-DB
               WWPN: 51-40-2E-C0-00-F3-FA-DA
 ---------------------------------------------------------------------------------------
 Adapter Serial Number: 8C9717102X Model: SN1000Q Chip Revision: B0 Alias:
      3. Port: Protocol: FCoE
               Physical Port: 1 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 0
               WWNN: 51-40-2E-C0-00-F3-FA-FD
               WWPN: 51-40-2E-C0-00-F3-FA-FC
      4. Port: Protocol: FCoE
               Physical Port: 2 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 1
               WWNN: 51-40-2E-C0-00-F3-FA-FF
               WWPN: 51-40-2E-C0-00-F3-FA-FE
***********
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli.cfg
Installation directory: /opt/QLogic_Corporation/QConvergeConsoleCLI
Working dir: /home/mmond


 ---------------------------------------------------------------------------------------
 Adapter Serial Number: 8C9717106U Model: SN1000Q Chip Revision: B0 Alias:
      1. Port: Protocol: FCoE
               Physical Port: 1 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 0
               WWNN: 51-40-2E-C0-00-F3-57-89
               WWPN: 51-40-2E-C0-00-F3-57-88
      2. Port: Protocol: FCoE
               Physical Port: 2 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 1
               WWNN: 51-40-2E-C0-00-F3-57-8B
               WWPN: 51-40-2E-C0-00-F3-57-8A
 ---------------------------------------------------------------------------------------
 Adapter Serial Number: 8C9717106V Model: SN1000Q Chip Revision: B0 Alias:
      3. Port: Protocol: FCoE
               Physical Port: 1 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 0
               WWNN: 51-40-2E-C0-00-F3-57-8D
               WWPN: 51-40-2E-C0-00-F3-57-8C
      4. Port: Protocol: FCoE
               Physical Port: 2 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 1
               WWNN: 51-40-2E-C0-00-F3-57-8F
               WWPN: 51-40-2E-C0-00-F3-57-8E
***********
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli.cfg
Installation directory: /opt/QLogic_Corporation/QConvergeConsoleCLI
Working dir: /home/mmond


 ---------------------------------------------------------------------------------------
 Adapter Serial Number: 8C971710MW Model: SN1000Q Chip Revision: B0 Alias:
      1. Port: Protocol: FCoE
               Physical Port: 1 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 0
               WWNN: 51-40-2E-C0-00-F3-5F-4D
               WWPN: 51-40-2E-C0-00-F3-5F-4C
      2. Port: Protocol: FCoE
               Physical Port: 2 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 1
               WWNN: 51-40-2E-C0-00-F3-5F-4F
               WWPN: 51-40-2E-C0-00-F3-5F-4E
 ---------------------------------------------------------------------------------------
 Adapter Serial Number: 8C971710N0 Model: SN1000Q Chip Revision: B0 Alias:
      3. Port: Protocol: FCoE
               Physical Port: 1 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 0
               WWNN: 51-40-2E-C0-00-F3-5F-5D
               WWPN: 51-40-2E-C0-00-F3-5F-5C
      4. Port: Protocol: FCoE
               Physical Port: 2 ISP: 27 Port Alias:
               Physical MAC: 00-00-00-00-00-00
               Vendor ID: 103c SubVendor ID: 103c Device ID: 2031 SubDevice ID: 17e8
               Function ID: 1
               WWNN: 51-40-2E-C0-00-F3-5F-5F
               WWPN: 51-40-2E-C0-00-F3-5F-5E
***********


No comments:

Post a Comment