Fibre Channel (SAN)

Script check crc errors , detect errors in the interval polling and period time

by WORNX on ‎08-06-2008 08:54 AM (62 Views)

Those error rates are accumulated already, So you really want to subtract the prior value from the current value to see what happened this period .

Too this script chekc crc errors in all ports the many switch and subtract the prior value and display the differences in crc errors in period of time

For change the time interval, modify the value:

period: 3 = check all ports in tree times. when it fiinishes, continuos to the next connection swtich

example : 600

while

duration : error check crc during 300 second and display results in each time

sleep 300 # intervall polling 5 minutes

Output Display:

Connecting 10.10.0.11....

port 51:31

port 83:60

TOTAL crs 91

port 51:31

port 83:60

TOTAL crs 91

.

..

...

port 51:31 120 -89

port 83:60 250 -190

TOTAL crs 91

Connecting 10.10.0.15....

port 8:15

TOTAL crs 15

port 8:15

TOTAL crs 15

port 8 : 15

TOTAL crs 15

.

..

...

port 8 : 15 16 -1

TOTAL 15