Setting AB/BA port pattern with DiskPaths

When using the DiskPaths plugin with check_netapp_pro, it can be useful to leverage the lesser known --port_pattern_ok argument. For example, if you are receiving an error message similar to this:

The found port combination is reported to be BA, which is considered wrong because the default values for the port combinations include:

ABAB, AABB, BABA, ABBA, BAAB

Internal disks may require explicitly setting AA or BB, for the correct paths, this is a case of YMMV. In our specific case (above) the correct combination is given as AB and BA which translates to “each disk is connected over exactly two different paths”. Therefore the fix for our error message would be to explicitly add both the AB- and the seen BA-pattern, using the --port_pattern_ok argument, to the command:

\> check\_netapp\_pro.pl DiskPaths -H $HOST \[netapp\_double\_dash\]port\_pattern\_ok=AB \[netapp\_double\_dash\]port\_pattern\_ok=BA  
NETAPP\_PRO DISKPATHS OK - 28 disks checked  
NET-1.1 (mycluster-01): all combinations ok 1 nodes, 2 paths for mycluster-01 with correct port-combination: BA  
NET-1.10 (mycluster-01): all combinations ok 1 nodes, 2 paths for mycluster-01 with correct port-combination: BA  
NET-1.11 (mycluster-01): all combinations ok 1 nodes, 2 paths for mycluster-01 with correct port-combination: BA  
\[netapp\_ellipsis\]

For more information, see the usage specific help for the DiskPaths plugin.


pre-formatted-code
New feature top=n parameter

Comments