Documentation ¶
Index ¶
- Constants
- func ExecSnmpWalk(host string, oid string, community string, version string) ([]string, string, error, int)
- func ExecSnmpWalkWithTarget(target Target) ([]string, string, error, int)
- func ParseList(lines []string, entityMap EntityMap, config MibConfig)
- func ParseMap(lines []string, config MibConfig, dataMap map[string]string)
- func ParseObject(lines []string, entity Entity, config MibConfig)
- func ParseStringByPrefixRegex(input string, prefix string) (string, error)
- type Entity
- type EntityMap
- type Log
- type LogWrapper
- type MibConfig
- type Target
Constants ¶
View Source
const (
SepEqual = " = "
)
Variables ¶
This section is empty.
Functions ¶
func ExecSnmpWalk ¶
func ExecSnmpWalk(host string, oid string, community string, version string) ([]string, string, error, int)
@title 执行snmp扫描命令 @author xv 11/6/20 7:56 PM @param host 待扫描机器的ip地址 @param oid @param community snmp的团体字 @param version 1|2c|3 @return (result, command, error, lineNum)
func ExecSnmpWalkWithTarget ¶
func ParseObject ¶
Types ¶
type LogWrapper ¶
func (*LogWrapper) AddError ¶
func (a *LogWrapper) AddError(key string, err string)
Click to show internal directories.
Click to hide internal directories.