Class: NetCrawl::XDP
- Inherits:
-
Object
- Object
- NetCrawl::XDP
- Includes:
- NameMap
- Defined in:
- lib/netcrawl/method/xdp.rb
Instance Attribute Summary collapse
-
#mib ⇒ Object
readonly
Returns the value of attribute mib.
Class Method Summary collapse
-
.peers(host) ⇒ Array(NetCrawl::Peer)
Neighbor information.
Instance Method Summary collapse
Methods included from NameMap
Instance Attribute Details
#mib ⇒ Object (readonly)
Returns the value of attribute mib.
4 5 6 |
# File 'lib/netcrawl/method/xdp.rb', line 4 def mib @mib end |
Class Method Details
.peers(host) ⇒ Array(NetCrawl::Peer)
Returns neighbor information.
9 10 11 |
# File 'lib/netcrawl/method/xdp.rb', line 9 def self.peers host new(host).poll end |
Instance Method Details
#poll ⇒ Object
13 14 15 16 17 18 |
# File 'lib/netcrawl/method/xdp.rb', line 13 def poll @mib = @snmp.hashwalk self.class::MIB make_peers rescue SNMP::NoResponse [] end |