https://github.com/jackeichen/autohotplug
AutoHotplug is an auto-hotplug test script for disk.
https://github.com/jackeichen/autohotplug
auto-test disk hotplug manual-testing python3 quarch
Last synced: 5 months ago
JSON representation
AutoHotplug is an auto-hotplug test script for disk.
- Host: GitHub
- URL: https://github.com/jackeichen/autohotplug
- Owner: jackeichen
- License: mit
- Created: 2023-06-02T03:35:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-28T07:30:46.000Z (over 2 years ago)
- Last Synced: 2025-03-31T01:33:44.463Z (12 months ago)
- Topics: auto-test, disk, hotplug, manual-testing, python3, quarch
- Language: Python
- Homepage:
- Size: 3.36 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.txt
- License: LICENSE
Awesome Lists containing this project
README
AutoHotplug
===========
AutoHotplug is a disk auto-hotplug test script, and no need to install.
Support and Requirements
========================
AutoHotplug support bellow OS:
* Linux
* Windows
and support bellow Quarch device:
* QTL2266-xx-xxx (U.2 HotPlug Module)
* QTL1260-xx-xxx (Control Kit)
AutoHotplug requirements:
* OS tools
* python3
* java
* smartmontools
* Extra Linux tools are required:
* nvme-cli
* lsscsi
* lsblk
* Extra Windows tools are required:
* wmic
* PowerShell
* Quarch USB Driver (When use Quarch->USB mode)
* python3 modules
* quarchpy
* pyyaml
* Extra Windows modules are required:
* wmi
* Quarch Hardware
* QTL2266-xx-xxx
* QTL1260-xx-xx kit
Installing AutoHotplug
======================
This is a script tool and Do Not need install,
Get it from https://github.com/jackeichen/AutoHotplug.git \
Windows is not all the same as it was in Linux, you need install quarch device USB driver if
you want connect Quarch device in USB Mode.
Running a test
==============
An example to test by Quarch control Kit:
```
$ python3 HotPlug.py -i (Example usb:QTL2266-xx-xxx)
```
An example to test by Manual:
```
$ python3 HotPlug.py -i manual:
```
Disk ID is just a ID, no more important significance, Disk SN is recommended.
Configuration File
==================
The configuration files are included in "config" directory.
Log File
========
The log file included in "LOGS" directory. Vdbench logs is in "LOGS/vdbenchoutput".
Help Text
=========
HotPlug
-------
```
Usage: HotPlug.py [OPTION] or HotPlug.py [OPTION] [args...]
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-i CONN_ID, --ConnID=CONN_ID
Specify the HotPlug Module Connection IDs(like
usb:QTLxxx-xx-xxx), multi quarch with ','.
-t, --test Do not run actuall test, but do a tool test.
--scan_quarch Scan all quarch device and show them.
--no_check Do not check and run test anyway.
--detail_quarch Print quarch detail information.
```