Giter Club home page Giter Club logo

Comments (7)

gschneider-r7 avatar gschneider-r7 commented on August 15, 2024

This seems to be related to SNMPv3 changes in #67. @kprzerwa-r7 thoughts?

from nexpose-client.

gschneider-r7 avatar gschneider-r7 commented on August 15, 2024

@vidkun this will be working in the next Nexpose release. For now, just use gem version 0.8.0.

from nexpose-client.

mdaines-r7 avatar mdaines-r7 commented on August 15, 2024

@gschneider-r7 ... is this fixed now? If so, go ahead and close the issue.

from nexpose-client.

gschneider-r7 avatar gschneider-r7 commented on August 15, 2024

A quick test shows this to still be an issue on the latest release, but I haven't ruled out update issues on that particular console.

nsc.list_shared_creds
NoMethodError: undefined method `auth_type=' for #<Nexpose::SharedCredentialSummary:0x000000021a6678>
    from /home/gschneider/.rvm/gems/ruby-2.1.1/gems/nexpose-0.8.1/lib/nexpose/shared_cred.rb:53:in `from_json'
    from /home/gschneider/.rvm/gems/ruby-2.1.1/gems/nexpose-0.8.1/lib/nexpose/shared_cred.rb:10:in `block in list_shared_credentials'
    from /home/gschneider/.rvm/gems/ruby-2.1.1/gems/nexpose-0.8.1/lib/nexpose/shared_cred.rb:10:in `map'
    from /home/gschneider/.rvm/gems/ruby-2.1.1/gems/nexpose-0.8.1/lib/nexpose/shared_cred.rb:10:in `list_shared_credentials'
    from (irb):4
    from /home/gschneider/.rvm/rubies/ruby-2.1.1/bin/irb:11:in `<main>'

from nexpose-client.

gschneider-r7 avatar gschneider-r7 commented on August 15, 2024

Additionally, if an snmpv3 credential exists, this error occurs:

nsc.list_shared_creds
Nexpose::APIError: NexposeAPI: POST request to /data/credential/shared/listing failed. sort=-1&table-id=credential-listing&dir=DESC&startIndex=-1&results=-1
    from /home/gschneider/.rvm/gems/ruby-2.1.1/gems/nexpose-0.8.1/lib/nexpose/ajax.rb:154:in `_request'
    from /home/gschneider/.rvm/gems/ruby-2.1.1/gems/nexpose-0.8.1/lib/nexpose/ajax.rb:93:in `form_post'
    from /home/gschneider/.rvm/gems/ruby-2.1.1/gems/nexpose-0.8.1/lib/nexpose/data_table.rb:36:in `_get_json_table'
    from /home/gschneider/.rvm/gems/ruby-2.1.1/gems/nexpose-0.8.1/lib/nexpose/shared_cred.rb:6:in `list_shared_credentials'
    from (irb):3
    from /home/gschneider/.rvm/rubies/ruby-2.1.1/bin/irb:11:in `<main>'

from nexpose-client.

gravindran-r7 avatar gravindran-r7 commented on August 15, 2024

You should be able to work around this with the following monkey patch:

module Nexpose
  class SharedCredentialSummary
    attr_accessor :auth_type, :privacy_type
  end
end

from nexpose-client.

kprzerwa-r7 avatar kprzerwa-r7 commented on August 15, 2024

we have removed auth_type and privacy_type from from_json method, which should not be there in the first place. @krankin-r7 made that change on his branch and created pull request

from nexpose-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.