Showing posts with label pcmpath. Show all posts
Showing posts with label pcmpath. Show all posts

Monday, June 4, 2012

How to reset SDDPCM statistics on all devices

How to use pcmpath to reset error or all SDDPCM statistics on AIX?

Run this command:
pcmpath clear device `pcmpath query device | sort -n +2 | grep DEV | awk '{print $2}'| head -1` `pcmpath query device | sort -n +2 | grep DEV | awk '{print $2}'| tail -1` count error

Command can be executed by distributed shell on several hosts:
dsh -e path_to_script_with_command_above