Originally Posted by srrijith
what is the equivalent of iostat –E in linux ( it display all device error statics).
Linux which am using dosent support iostat -E
Why didn't you say that in the first place? This is the first post in which you made a clear statement about what you are trying to achieve. Now we can begin to help you. That's all that we want.
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.
This example will show IPv4 errors.
This example will show ICMP errors.
I got all of these examples from the man page for sar. There are numerous other device error reports available in sar.
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.