Skip to content
/ snmp Public

snmp client capable of massive parallel network scanning efficiently.

License

Notifications You must be signed in to change notification settings

nikandfor/snmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation Build Status CircleCI codecov GolangCI Go Report Card GitHub tag (latest SemVer)

snmp

Simple but powerful snmp client.

Minimal example

conn, err := net.ListenPacket("udp", *addr)
if err != nil { /* ... */}

c := snmp.NewClient(conn)
defer c.Close() // <- conn is Closed here

go c.Run() // read incoming packets.

root, err := asn1.ParseOID(os.Args[1])
if err != nil { /* ... */}

p, err := c.Walk(a, root)
if err != nil {
	log.Fatalf("walk: %v", err)
}

for _, v := range p.Vars {
	fmt.Printf("%v\n", v)
}

See full example in ./cmd/ dir.

About

snmp client capable of massive parallel network scanning efficiently.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages