Nmap ganglia-info NSE Script
This page contains detailed information about how to use the ganglia-info NSE script. For list of all NSE scripts, visit the Nmap NSE Library.
Script Overview
Script source code: https://github.com/nmap/nmap/tree/master/scripts/ganglia-info.nse
Script categories: default, discovery, safe
Target service / protocol: ganglia, tcp
Target network port(s): 8649, 8651
List of CVEs: -
Script Description
The ganglia-info.nse script retrieves system information (OS version, available memory, etc.) from a listening Ganglia Monitoring Daemon or Ganglia Meta Daemon.
Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and Grids. The information retrieved includes HDD size, available memory, OS version, architecture (and more) from each of the systems in each of the clusters in the grid.
For more information about Ganglia, see:
- http://ganglia.sourceforge.net/
- http://en.wikipedia.org/wiki/Ganglia_(software)#Ganglia_Monitoring_Daemon_.28gmond.29
- http://en.wikipedia.org/wiki/Ganglia_(software)#Ganglia_Meta_Daemon_.28gmetad.29
Ganglia-info NSE Script Arguments
This is a full list of arguments supported by the ganglia-info.nse script:
ganglia-info.bytesSet the number of bytes to retrieve. The default value is 1000000. This should be enough for a grid of more than 100 hosts. About 5KB-10KB of data is returned for each host in the cluster.
ganglia-info.timeoutSet the timeout in seconds. The default value is 30.
slaxml.debugDebug level at which default callbacks will print detailed parsing info. Default: 3
- - -
To use these script arguments, add them to the Nmap command line using the --script-args arg1=value,[arg2=value,..]
syntax. For example:
nmap --script=ganglia-info --script-args ganglia-info.bytes=value,ganglia-info.timeout=value <target>
Ganglia-info NSE Script Example Usage
Here's an example of how to use the ganglia-info.nse script:
nmap --script ganglia-info --script-args ganglia-info.timeout=60,ganglia-info.bytes=1000000 -p <port> <target>
Ganglia-info NSE Script Example Output
Here's a sample output from the ganglia-info.nse script:
8649/tcp open unknown syn-ack
| ganglia-info:
| Ganglia Version: 3.1.7
| Cluster 1:
| Name: unspecified
| Owner: unspecified
| Host 1:
| Name: sled9735.sd.dreamhost.com
| IP: 10.208.42.221
| load_one: 0.53
| mem_total: 24685564KB
| os_release: 3.1.9-vs2.3.2.5
| proc_run: 0
| load_five: 0.52
| gexec: OFF
| disk_free: 305.765GB
| mem_cached: 18857264KB
| pkts_in: 821.73packets/sec
| bytes_in: 72686.10bytes/sec
| bytes_out: 5612221.50bytes/sec
| swap_total: 1998844KB
| mem_free: 187964KB
| load_fifteen: 0.57
| os_name: Linux
| boottime: 1429708366s
| cpu_idle: 96.3%
| cpu_user: 2.7%
| cpu_nice: 0.0%
| cpu_aidle: 94.7%
| mem_buffers: 169588KB
| cpu_system: 0.8%
| part_max_used: 31.5%
| disk_total: 435.962GB
| mem_shared: 0KB
| cpu_wio: 0.2%
| machine_type: x86_64
| proc_total: 1027
| cpu_num: 8CPUs
| cpu_speed: 2400MHz
| pkts_out: 3977.13packets/sec
| swap_free: 1393392KB
Ganglia-info NSE Script Example XML Output
Here's a sample XML output from the ganglia-info.nse script produced by providing the -oX <file>
Nmap option:
<elem key="Ganglia Version">3.1.7</elem>
<table key="Cluster 1">
<elem key="Name">unspecified</elem>
<elem key="Owner">unspecified</elem>
<table key="Host 1">
<elem key="Name">sled9735.sd.dreamhost.com</elem>
<elem key="IP">10.208.42.221</elem>
<elem key="load_one">0.53</elem>
<elem key="mem_total">24685564KB</elem>
<elem key="os_release">3.1.9-vs2.3.2.5</elem>
<elem key="proc_run">0</elem>
<elem key="load_five">0.52</elem>
<elem key="gexec">OFF</elem>
<elem key="disk_free">305.765GB</elem>
<elem key="mem_cached">18857264KB</elem>
<elem key="pkts_in">821.73packets/sec</elem>
<elem key="bytes_in">72686.10bytes/sec</elem>
<elem key="bytes_out">5612221.50bytes/sec</elem>
<elem key="swap_total">1998844KB</elem>
<elem key="mem_free">187964KB</elem>
<elem key="load_fifteen">0.57</elem>
<elem key="os_name">Linux</elem>
<elem key="boottime">1429708366s</elem>
<elem key="cpu_idle">96.3%</elem>
<elem key="cpu_user">2.7%</elem>
<elem key="cpu_nice">0.0%</elem>
<elem key="cpu_aidle">94.7%</elem>
<elem key="mem_buffers">169588KB</elem>
<elem key="cpu_system">0.8%</elem>
<elem key="part_max_used">31.5%</elem>
<elem key="disk_total">435.962GB</elem>
<elem key="mem_shared">0KB</elem>
<elem key="cpu_wio">0.2%</elem>
<elem key="machine_type">x86_64</elem>
<elem key="proc_total">1027</elem>
<elem key="cpu_num">8CPUs</elem>
<elem key="cpu_speed">2400MHz</elem>
<elem key="pkts_out">3977.13packets/sec</elem>
<elem key="swap_free">1393392KB</elem>
</table>
</table>
Authors
- Brendan Coles
- Gyanendra Mishra
References
- https://nmap.org/nsedoc/scripts/ganglia-info.html
- https://github.com/nmap/nmap/tree/master/scripts/ganglia-info.nse
- http://ganglia.sourceforge.net/
- http://en.wikipedia.org/wiki/Ganglia_(software)#Ganglia_Monitoring_Daemon_.28gmond.29
- http://en.wikipedia.org/wiki/Ganglia_(software)#Ganglia_Meta_Daemon_.28gmetad.29
See Also
Visit Nmap NSE Library for more scripts.
Version
This page has been created based on Nmap version 7.92.