{"id":16163015,"url":"https://github.com/d3vilh/hw_au","last_synced_at":"2026-05-01T19:35:01.829Z","repository":{"id":50392789,"uuid":"363603096","full_name":"d3vilh/HW_AU","owner":"d3vilh","description":"Hardware inventory tool for Comverse One systems","archived":false,"fork":false,"pushed_at":"2022-12-26T15:21:16.000Z","size":2030,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T04:27:18.861Z","etag":null,"topics":["aix","ajms","audit","comverse","comverse-one","hardware","inventory","linux","oam","sapi","sdp","sgu","slu","storage","upm"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d3vilh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audit.run","citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-02T08:32:55.000Z","updated_at":"2022-08-25T09:21:20.000Z","dependencies_parsed_at":"2023-01-31T00:30:30.221Z","dependency_job_id":null,"html_url":"https://github.com/d3vilh/HW_AU","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/d3vilh/HW_AU","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3vilh%2FHW_AU","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3vilh%2FHW_AU/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3vilh%2FHW_AU/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3vilh%2FHW_AU/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d3vilh","download_url":"https://codeload.github.com/d3vilh/HW_AU/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3vilh%2FHW_AU/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32510808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aix","ajms","audit","comverse","comverse-one","hardware","inventory","linux","oam","sapi","sdp","sgu","slu","storage","upm"],"created_at":"2024-10-10T02:34:13.344Z","updated_at":"2026-05-01T19:35:01.809Z","avatar_url":"https://github.com/d3vilh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hardware Inventory audit tool for Comverse One systems.\n=======================================================\nRuns audit for all AIX and Linux servers in /etc/hosts of your master node and provides CSV file with all the details as result. \n\nUPDATES\n--------\n* **v.0.1.7** 26.12.2022 audit_new.run - new version of audit.run. Universal for all the sites.\n* **v.0.1.6** 23.03.2022 Now `audit.run` is universal for all sites and customers. For minimum run you need to have `audit.run, aix_hw_au.sh, linux_hw_au.sh, esxi_hw_au.sh and inventory.SITE` in the same directory.\n* **v.0.1.6** 14.03.2022 + Report files format update \u0026 rotation(+15 days older files will be deleted). You can run single audit.run file on different inventory files. + some bugfixes for lnx_hw_au.sh\n* **v.0.1.5** 28.01.2022 + esxi hosts inventory and various bugfixes  \n* **v.0.1.2** 11.01.2022 Inventory fileto store all the hosts \n* **v.0.1.1** 13.09.2021 AIX UAC Expiration date report \n\nMAIN FEATURES\n--------------\n* **Fast and easy to setup**\n* **Require minimal system resources**\n* **Does not require 3rd party software to run**\n* **VM and BM compatible**\n\nThe Inventory utility provides following information:\n\n* Server hardware parts report (CPU, RAM, HDD, PCI boards)\n* Server Serial Numbers report (Server MB, Storage, Fiber Switches, Tape Libs)\n* Server Firmware versions (BIOS, UEFI, NIC, POWER servers)\n* OS information (Score version, architecture type, Linux kernel, AIX OS Level)\n* HDD and SSD Smart status (HDD \u0026 SSD health)\n* Linux drivers versions for critical components (NIC modules)\n* Server uptime, Limits, MEM Pages and TZ settings\n* Running C1 and 3rd party applications version (CBS apps, UPA, Oracle, Java, WebLogic) Advanced Storage report (for EMC CX, DATA Domain, IBM v7000 and IBM fs900) Advanced FCS report (CISCO Nexus)\n* Core Network switches inventory (Juniper and Cisco switches)\n* _Servers Network configuration snapshot (AIX and Linux. MAC, IP, Routing, VIP)._ Available [here](https://github.com/d3vilh/NET_AU)\n\nPREREQUISITES\n--------------\n* Require **Bash version 3** or higher on the master server (`bash --version`) \n* The `inventory.SITE_ID` file should be updated with IPs and hosts you desire to run audit. You can cat /etc/hosts into inventory, but be sure there are no duplicated records for the same server.\n* SSH password-less access needs be configured across all UNIX servers (Linux and AIX). If this configuration is missed the utility will ask for the password for every server where no ssh certificates is present\n* For IBM v7000 and fs900 storages, ssh password-less access needs to be present on SDP_A node to both storage enclosures(active and stby.). This is default configuration.\n* The Hardware Inventory tool support any Linux or AIX versions on the remote servers by default. However, Site specific configuration should be done for `audit.run` script.\n\nPREPARATION\n-----------\n**1. The `inventory.SITE_ID` file** will be created automatically with necessary template on first `audit.run` execution in ./ directory. Then you have to update it with all the IPs and hosts you are desired to run audit. `cat /etc/hosts \u003e inventory.SITE_ID` will also works for you, just be sure there will not be any duplicated records (othervise you'll have dup results) and final forma of every line will be `IP hostname`.\nThe linux and aix audit scripts uses special filters to avoid running inventory on the same host several times. Nevertheless it is recomended to carefully review inventory file. You can add special filter to exclude not necessary servers from the inventory list by adding the line `#audit_exclude` for every server record. For example:\n\n``` shell\nCELCO:oam1a:/root# grep audit_exclude inventory.CELCO \n10.1.1.112 upmdb1a #audit_exclude\n10.1.1.113 upmdb1b #audit_exclude\n10.1.1.234 BitCoin1 miner1 #audit_exclude \n```\nDifferent SDP types(Linux or AIX) inside `inventory.SITE_ID` file should be marked by `#aixsdp` or `#lnxsdp` tags, as shown below.\n``` shell\nCELCO:oam1a:/root# grep sdp inventory.CELCO \n10.1.1.112 sdp1a #lnxsdp\n10.1.1.114 sdp2a #aixsdp\n```\n**FOR BASIC INVENTORY** - skip preparation and go to next step - [FULL SITE INVENTORY](https://github.com/d3vilh/HW_AU#full-site-inventory)\n\n**2. For IBM v7000** add san_console information into the SDP `/etc/hosts` (both nodes):\n``` shell\nCELCO-SDP1a:sdp1:/# grep -i san /etc/hosts \n10.1.1.125 san_console\n10.1.1.138 v7000-1a san1 \n10.1.1.139 v7000-1b san2\n```\nThe san_console is an IBM storage enclosures VIP interface. Which can be obtained from the storage active enclosure node (password-less access setup for SDP_A only):\n``` shell\nCELCO-SDP1a:sdp1:/# ssh superuser@san_console lssystem | grep console \nconsole_IP 10.1.1.125:443\nCELCO-SDP1a:sdp1:/#\n```\n\n**3. For IBM fs900** add san_console_flash information into the SDP `/etc/hosts` (both nodes):\n``` shell\nCELCO-SDP23:sdp1:/# grep -i san_console /etc/hosts \n10.1.1.39 san_storage-23 san1 san_console \n10.1.1.45 san_flash-23 san2 san_console_flash \nCELCO-SDP23:sdp1:/#\n```\nThe san_console_flash is an IBM flash storage enclosures VIP interface. This information can be obtained from the storage active node enclosure (console password-less access setup for SDP_A only by default):\n``` shell\nCELCO-SDP23:sdp1:/# ssh superuser@san_console_flash lssystem | grep console \nconsole_IP 10.1.1.45:443\nCELCO-SDP23:sdp1:/#\n```\n\n**4. Beware that to some POWER8 SDPs both type of the storages** (v7000 and fs900) can be connected to one SDP server (different VGs are located on different storages). Be sure that you have both `san_console` and `san_console_flash` IP addresses in `/etc/hosts` file on **both SDP_A and SDP_B nodes** for this type of servers.\n\n**5. Double check** that SDP_A `known_hosts` file contains records for new san_console and `san_console_flash` hosts:\n``` shell\nCELCO-SDP23a:sdp1:/# ssh superuser@san_console 'lssystem'| grep code_level \ncode_level 7.8.1.10 (build 135.9.1905291321000)\nCELCO-SDP23a:sdp1:/# ssh superuser@san_console_flash 'lssystem'| grep code_level \ncode_level 7.8.1.10 (build 135.9.1905291321000)\nCELCO-SDP23a:sdp1:/#\n```\n\n**6. For CISCO FCS** (Nexus modules only) create special inventory user and configure password-less access for SDP_A node on fcswa and fcswb FCSs:\n``` shell\nCELCO-SDP23:sdp1:/# grep -i fcsw /etc/hosts \n10.1.1.57 fc-sw23a fcswa fcs23a \n10.1.1.58 fc-sw23b fcswb fcs23b\nCELCO-SDP23:sdp1:/#\n```\nLogin from SDP_A node to fcswa as admin user and list all connected users to define correct SDP_A IP address:\n``` shell\nCELCO-FCS-23A# show users\nNAME LINE TIME IDLE PID COMMENT\naudit pts/0 Jan 21 20:37 . 6669 (10.1.1.56) session=ssh * CELCO-FCS-23A#\n```\nCopy SDP_A RSA certificate to fcswa node (use IP defined on previous step):\n``` shell\nCELCO-FCS-23A# copy sftp://root@10.1.1.56/.ssh/id_rsa.pub id_rsa.pub \n```\nConfirm certificate now exists on CISCO bootflash device:\n``` shell\nCELCO-FCS-23A# dir ...\n             391    Mar 20 17:27:44 2019  id_rsa.pub\n      ...\nCELCO-FCS-23A#\n```\nCreate new audit user with reduced access permissions and stick RSA certificate to it:\n``` shell\nCELCO-FCS-23A# conf t\nCELCO-FCS-23A(config)# username audit password Blah-Blah-Blah role network-operator\nCELCO-FCS-23A(config)# username audit sshkey file bootflash:id_rsa.pub \nCELCO-FCS-23A(config)# end\nCELCO-FCS-23A#\n```\nConfirm new user has been created with reduced permissions role and RSA certificate:\n``` shell\nCELCO-FCS-23A# show user-account audit \n        user:audit\n        this user account has no expiry date\n        roles:network-operator\n        ssh public key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxFUEqKCuvQiSE0\n        ogU2oNplgN9caBmOUOQ556zD4PLzGS5SzBlah-Blah-Blah...\nCELCO-FCS-23A#\n```\nSave new CISCO configuration:\n``` shell\nCELCO-FCS-23A# copy run start\n# [########################################] 100% # Copy complete.\nCELCO-FCS-23A# exit\n```\n**Perform the same steps for SDP_A but from `fcswb (the second)` switch.**\n\nConfirm password-less access is configured for both fcswa and fcswb switches from SDP_A node:\n``` shell\nCELCO-sdp23a:/# ssh -q audit@fcswa 'sh inventory' | head -1 | awk '{print $4,$5}'; \nMDS 9148S\nCELCO-sdp23a:/# ssh -q audit@fcswb 'sh inventory' | head -1 | awk '{print $4,$5}'; \nMDS 9148S\nsdp23a:/#\n```\n\nFULL SITE INVENTORY\n-------------------\nTo run hardware inventory across all the onsite servers you have to execute `audit.run` script\nas superuser with short site name:\n``` shell\nCELCO-UPM1a:upm1:# ./audit.run CELCO\nKeep an eye on the progress. Human input might be required.\n   Running HW Inventory on following units:\n   SGU, DGU, SLU, DSLU, CRMOMAPP, ... CMVOEM, UPM, UPMDB, OAMAPP, SDP, CPM, WPDB, BF, ADMIN\n   PROGRESS: 70%  [################################..............] RUNNING ON: UPM\u0026DB\n```\nFor help information - fire `audit.run` without any keys: \n``` shell\nCELCO-UPM1a:upm1:# ./audit.run\n   Runs Hardware Inventory checks across all onsite units.\nUsage: ./audit.run SITE_ID\nWhere SITE_ID is short site name. AIX and LINUX inventory scripts will be updated\n  with this short name on first audit.run execution.\n    Examples:\n      ./audit.run CELCO\n      ./audit.run CELCO_PROD\n      ./audit.run CELCO_TEST\n    Prerequisites:\n      aix_hw_au.sh - runs Hardware Inventory checks against any AIX-based servers.\n      linux_hw_au.sh - runs Hardware Inventory checks against any Linux-based servers.\nBe aware that SANbox and EMCds FCSs checks is deprecated in this version, as obsolete HW \nCELCO-UPM1a:upm1:#\n```\nAs a result of this execution you’ll have two .CSV files. First with Linux based servers inventory, second with AIX based servers inventory information:\n``` shell\nCELCO-UPM1a:upm1:# ls -rlt\n-rwxrwxrwx 1 root root 5319 Jan 21 19:40 audit.run\n-rwxrwxrwx 1 root root 15880 Jan 21 21:32 linux_hw_au.sh \n-rwxrwxrwx 1 root root 12436 Jan 21 21:32 aix_hw_au.sh\n-rw-r--r-- 1 root root 87596 Jan 21 21:43 CELCO.LINUX_HW_LIST.csv \n-rw-r--r-- 1 root root 20161 Jan 21 21:47 CELCO.AIX_HW_LIST.csv \nCELCO-UPM1a:upm1:#\n```\nBoth CSV files will contain all the inventory data with pipe (`|`) symbol used as the columns delimiter:\n``` shell\nCELCO-UPM1a:upm1:# head -2 CELCO.LINUX_HW_LIST.csv\nSITE |HOSTNAME |IP ADDR    |ROUTE    |HW TYPE              |HW SN |LNX SCORE |KERNEL               |HW ARCH |APP VERSION |APP INSTALL DATE(M/D/Y) |UP VERSION |ORA CLI    |ORA DB |TT DB |WL VERSION |JAVA VER  |RAM     |CORES |THREADS |ENA CORES |CPU            |HDD SIZE |HDD MODEL         |HDD HEALTH |ACTIVE UEFI BANK |UEFI/BIOS VERSION |FILE-MAX (sysctl.conf) |FILE-LIMIT (ulimit -n)|UPTIME   |NIC DRVs                 |EMC MODEL |EMC SERIAL |EMC FLARE |V7k MODEL |V7k TYPE |V7k ENCLOSURE SN |v7K FW |V7k failed HDDs |V7k CONSOLE |DD MODEL |DD SERIAL |DD OS |DD DISK STATUS |DD UPTIME \nCELCO|sgu1a    |10.1.1.100 |10.1.1.1 |ProLiant BL460c Gen8 |OLOLO |6.2.1     | 2.6.32-220.el6.i686 |i686    |7.0.5       | Mon Apr 10 2017        |4.120.0    |11.2.0.3.0 |NA     |NA    |NA         | 1.6.0_31 |3983136 |6     |12      |6         |E5-2620Xeon(R) |300.0GB  |HP LOGICAL VOLUME |OK         |HP NA            | 1.51             | 20000                 |8192                  |327 days |2.1.11 2.7.0.3 1.70.00-0 |NA        |NA         |NA        |NA        |NA       |NA               |NA     |NA              |NA          |NA       |NA        |NA    |NA             | NA\nCELCO-UPM1a:upm1:#\n```\n\nLINUX HOSTS INVENTORY\n---------------------\nTo run Hardware Inventory checks against any Linux-based servers you have to execute `linux_hw_au.sh` script.\nFor help information, run `linux_hw_au.sh` without any keys:\n``` shell\nCELCO-UPM1a:upm1:# ./linux_hw_au.sh\n   Runs Hardware Inventory checks against any Linux-based servers.\nUsage: ./linux_hw_au.sh HOSTNAME SITE_ID Where:\n      HOSTNAME is server to run inventory on or mask for the group of hosts from the /etc/hosts\n      SITE_ID is optional parameter, will be inserted as first column of output. PROD_SITE is used\n      by default\n     Examples:\n      ./linux_hw_au.sh sgu21b CELCO\n      ./linux_hw_au.sh slu CELCO_PROD\n      ./linux_hw_au.sh sgu23\nCELCO-UPM1a:upm1:#\n```\nOnce you read all the help, you can execute `linux_hw_au.sh` script as superuser.\nBeware the script will not save any data to .CSV files, it will send all the output, about every server to console:\n``` shell\nCELCO-UPM1a:upm1:# ./linux_hw_au.sh sgu3 CELCO\n  SITE |HOSTNAME |IP ADDR  |DEF GW   |HW TYPE                  |HW SN        |LNX SCORE |KERNEL                     |HW ARCH |APP VERSION |APP INSTALL DATE(M/D/Y) |UP VERSION |ORA CLI    |ORA DB      |ORA TT DB   |WL VERSION |JAVA VER |RAM      |CORES |THREADS |ENA CORES |CPU            |HDD SIZE |HDD MODEL         |HDD HEALTH |ACTIVE UEFI BANK |UEFI/BIOS VERSION   |FILE-MAX (sysctl.conf) |FILE-LIMIT (ulimit -n)|UPTIME    |NIC DRVs                  |EMC MODEL |EMC SERIAL     |EMC FLARE      |V7k MODEL          |V7k TYPE          |V7k ENCLOSURE SN |v7K FW  |V7k failed HDDs |V7k CONSOLE      |DD MODEL       |DD SERIAL      |DD OS          |DD DISK STATUS |DD UPTIME\n CELCO |sgu3a    |10.1.1.1 |1.4.33.1 |DPM3 PFS-379/380         |See IPMI FRU |5.4       |2.6.18-164.2.1.el5PAE      |i686    |6.0.2       | Thu Dec 15 2011        |4.109.3    |10.2.0.3.0 |10.2.0.3.0  |NA          |NA         |1.4.2    |4019116  |2     |2       |NA        |T7400Core(TM)2 |120.0GB  |SEAGATE-MDB       |OK         |DPM3 NA          |1.00.08             |8192                   |8192                  |1155 days |1.9.3 2.0.1e 1.48.105     |NA        |NA             |NA             |NA                 |NA                |NA               |NA      |NA              |NA               |NA             |NA             |NA             |NA             |NA\n CELCO |upm1     |10.1.1.5 |1.4.33.1 |INTEL BALLENGER T5000PAL |AZD666OLOLO  |2.0.7.22  |2.6.18-164.el5PAE          |i686    |3.8.4.2     | Wed Jun 04 2017        |4.109.3    |NA         |10.2.0.5.0a |NA          |NA         |1.4.2    |16622832 |4     |4       |NA        |5128Xeon(R)    |73.5GB   |FUJITSUMBB2073RC  |OK         |BALLENGER NA     |10.0                |131072                 |65536                 |306 days  |1.9.3 2.0.1e 1.48.105     |CX300     |CK2000666OLOLO |2.26.300.5.020 |NA                 |NA                |NA               |NA      |NA              |NA               |NA             |NA             |NA             |NA             |NA\n CELCO |upmdb1a  |10.1.1.3 |1.4.33.1 |ProLiant BL460c Gen8     |CZD666OLOLO  |6.2.2     |2.6.32-220.46.1.el6.x86_64 |x86_64  |3.8.4.2     | Fri Sep 01 2015        |2.0.0      |NA         |11.2.0.4.12 |NA          |NA         |1.6.0_31 |32839312 |6     |12      |6         |E5-2620Xeon(R) |300.0GB  |HP LOGICAL VOLUME |OK         |HP NA            |1.51                |200006815744           |65536                 |585 days  |2.1.11 2.7.0.3 1.70.00-0  |NA        |NA             |NA             |NA                 |NA                |NA               |NA      |NA              |NA               |DD2200         |FLD221OLOLOSHA |5.5.0.9-471508 |Normal         |32 days\n CELCO |oam1     |10.1.1.4 |1.4.33.1 |ProLiant BL460c Gen8     |CZJ666OLOLO  |6.2.1     |2.6.32-220.el6.x86_64      |x86_64  |3.8.4.2     | Wed Oct 06 2017        |4.110.2    |11.2.0.3.0 |NA          |NA          |NA         |1.6.0_31 |16292520 |6     |12      |6         |E5-2620Xeon(R) |300.0GB  |HP LOGICAL VOLUME |OK         |HP NA            |1.51                |20000                  |8192                  |35 days   |2.1.11 2.7.0.3 1.70.00-0  |NA        |NA             |NA             |IBM Storwize V7000 |control 2076-524  |control 7LOLOKA  |7.4.0.2 |0               |10.1.1.99:443    |NA             |NA             |NA             |NA             |NA\n CELCO |sapi6    |10.1.1.2 |1.4.33.1 |BladeCenter HS22 -[7Z5]- |06W666OLOLO  |5.4       |2.6.18-164.2.1.el5         |x86_64  |3.8.4.2     | Thu Oct 01 2015        |4.110.2    |10.2.0.1.0 |10.2.0.3.0  |NA          |10.3.0.0   |1.4.2    |12142660 |8     |16      |4+4       |E5620Xeon(R)   |600.1GB  |IBM-ESXSMBF2600RC |OK         |Primary          |P9E165BUS-1.29-     |5000                   |8192                  |3 days    |2.0.24b 2.6.2.4c 1.62.16  |NA        |NA             |NA             |NA                 |NA                |NA               |NA      |NA              |NA               |NA             |NA             |NA             |NA             |NA\n CELCO |slu14    |10.1.1.8 |1.4.33.1 |ProLiant BL460c Gen8     |CZD666OLOLO  |5.8       |2.6.18-400.1.1.el5PAE      |i686    |3.8.4.2     | Wed Apr 22 2017        |4.110.2    |10.2.0.1.0 |10.2.0.3.0  |NA          |NA         |1.4.2    |33111736 |8     |16      |8         |E5-2658Xeon(R) |600.0GB  |HP EG0600FBVFP    |OK         |HP NA            |1.51                |65000                  |65000                 |271 days  |2.1.11 2.7.2.2 1.72.51-0  |NA        |NA             |NA             |NA                 |NA                |NA               |NA      |NA              |NA               |NA             |NA             |NA             |NA             |NA\n CELCO |eci16    |10.1.1.9 |1.4.33.1 |ProLiant BL460c Gen9     |CZD666OLOLO  |6.6       |2.6.32-504.16.2.el6.x86_64 |x86_64  |3.8.4.2     | Wed May 06 2017        |2.0.0      |11.2.0.3.0 |NA          |NA          |NA         |1.6.0_31 |32751916 |6     |12      |6         |E5-2620Xeon(R) |600.1GB  |HP LOGICAL VOLUME |OK         |HP NA            |2.50                |65000                  |65000                 |133 days  |2.2.5l 2.10.1.0 1.710.71  |NA        |NA             |NA             |NA                 |NA                |NA               |NA      |NA              |NA               |NA             |NA             |NA             |NA             |NA\n CELCO |dtr12    |10.1.1.4 |1.4.33.1 |ProLiant DL360 Gen10     |CZD666OLOLO  |6.9       |2.6.32-696.el6.x86_64      |x86_64  |5.5.4       | Mon Dec 07 2017        |4.120.0    |11.2.0.5.0 |NA          |11.2.2.8.12 |NA         |1.6.0_31 |32543264 |4     |8       |4         |5122Xeon(R)    |300.0GB  |HP EG000300JWSJP  |OK         |HP NA            |FW: 2.14 BIOS: 2.34 |65000                  |65000                 |176 days  |2.2.6 2.7.10.1 1.712.30-0 |NA        |NA             |NA             |NA                 |NA                |NA               |NA      |NA              |NA               |NA             |NA             |NA             |NA             |NA\n```\nYou can print necessary inventory data only:\n``` shell\nCELCO-UPM1a:upm1:# ./linux_hw_au.sh urp | awk -F '|' '{print $2\"|\"$5\"|\"$6}' \nHOSTNAME |HW TYPE                  |HW SN\n    urp1 |IBM eServer BladeCenter  |OLOLO\n    urp2 |BladeCenter HS22 -[7Z5]- |OLOLO1\n    urp3 |DPM3 PFS-379/380         |See IPMI FRU\nCELCO-UPM1a:upm1:#\n```\nOr forward output into the file for further analysis:\n``` shell\nCELCO-UPM1a:upm1:# ./linux_hw_au.sh dslu CELCO \u003e CELCO.LINUX.`date +’%d.%m.%Y'`.csv \nCELCO-UPM1a:upm1:# ls -lrt *.csv\n-rw-r--r-- 1 root root 6310 Jan 20 22:36 CELCO.LINUX.20.01.2015.csv \nCELCO-UPM1a:upm1:# wc -l CELCO.LINUX.20.01.2015.csv\n42 CELCO.LINUX.20.01.2015.csv\nCELCO-UPM1a:upm1:#\n```\n\nAIX HOSTS INVENTORY\n-------------------\nTo run Hardware Inventory checks against any Linux-based servers you have to execute `aix_hw_au.sh` script.\nFor help information, run `aix_hw_au.sh` without any keys:\n``` shell\nCELCO-UPM1a:upm1:# ./aix_hw_au.sh\n   Runs Hardware Inventory checks against any AIX-based servers.\nUsage: ./aix_hw_au.sh HOSTNAME SITE_ID Where:\n      HOSTNAME is server to run inventory on or mask for the group of hosts from the /etc/hosts\n      SITE_ID is optional parameter, will be inserted as first column of output. PROD_SITE is used\n      by default\n     Examples:\n      ./aix_hw_au.sh sdp1b CELCO\n      ./aix_hw_au.sh sdp CELCO_PROD\n      ./aix_hw_au.sh CELCO_TEST\nCELCO-UPM1a:upm1:#\n```\nOnce you read all the help, you can execute `aix_hw_au.sh` script as superuser. Beware the script will not save any data to .CSV files, it will send all the output, about every server to console:\n``` shell\nCELCO-UPM1a:upm1:# ./aix_hw_au.sh sdp1 CELCO\n SITE |HOSTNAME |HW TYPE |SYSTEM MODEL |SERIAL |NGSCORE |DBCORE |ORACLE DB       |ORACLE CLIENT |UP VERSION |JAVA VERSION |FIRMWARE                                              |UAC EXP DATE |AIX OS LEVEL    |BLU MODEL       |BLU SERIAL |NSR LICENSE EXP |NETWORKER VERSION |FCSWA MODEL    |FCSWA SN    |FCSWA FW LEVEL |FCSWB MODEL    |FCSWA SN    |FCSWB FW LEVEL |EMC MODEL |EMC SERIAL     |EMC FLARE       |V7k MODEL          |V7k TYPE                                                                                     |V7k ENCLOSURE SN                                                              |v7K FW    |V7k failed HDDs |V7k CONSOLE     |V7k2F MODEL         |V7k2F TYPE       |V7k2F ENCLOSURE SN |v7K2F FW  |V7k2F failed SSDs |V7k2F CONSOLE  |CLUST IP   |NODE IP   |HMC IP    |LPAR INFO  |AUTO RESTART |CPU CLOCK |NUM OF CPU |RAM SIZE  |GOOD RAM SIZE |NUM OF RAM MODULES |SIZE OF RAM MODULES(MB)                                                                                                                                                                                                                        |PAGE SIZE      |COUNT ERRPT | UNIQ ERRPT |UPTIME\nCELCO |sdp1a    |POWER8  |IBM,8284-22A |OLOLO  |V7.2.4  |4.56.0 |11.2.0.4.191015 |Not installed |4.110.2    |1.6.2        |sys0!system:SV860_205 (t) SV860_205 (p) SV860_205 (t) |20210401     |7200-03-03-1913 |IBMULT3580-HH7  |31666OLOLO |No Exp Date     |NA                |cisco MDS 9124 |FOX15666LOL |5.0(1a)        |cisco MDS 9124 |FOX12666LOL |5.0(1a)        |NA        |NA             |NA              |NA                 |NA                                                                                           |NA                                                                            |NA        |0               |NA              |IBM FlashSystem 900 |control 9843-AE3 |1666LOL            |1.6.1.0   |0                 |10.1.1.122:443 |10.1.1.138 |10.1.1.32 |NA        |1 78-D13BX |true         |3891 MHz  |12         |253952 MB |253952 MB     |8                  |32768 32768 32768 32768 32768 32768 32768 32768                                                                                                                                                                                                |s 4 KB m 64 KB |32          |1           |329days\nCELCO |sdp1b    |POWER8  |IBM,8284-22A |OLOLO  |V7.2.4  |same2a |11.2.0.4.191015 |Not installed |4.110.2    |1.6.2        |sys0!system:SV860_205 (t) SV860_205 (p) SV860_205 (t) |20210401     |7200-03-03-1913 |IBMULT3580-HH7  |31666OLOLO |No Exp Date     |NA                |see node A     |see node A  |see node A     |see node A     |see node A  |see node A     |NA        |NA             |NA              |NA                 |NA                                                                                           |NA                                                                            |NA        |0               |NA              |see node A          |see node A       |see node A         |see node A|see node A        |see node A     |10.1.1.139 |10.1.1.33 |NA        |1 78-D13CX |true         |3891 MHz  |12         |253952 MB |253952 MB     |8                  |32768 32768 32768 32768 32768 32768 32768 32768                                                                                                                                                                                                |s 4 KB m 64 KB |32          |1           |329days\nCELCO |sdp2b    |POWER5  |IBM,9117-570 |OLOLO  |V3.0.4  |3.5.50 |10.2.0.5.0      |Not installed |4.100.0    |1.5.0        |sys0!system:SF240_338 (t) SF240_332 (p) SF240_338 (t) |NA           |6100-06-01-1043 |IBMULTRIUM-TD3  |27666OLOLO |No Exp Date     |7.6.Build.142;    |NA             |NA          |NA             |NA             |NA          |NA             |CX3-40f   |CK2000666OLOLO |3.26.40.5.025   |NA                 |NA                                                                                           |NA                                                                            |NA        |NA              |NA              |NA                  |NA               |NA                 |NA        |NA                |NA             |10.1.1.140 |10.1.1.45 |NA        |1 06-9B300 |true         |1900 MHz  |8          |63872 MB  |63872 MB      |32                 |2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048 2048                                                                                |s 4 KB m 64 KB |34          |2           |642days\nCELCO |sdp3a    |POWER6  |IBM,9117-MMA |OLOLO  |V3.0.5  |4.35.0 |11.2.0.3.12     |Not installed |4.100.0    |1.5.0        |sys0!system:EM350_108 (t) EM350_108 (p) EM350_108 (t) |NA           |6100-06-01-1043 |IBMULTRIUM-TD3  |27666OLOLO |No Exp Date     |7.6.Build.142;    |NA             |NA          |NA             |NA             |NA          |NA             |CX3-40f   |CK2000666OLOLO |3.26.40.5.032   |NA                 |NA                                                                                           |NA                                                                            |NA        |NA              |NA              |NA                  |NA               |NA                 |NA        |NA                |NA             |10.1.1.141 |10.1.1.48 |10.1.1.88 |2 CEL-SDP3 |true         |4208 MHz  |8          |190464 MB |190464 MB     |48                 |4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096 4096|s 4 KB m 64 KB |43728       |5           |629days\nCELCO |sdp10a   |POWER7  |IBM,8233-E8B |OLOLO  |V3.0.6  |4.56.0 |11.2.0.3.15     |Not installed |4.110.2    |1.5.0        |sys0!system:AL730_154 (t) AL730_154 (p) AL730_154 (t) |NA           |6100-09-03-1415 |HPUltrium4-SCSI |27666OLOLO |No Exp Date     |8.2.1.0.Build.681;|cisco MDS 9124 |FOX15666LOL |5.0(4c)        |cisco MDS 9124 |FOX15666LOL |5.0(4c)        |CX4-480   |CKM001666OLOLO |04.30.000.5.529 |NA                 |NA                                                                                           |NA                                                                            |NA        |NA              |NA              |NA                  |NA               |NA                 |NA        |NA                |NA             |10.1.1.142 |10.1.1.28 |NA        |1 06-4C53R |true         |3220 MHz  |8          |127744 MB |127744 MB     |8                  |16384 16384 16384 16384 16384 16384 16384 16384                                                                                                                                                                                                |s 4 KB m 64 KB |19          |2           |159days\nCELCO |sdp23a   |POWER8  |IBM,8284-22A |OLOLO  |V3.0.11 |4.55.0 |11.2.0.4.5      |Not installed |4.100.0    |1.5.0        |sys0!system:SV860_118 (t) SV860_118 (p) SV860_118 (t) |NA           |6100-09-03-1415 |HPUltrium6-SCSI |27666OLOLO |No Exp Date     |8.2.1.0.Build.681;|cisco MDS 9148S|JPG21666LOL |6.2(17)        |cisco MDS 9148S|JPG21666LOL |6.2(17)        |NA        |NA             |NA              |IBM Storwize V7000 |expansion 2076-24F expansion 2076-24F control 2076-624 expansion 2076-24F expansion 2076-24F |expansion 71LOL expansion 71LOL control 71LOL expansion 71LOL expansion 71LOL |8.2.1.10  |0               |10.1.1.77:443   |NA                  |NA               |NA                 |NA        |NA                |NA             |10.1.1.143 |10.1.1.70 |NA        |1 78-2521X |true         |3891 MHz  |6          |189696 MB |189696 MB     |6                  |32768 32768 32768 32768 32768 32768                                                                                                                                                                                                            |s 4 KB m 64 KB |69          |3           |701days\nCELCO |sdp23b   |POWER8  |IBM,8284-22A |OLOLO  |V3.0.11 |3.6.10 |11.2.0.4.5      |Not installed |4.100.0    |1.5.0        |sys0!system:SV860_118 (t) SV860_118 (p) SV860_118 (t) |NA           |6100-09-03-1415 |HPUltrium6-SCSI |27666OLOLO |No Exp Date     |8.2.1.0.Build.681;|see node A     |see node A  |see node A     |see node A     |see node A  |see node A     |NA        |NA             |NA              |see node A         |see node A                                                                                   |see node A                                                                    |see node A|see node A      |see node A      |see node A          |see node A       |see node A         |see node A|see node A        |see node A     |10.1.1.144 |10.1.1.71 |NA        |1 78-2523X |true         |3891 MHz  |6          |189696 MB |189696 MB     |6                  |32768 32768 32768 32768 32768 32768                                                                                                                                                                                                            |s 4 KB m 64 KB |69          |3           |701days\nCELCO |sdp29a   |POWER9  |IBM,9009-22A |OLOLO  |V7.2.4  |4.55.0 |11.2.0.4.200414 |Not installed |4.100.0    |1.6.0        |sys0!system:VL930_048 (t) VL930_048 (p) VL930_048 (t) |20210401     |7200-03-03-1913 |IBMULT3580-HH7  |11666OLOLO |No Exp Date     |NA                |cisco MDS 9148S|JPG23666LOL |8.1(1a)        |cisco MDS 9148S|JPG23666LOL |8.1(1a)        |NA        |NA             |NA              |NA                 |NA                                                                                           |NA                                                                            |NA        |NA              |NA              |IBM FlashSystem 900 |control 9843-AE3 |2666LOL            |1.6.1.0   |0                 |10.1.1.123:443 |10.1.1.145 |10.1.1.96 |NA        |1 78-580B0 |true         |3000 MHz  |8          |252928 MB |252928 MB     |8                  |32768 32768 32768 32768 32768 32768 32768 32768                                                                                                                                                                                                |s 4 KB m 64 KB |482         |2           |497days\nCELCO-UPM1a:upm1:#\n```\nYou can print necessary inventory data only:\n``` shell\nupm1:# ./aix_hw_au.sh sdp | awk -F '|' '{print $2\"|\"$3\"|\"$44\"|\"$45\"|\"$46}' \nHOSTNAME |HW TYPE |CPU CLOCK |NUM OF CPU |RAM SIZE\nsdp1a    |POWER8  |3891 MHz  |12         |253952 MB\n...\nsdp99b   |POWER8  |3891 MHz  |6          |186624 MB\nCELCO-UPM1a:upm1:#\n```\nOr forward output into the file for further analysis:\n``` shell\nCELCO-UPM1a:upm1:# ./aix_hw_au.sh sdp CELCO \u003e CELCO.AIX.`date +’%d.%m.%Y'`.csv \nCELCO-UPM1a:upm1:# ls -lrt *.csv\n-rw-r--r-- 1 root root 6310 Jan 20 22:43 CELCO.AIX.20.01.2015.csv \nCELCO-UPM1a:upm1:# wc -l CELCO.AIX.20.01.2015.csv\n14 CELCO.AIX.20.01.2015.csv\nCELCO-UPM1a:upm1:#\n```\n\nCISCO SWITCHES INVENTORY\n------------------------\nScripts are ready to use (`cisco_hw_au.sh`). Manual - TBD\n\nJUNIPER SWITCHES INVENTORY\n--------------------------\nScripts are ready to use (`juniper_hw_au.sh`). Manual - TBD\n\n**Known issues:**\n * Junos 12.3R4.6 not compatible for Junos `$base_os` version get. You have to upgrade Junos\n * QFX switches returns \"not valid not valid\" for `$boot_from` - this is normal as per QFX hardware design\n * If script does not retrieve all the vars - set `system services ssh rate-limit 50` on your Juniper\n\nHOW TO IMPORT .CSV Inventory file into EXCEL\n--------------------------------------------\n\nTo import Inventory data from your .CSV file open Excel and go to `Data \u003e From Text/CSV`:\n![image](https://i.imgur.com/XYVIAmc.png)\n\nChoose your .CSV file and press `“Open”` - new window will appear.\nIn new window choose `--Custom--` as a delimiter, from the list, enter pipe (`|`) in the field right below and then press `“Load”`.\n![image](https://i.imgur.com/8A7JSnw.png)\n\nThe new Tab will be opened with your data.\n\n#Thats all folks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3vilh%2Fhw_au","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd3vilh%2Fhw_au","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3vilh%2Fhw_au/lists"}