Class: Nexpose::EngineSummary
- Inherits:
-
Object
- Object
- Nexpose::EngineSummary
- 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.login()
# 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
-
#address ⇒ Object
readonly
The hostname or IP address of the engine.
-
#id ⇒ Object
readonly
A unique ID that identifies this scan engine.
-
#name ⇒ Object
readonly
The name of this scan engine.
-
#port ⇒ Object
readonly
The port there the engine is listening.
-
#status ⇒ Object
readonly
The engine status (active|pending-auth| incompatible|not-responding|unknown).
Instance Method Summary collapse
-
#initialize(id, name, address, port, status) ⇒ EngineSummary
constructor
Constructor EngineSummary(id, name, address, port, status).
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
#address ⇒ Object (readonly)
The hostname or IP address of the engine
2134 2135 2136 |
# File 'lib/nexpose.rb', line 2134 def address @address end |
#id ⇒ Object (readonly)
A unique ID that identifies this scan engine
2130 2131 2132 |
# File 'lib/nexpose.rb', line 2130 def id @id end |
#name ⇒ Object (readonly)
The name of this scan engine
2132 2133 2134 |
# File 'lib/nexpose.rb', line 2132 def name @name end |
#port ⇒ Object (readonly)
The port there the engine is listening
2136 2137 2138 |
# File 'lib/nexpose.rb', line 2136 def port @port end |
#status ⇒ Object (readonly)
The engine status (active|pending-auth| incompatible|not-responding|unknown)
2138 2139 2140 |
# File 'lib/nexpose.rb', line 2138 def status @status end |