Quote:
You can get raw error reports for different types of devices using sar. You do not need to have the sar data collector running if you just want to view system information that is happening right now. Then you can use the sar command line utility to report device errors for different classes of devices. Here are a few examples. This example will show network device errors. Code:
sar -n EDEV Code:
sar -n EIP Code:
sar -n EICMP These error reports show raw numbers, not percentages. Now that you can collect the data you will (probably) have to create your own function for calculating percentages/rates. You should be able to get awk to do the parsing and calculations. |
dmesg with which option displays all device error statistics as iostat -E does .. any idea ?
|
Quote:
You can also pay attention, since folks are giving you answers, like stress_junkie did with the sar command. Try reading the man pages. |
any idea from which directory and file iostat -E commands reads the device error statistics details for displaying as below
iostat -En c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Model: ST3120026A Revision: 8.01 Serial No: 3JT4H4C2 Size: 120.03GB <120031641600 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 c0t2d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: LITE-ON Product: COMBO SOHC-4832K Revision: O3K1 Serial No: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 |
Quote:
1. An alternative to iostat in linux (an answer to this has already been provided). 2. A way to call iostat from within your own script (this has been provided already). 3. Your own script with the calls that the unix version of iostat uses to grab it's data (nobody will help you with this as it's pointless and impossibly hard). 4. More assistance with exactly how iostat works. 5. A way to get the same data as iostat provides (dmesg wont reaaaally do this). |
Quote:
|
All times are GMT -5. The time now is 03:44 PM. |