mavriq / arcconf_parser Goto Github PK
View Code? Open in Web Editor NEWкод, позволяющий представить вывод команды `arcconf getconfig 1` в т.ч. в json
License: GNU Lesser General Public License v3.0
код, позволяющий представить вывод команды `arcconf getconfig 1` в т.ч. в json
License: GNU Lesser General Public License v3.0
My Input
Physical Device information
----------------------------------------------------------------------
Device #0
Device is a Hard drive
State : Online
Block Size : 512 Bytes
Supported : Yes
Transfer Speed : SATA 6.0 Gb/s
Reported Channel,Device(T:L) : 0,4(4:0)
Reported Location : Connector 1, Device 0
Vendor :
Model : ST4000NM0033-9ZM
Firmware : SN04
Serial number : xxxxx
World-wide name : 5000C5007FD589C0
Reserved Size : 1072920 KB
Used Size : 3814400 MB
Unused Size : 64 KB
Total Size : 3815447 MB
Write Cache : Enabled (write-back)
FRU : None
S.M.A.R.T. : No
S.M.A.R.T. warnings : 0
Power State : Full rpm
Supported Power States : Full rpm,Powered off
SSD : No
Temperature : Not Supported
NCQ status : Enabled
----------------------------------------------------------------
Device Phy Information
----------------------------------------------------------------
Phy #0
PHY Identifier : 0
SAS Address : 3000000000000007
Attached PHY Identifier : 7
Attached SAS Address : 50000D1106B1C580
Device #1
Device is a Hard drive
State : Online
Block Size : 512 Bytes
Supported : Yes
Transfer Speed : SATA 6.0 Gb/s
Reported Channel,Device(T:L) : 0,5(5:0)
Reported Location : Connector 1, Device 1
Vendor :
Model : ST4000NM0033-9ZM
Firmware : SN04
Serial number : xxxxx
World-wide name : 5000C5007AA7E1CB
Reserved Size : 1072920 KB
Used Size : 3814400 MB
Unused Size : 64 KB
Total Size : 3815447 MB
Write Cache : Enabled (write-back)
FRU : None
S.M.A.R.T. : No
S.M.A.R.T. warnings : 0
Power State : Full rpm
Supported Power States : Full rpm,Powered off
SSD : No
Temperature : Not Supported
NCQ status : Enabled
----------------------------------------------------------------
Device Phy Information
----------------------------------------------------------------
Phy #0
PHY Identifier : 0
SAS Address : 3000000000000006
Attached PHY Identifier : 6
Attached SAS Address : 50000D1106B1C580
And output
{
"Physical Device information": {
"Temperature": "Not Supported",
"Unused Size": "64 KB",
"Firmware": "SN04",
"Device is a Hard drive": true,
"World-wide name": "5000C5007FD589C0",
"Device Phy Information": {
"Phy #0": true,
"PHY Identifier": "0",
"Attached SAS Address": "50000D1106B1C580",
"Attached PHY Identifier": "6",
"SAS Address": "3000000000000006"
},
"Vendor": "",
"Total Size": "3815447 MB",
"Device #0": true,
"Power State": "Full rpm",
"S.M.A.R.T.": "No",
"Reported Channel,Device(T:L)": "0,4(4:0)",
"FRU": "None",
"Model": "ST4000NM0033-9ZM",
"Used Size": "3814400 MB",
"Reported Location": "Connector 1, Device 0",
"Device #1": {
"Temperature": "Not Supported",
"Unused Size": "64 KB",
"Firmware": "SN04",
"Device is a Hard drive": true,
"World-wide name": "5000C5007AA7E1CB",
"Vendor": "",
"Total Size": "3815447 MB",
"Power State": "Full rpm",
"S.M.A.R.T.": "No",
"Reported Channel,Device(T:L)": "0,5(5:0)",
"FRU": "None",
"Model": "ST4000NM0033-9ZM",
"Used Size": "3814400 MB",
"Reported Location": "Connector 1, Device 1",
"Transfer Speed": "SATA 6.0 Gb/s",
"State": "Online",
"Supported": "Yes",
"Block Size": "512 Bytes",
"Serial number": "xxxx",
"Supported Power States": "Full rpm,Powered off",
"Write Cache": "Enabled (write-back)",
"NCQ status": "Enabled",
"SSD": "No",
"Reserved Size": "1072920 KB",
"S.M.A.R.T. warnings": "0"
},
"Transfer Speed": "SATA 6.0 Gb/s",
"State": "Online",
"Supported": "Yes",
"Block Size": "512 Bytes",
"Serial number": "S1Z0RGZV",
"Supported Power States": "Full rpm,Powered off",
"Write Cache": "Enabled (write-back)",
"NCQ status": "Enabled",
"SSD": "No",
"Reserved Size": "1072920 KB",
"S.M.A.R.T. warnings": "0"
},
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.