How to use NetCat instead of telnet to check if a port is open
- Views:
- 11,006
- Visibility:
- Public
- Votes:
- 6
- Category:
- element-plug-in-for-vcenter-server
- Specialty:
- solidfire
- Last Updated:
Applies to
- NetApp SolidFire
- NetApp HCI
- NetApp Element Software
Description
Netcat (the 'nc' command in linux) is a more effective way than telnet of checking if a specific port is open on a destination system. It is faster and provides direct information of success or failure in connecting to a port.
Nc is TCP-based, it is useful in troubleshooting network connectivity (for instance, validating Network Port Requirements) in an environment in which ping is disallowed.
In an Element Software context, it can be used to check connectivity from the mNode to various cluster management IP's, from the mNode to the ActiveIQ endpoint (monitoring.solidfire.com), and between IP's on the storage network (the latter requires assistance from NetApp Support).