miburi

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DBVersion = 1

Variables

This section is empty.

Functions

func Main

func Main()

Types

type DBObject added in v0.1.0

type DBObject struct {
	Version    int
	SmiEntries []SmiEntry
}

type DumpCommand

type DumpCommand struct {
	Directories []string `arg:"-d,--directory,separate,required" help:"Directory to scan for MIB files (multiple supported)"`
	Output      string   `arg:"-o,--output" help:"Output file" default:"smi_objects.gob"`
}

type FindCommand

type FindCommand struct {
	Input   string   `arg:"-i,--input" help:"Input file" default:"smi_objects.gob"`
	OIDs    []string `arg:"-t,--target,separate,required" help:"OID to find (multiple supported)"`
	Verbose bool     `arg:"-v,--verbose" help:"Verbose output"`
}

type JsonCommand

type JsonCommand struct {
	Input string `arg:"-i,--input" help:"Input file" default:"smi_objects.gob"`
}

type SmiEntry

type SmiEntry struct {
	Module gosmi.SmiModule
	Nodes  []SmiNodeWithIndex
	Types  []gosmi.SmiType
}

type SmiNodeWithIndex

type SmiNodeWithIndex struct {
	gosmi.SmiNode
	OIDString string
	MIB       string
}

type WalkCommand

type WalkCommand struct {
	Input     string   `arg:"-i,--input" help:"Input file" default:"smi_objects.gob"`
	Host      string   `arg:"-H,--host" help:"Host to walk" default:"localhost"`
	Community string   `arg:"-c,--community" help:"Community to walk" default:"public"`
	Port      uint16   `arg:"-p,--port" help:"Port to walk" default:"161"`
	OIDs      []string `arg:"-t,--target,separate,required" help:"OID to walk (multiple supported)"`
	Verbose   bool     `arg:"-v,--verbose" help:"Verbose output"`
	Json      bool     `arg:"-j,--json" help:"Output in JSON"`
	CSV       bool     `arg:"-C,--csv" help:"Output in CSV"`
}

type WalkedNode

type WalkedNode struct {
	OID   string
	Name  string
	MIB   string
	Type  string
	Value string
	Enum  string
	Unit  string
	Desc  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL