Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

site_device_listing not returning risk scores #10

Closed
arirubinstein opened this issue Aug 20, 2012 · 0 comments
Closed

site_device_listing not returning risk scores #10

arirubinstein opened this issue Aug 20, 2012 · 0 comments

Comments

@arirubinstein
Copy link
Contributor

I am trying to list all of the devices per site with associated risk score, and the @nsc.site_device_listing(site[:site_id]) appears to be returning invalid info. It appears that this would be the correct way to retrieve the data. In the example below, the total site risk score should be reflected in the hosts also.

Example Code

sites = @nsc.site_listing || []
sites.each do |site|
    ap @nsc.site_device_listing(site[:site_id])
    puts("    Site ##{site[:site_id]} '#{site[:name]}' Risk Factor: #{site[:risk_factor]} Risk Score: #{site[:risk_score]}")
end

Example Output

[
    [0] {
          :device_id => 9,
            :address => "123.123.123.124",
        :risk_factor => 0.0,
         :risk_score => 0.0
    },
    [1] {
          :device_id => 6,
            :address => "123.123.123.123",
        :risk_factor => 0.0,
         :risk_score => 0.0
    }
]
Site #7 'Production Misc' Risk Factor: 1.0 Risk Score: 1252.2251

Version Info

Ruby: ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
nexpose-client: nexpose (0.0.98)
nexpose: 5.4.1 Enterprise
Last content update 4122285428 (Wednesday, August 15, 2012 12:04:56 PM GMT)
Last product update 4038634561 (Wednesday, August 15, 2012 12:00:00 PM GMT)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant