Documentation
NetPort7m-Check
Checks the link-state of net-ports (interfaces) in 7-mode filers.
Usage
$ check_netapp_pro.pl NetPort7m -H <host> [--ok_state=<regex>] [...] [--help]
Description
This plugin checks each interface link-state. Alarms if link-state is not up (default).
The interface link-state is determined out of the mediatypes (e.g.
auto-1000t-fd-up
or auto-1000t-fd-down
) last part.
For cluster-mode filers the check NetPort must be used instead of this one.
Consider using -v
for inspection, if you are not satisfied with the result.
Related DataONTAP CLI commands (examples)::
filer> ifconfig e0a down
filer> ifconfig -a
e0a: flags=0x408866<BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:0c:29:fa:02:fe (auto-1000t-fd-cfg_down) flowcontrol full
e0b: flags=0xe48867<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.4.142 netmask 0xffffff00 broadcast 192.168.4.255
ether 00:0c:29:fa:02:08 (auto-1000t-fd-up) flowcontrol full
e0c: flags=0xe48867<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.4.143 netmask 0xffffff00 broadcast 192.168.4.255
ether 00:0c:29:fa:02:12 (auto-1000t-fd-up) flowcontrol full
e0d: flags=0xe48867<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.4.144 netmask 0xffffff00 broadcast 192.168.4.255
ether 00:0c:29:fa:02:1c (auto-1000t-fd-up) flowcontrol full
lo: flags=0x1b48049<UP,LOOPBACK,RUNNING,MULTICAST,TCPCKSUM> mtu 9188
inet 127.0.0.1 netmask 0xff000000 broadcast 127.0.0.1
losk: flags=0x40a400c9<UP,LOOPBACK,RUNNING> mtu 9188
inet 127.0.20.1 netmask 0xff000000 broadcast 127.0.20.1
Simple Examples
[S1] ./check_netapp_pro.pl NetPort7m -H filer
Checks all interfaces. Would return OK if every interface is up.
[S2] ./check_netapp_pro.pl NetPort7m -H filer -X ^e0d$
Same as above, but excludes the interface e0d.