Class: Nexpose::EngineSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/nexpose.rb

Overview

Description

Object that represents the summary of a scan engine.

Examples

# Create a new Nexpose Connection on the default port and Login
nsc = Connection.new("10.1.40.10","nxadmin","password")
nsc.()

# Get the engine listing for the connection
enginelisting = EngineListing.new(nsc)

# Print out the status of the first scan engine
puts enginelisting.engines[0].status

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, name, address, port, status) ⇒ EngineSummary

Constructor EngineSummary(id, name, address, port, status)



2142
2143
2144
2145
2146
2147
2148
# File 'lib/nexpose.rb', line 2142

def initialize(id, name, address, port, status)
	@id = id
	@name = name
	@address = address
	@port = port
	@status = status
end

Instance Attribute Details

#addressObject (readonly)

The hostname or IP address of the engine



2134
2135
2136
# File 'lib/nexpose.rb', line 2134

def address
  @address
end

#idObject (readonly)

A unique ID that identifies this scan engine



2130
2131
2132
# File 'lib/nexpose.rb', line 2130

def id
  @id
end

#nameObject (readonly)

The name of this scan engine



2132
2133
2134
# File 'lib/nexpose.rb', line 2132

def name
  @name
end

#portObject (readonly)

The port there the engine is listening



2136
2137
2138
# File 'lib/nexpose.rb', line 2136

def port
  @port
end

#statusObject (readonly)

The engine status (active|pending-auth| incompatible|not-responding|unknown)



2138
2139
2140
# File 'lib/nexpose.rb', line 2138

def status
  @status
end