nmap

package
v0.0.0-...-a234189 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package nmap extracts mainly up/down status of network devices, as seen from linux.

Csv output is particularly supported, so that a csvfile-based enterprise's ETL tools can also monitor its servers and desktops

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Header() string

Header is generic

func Keys_String2PtrNmapdata

func Keys_String2PtrNmapdata(_mp *map[string]*Nmapdata) []string

Keys_String2PtrNmapdata is generic

func Nmap

func Nmap(_subnets map[string][]string, _verbose bool) (smap map[string]*Nmapdata)

Nmap extracts nmap data

func SortedKeys_String2PtrNmapdata

func SortedKeys_String2PtrNmapdata(_mp *map[string]*Nmapdata) []string

SortedKeys_String2PtrNmapdata is generic

Types

type Nmapdata

type Nmapdata struct {
	Subname_    string // ld
	Subnet_     string
	Ip_         string // e.g. 10.10.1.250
	Hostname_   string // e.g. ldfoo
	Status_     string // e.g. up or down
	MacAddress_ string // e.g. 00:26:52:0D:16:C3
	MacName_    string // e.g. Cisco Systems
}

Nmapdata holds nmap data

func (*Nmapdata) Csv

func (self *Nmapdata) Csv() string

Csv is generic

func (*Nmapdata) Print

func (self *Nmapdata) Print()

Print is generic

func (*Nmapdata) Sprint

func (self *Nmapdata) Sprint() string

Sprint is generic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL