Documentation
NetPort-Check
Checks the link-state of net-ports.
Usage
$ check_netapp_pro.pl NetPort -H <host> [--ok_state=<regex>] [...] [--help]
Description
This plugin checks each net-ports link-state. Alarms if link-state is not up (default).
The interfaces link-state is returned by the cluster-mode api.
Consider using -v
for inspection, if you are not satisfied with the result.
Related DataONTAP CLI commands (examples)::
sim83::> set diag
sim83::*> net port mod -node sim83-01 -port e0d -up-admin false
sim83::*> net port show
(network port show)
Speed (Mbps)
Node Port IPspace Broadcast Domain Link MTU Admin/Oper
------ --------- ------------ ---------------- ----- ------- ------------
sim83-01
e0a Cluster Cluster up 1500 auto/1000
e0b Cluster Cluster up 1500 auto/1000
e0c Default Default up 1500 auto/1000
e0d Default Default down 1500 auto/1000
4 entries were displayed.
sim83::*> net port show -fields up-admin
(network port show)
node port up-admin
-------- ---- --------
sim83-01 e0a true
sim83-01 e0b true
sim83-01 e0c true
sim83-01 e0d false
4 entries were displayed.
Simple Examples
[S1] ./check_netapp_pro.pl NetPort -H filer
Checks all interfaces. Returns OK if every interface is up.
[S2] ./check_netapp_pro.pl NetPort -H filer -X ^g
Same as above, but excludes the interface-groups.