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

list_discovery_connections - engine_id is blank when output #278

Closed
Choppra opened this issue Jul 17, 2017 · 8 comments
Closed

list_discovery_connections - engine_id is blank when output #278

Choppra opened this issue Jul 17, 2017 · 8 comments
Labels

Comments

@Choppra
Copy link

Choppra commented Jul 17, 2017

discoveryc = nsc.list_discovery_connections()
discoveryc.each do |discovery|
puts discovery.engine_id

I can return discovery.name and discovery.status just fine but engine_id is empty. Also, I did nothing a few others were not returning any values but engine_id is important to my script.

Your Environment

  • Nexpose gem version: Latest
  • Ruby version: Latest
  • Operating System and version: Windows 10
  • Nexpose product version: Latest
@sgreen-r7
Copy link
Contributor

Hi @Choppra

Can you let us know which type of Discovery Connection you're using? It should be one the following options:

screen shot 2017-07-17 at 11 07 12 am

@Choppra
Copy link
Author

Choppra commented Jul 17, 2017

@sgreen-r7 Sorry, I should have included that. DHCP Service.

@sgreen-r7
Copy link
Contributor

Yeah, this looks to be a bug within the Nexpose gem. We'll get it on the roadmap, and try and get an update out soon.

@Choppra
Copy link
Author

Choppra commented Jul 18, 2017

Thanks, I had to resort to using the API via Powershell for now.

@sgreen-r7
Copy link
Contributor

@Choppra this should be fixed now: https://github.com/rapid7/nexpose-client/releases/tag/v6.1.1
upgrade your gem to version 6.1.1 and you should be getting the engine_id.

I'll go ahead and leave this issue open for a bit to let us know it's working for you.
thanks again!

@Choppra
Copy link
Author

Choppra commented Jul 24, 2017

Yes! Confirmed it works now. Engine-ID is now showing up. Shouldn't type return a value as well? I tried to return it but it came back blank as well. https://gist.github.com/Choppra/83cb2ae464e6b5342068867dadf70747

@gschneider-r7
Copy link
Contributor

Unfortunately the type is not included in the XML API response that is used for the listing request.

@sgreen-r7
Copy link
Contributor

Awesome, thanks for the confirmation @Choppra.
Going to go ahead and close out this issue in that case.

Feel free to open up another issue to feature request the type for discovery connection. We can tag it Feature Request and we'll see what we can do about getting it added.

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

No branches or pull requests

3 participants