Nmap ndmp-version NSE Script


This page contains detailed information about how to use the ndmp-version NSE script. For list of all NSE scripts, visit the Nmap NSE Library.

Select:
Overview
Error Messages

Script Overview


Script source code: https://github.com/nmap/nmap/tree/master/scripts/ndmp-version.nse
Script categories: version
Target service / protocol: ndmp, tcp
Target network port(s): 10000
List of CVEs: -

Script Description


The ndmp-version.nse script retrieves version information from the remote Network Data Management Protocol (ndmp) service. NDMP is a protocol intended to transport data between a NAS device and the backup device, removing the need for the data to pass through the backup server. The following products are known to support the protocol:

  • Amanda
  • Bacula
  • CA Arcserve
  • CommVault Simpana
  • EMC Networker
  • Hitachi Data Systems
  • IBM Tivoli
  • Quest Software Netvault Backup
  • Symantec Netbackup
  • Symantec Backup Exec

Ndmp-version NSE Script Arguments


The ndmp-version.nse script does not have any arguments.

Ndmp-version NSE Script Example Usage


Here's an example of how to use the ndmp-version.nse script:

nmap --script=ndmp-version <target>

Ndmp-version NSE Script Example Output


There is no sample output for this module.

Ndmp-version NSE Script Example XML Output


There is no sample XML output for this module. However, by providing the -oX <file> option, Nmap will produce a XML output and save it in the file.xml file.

Author


  • Patrik Karlsson

References


See Also


Related NSE scripts to the ndmp-version.nse script:

Visit Nmap NSE Library for more scripts.

The ndmp-version.nse script may fail with the following error messages. Check for the possible causes by using the code snippets highlighted below found in the script source code. This can often times help in identifying the root cause of the problem.

Failed to connect to server


Here is a relevant code snippet related to the "Failed to connect to server" error message:

38:	end
39:	
40:	action = function(host, port)
41:	  local helper = ndmp.Helper:new(host, port)
42:	  local status, err = helper:connect()
43:	  if ( not(status) ) then return fail("Failed to connect to server") end
44:	
45:	  local hi, si
46:	  status, hi = helper:getHostInfo()
47:	  if ( not(status) ) then return fail("Failed to get host information from server") end
48:	

Failed to get host information from server


Here is a relevant code snippet related to the "Failed to get host information from server" error message:

42:	  local status, err = helper:connect()
43:	  if ( not(status) ) then return fail("Failed to connect to server") end
44:	
45:	  local hi, si
46:	  status, hi = helper:getHostInfo()
47:	  if ( not(status) ) then return fail("Failed to get host information from server") end
48:	
49:	  status, si = helper:getServerInfo()
50:	  if ( not(status) ) then return fail("Failed to get server information from server") end
51:	  helper:close()
52:	

Failed to get server information from server


Here is a relevant code snippet related to the "Failed to get server information from server" error message:

45:	  local hi, si
46:	  status, hi = helper:getHostInfo()
47:	  if ( not(status) ) then return fail("Failed to get host information from server") end
48:	
49:	  status, si = helper:getServerInfo()
50:	  if ( not(status) ) then return fail("Failed to get server information from server") end
51:	  helper:close()
52:	
53:	  port.version.name = "ndmp"
54:	  port.version.product = vendorLookup(si.serverinfo.vendor)
55:	

Version


This page has been created based on Nmap version 7.92.

Go back to menu.