Documentation
¶
Index ¶
- func GetDeviceModel(sysObjId string) *dt.DeviceModel
- func GetDeviceModelFromManufacturer(mf manufacturer.Manufacturer, sysObjId string) *dt.DeviceModel
- type Dispatcher
- func (d *Dispatcher) Dispatch() []*factory.DispatchResponse
- func (d *Dispatcher) DispatchApScan() []*factory.DispatchApScanResponse
- func (d *Dispatcher) DispatchBasic() []*factory.DispatchBasicResponse
- func (d *Dispatcher) IcmpReachable(address string) bool
- func (d *Dispatcher) Session(config *factory.SnmpConfig) (*gosnmp.GoSNMP, error)
- func (d *Dispatcher) SnmpReachable(session *gosnmp.GoSNMP) bool
- func (d *Dispatcher) SshReachable(address string) bool
- func (d *Dispatcher) SysObjectID(session *gosnmp.GoSNMP) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeviceModel ¶
func GetDeviceModel(sysObjId string) *dt.DeviceModel
func GetDeviceModelFromManufacturer ¶
func GetDeviceModelFromManufacturer(mf manufacturer.Manufacturer, sysObjId string) *dt.DeviceModel
Types ¶
type Dispatcher ¶
type Dispatcher struct {
Targets []string
Config factory.BaseSnmpConfig
}
func NewDispatcher ¶
func NewDispatcher(targets []string, config factory.BaseSnmpConfig) *Dispatcher
func (*Dispatcher) Dispatch ¶
func (d *Dispatcher) Dispatch() []*factory.DispatchResponse
func (*Dispatcher) DispatchApScan ¶
func (d *Dispatcher) DispatchApScan() []*factory.DispatchApScanResponse
func (*Dispatcher) DispatchBasic ¶
func (d *Dispatcher) DispatchBasic() []*factory.DispatchBasicResponse
func (*Dispatcher) IcmpReachable ¶
func (d *Dispatcher) IcmpReachable(address string) bool
linux need privilege for udp
func (*Dispatcher) Session ¶
func (d *Dispatcher) Session(config *factory.SnmpConfig) (*gosnmp.GoSNMP, error)
func (*Dispatcher) SnmpReachable ¶
func (d *Dispatcher) SnmpReachable(session *gosnmp.GoSNMP) bool
func (*Dispatcher) SshReachable ¶
func (d *Dispatcher) SshReachable(address string) bool
func (*Dispatcher) SysObjectID ¶
func (d *Dispatcher) SysObjectID(session *gosnmp.GoSNMP) string
Click to show internal directories.
Click to hide internal directories.