Nmap ndmp-fs-info NSE Script


This page contains detailed information about how to use the ndmp-fs-info 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-fs-info.nse
Script categories: discovery, safe
Target service / protocol: ndmp, tcp
Target network port(s): 10000
List of CVEs: -

Script Description


The ndmp-fs-info.nse script lists remote file systems by querying the remote device using the Network Data Management Protocol (ndmp). 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-fs-info NSE Script Arguments


The ndmp-fs-info.nse script does not have any arguments.

Ndmp-fs-info NSE Script Example Usage


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

nmap -p 10000 --script ndmp-fs-info <ip>

Ndmp-fs-info NSE Script Example Output


Here's a sample output from the ndmp-fs-info.nse script:

PORT      STATE SERVICE REASON  VERSION
10000/tcp open  ndmp    syn-ack Symantec/Veritas Backup Exec ndmp
| ndmp-fs-info:
| FS       Logical device          Physical device
| NTFS     C:                      Device0000
| NTFS     E:                      Device0000
| UNKNOWN  Shadow Copy Components  Device0000
|_UNKNOWN  System State            Device0000

Ndmp-fs-info 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-fs-info.nse script:

Visit Nmap NSE Library for more scripts.

The ndmp-fs-info.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:

48:	
49:	action = function(host, port)
50:	
51:	  local helper = ndmp.Helper:new(host, port)
52:	  local status, msg = helper:connect()
53:	  if ( not(status) ) then return fail("Failed to connect to server") end
54:	
55:	  status, msg = helper:getFsInfo()
56:	  if ( not(status) ) then return fail("Failed to get filesystem information from server") end
57:	  if ( msg.header.error == ndmp.NDMP.ErrorType.NOT_AUTHORIZED_ERROR ) then return fail("Not authorized to get filesystem information from server") end
58:	  helper:close()

Failed to get filesystem information from server


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

51:	  local helper = ndmp.Helper:new(host, port)
52:	  local status, msg = helper:connect()
53:	  if ( not(status) ) then return fail("Failed to connect to server") end
54:	
55:	  status, msg = helper:getFsInfo()
56:	  if ( not(status) ) then return fail("Failed to get filesystem information from server") end
57:	  if ( msg.header.error == ndmp.NDMP.ErrorType.NOT_AUTHORIZED_ERROR ) then return fail("Not authorized to get filesystem information from server") end
58:	  helper:close()
59:	
60:	  local result = tab.new(3)
61:	  tab.addrow(result, "FS", "Logical device", "Physical device")

Not authorized to get filesystem information from server


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

52:	  local status, msg = helper:connect()
53:	  if ( not(status) ) then return fail("Failed to connect to server") end
54:	
55:	  status, msg = helper:getFsInfo()
56:	  if ( not(status) ) then return fail("Failed to get filesystem information from server") end
57:	  if ( msg.header.error == ndmp.NDMP.ErrorType.NOT_AUTHORIZED_ERROR ) then return fail("Not authorized to get filesystem information from server") end
58:	  helper:close()
59:	
60:	  local result = tab.new(3)
61:	  tab.addrow(result, "FS", "Logical device", "Physical device")
62:	

Version


This page has been created based on Nmap version 7.92.

Go back to menu.