Documentation
¶
Index ¶
- func DetectNetgearModel(args *types.GlobalOptions, host string) (types.NetgearModel, error)
- type PoeCommand
- type PoeCyclePowerCommand
- type PoeExt
- type PoePortSetting
- type PoePortStatus
- type PoeSetConfigCommand
- type PoeSettingKey
- type PoeShowSettingsCommand
- type PoeStatusCommand
- type PortCommand
- type PortSetCommand
- type PortSetting
- type PortSettingKey
- type PortSettingsCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectNetgearModel ¶
func DetectNetgearModel(args *types.GlobalOptions, host string) (types.NetgearModel, error)
Types ¶
type PoeCommand ¶
type PoeCommand struct {
PoeStatusCommand PoeStatusCommand `cmd:"" name:"status" help:"show current PoE status for all ports" default:"1"`
PoeShowSettingsCommand PoeShowSettingsCommand `cmd:"" name:"settings" help:"show current PoE settings for all ports"`
PoeSetPowerCommand PoeSetConfigCommand `cmd:"" name:"set" help:"set new PoE settings per each PORT number"`
PoeCyclePowerCommand PoeCyclePowerCommand `cmd:"" name:"cycle" help:"power cycle one or more PoE ports"`
}
type PoeCyclePowerCommand ¶
type PoeCyclePowerCommand struct {
Address string `required:"" help:"the Netgear switch's IP address or host name to connect to" short:"a"`
Ports []int `required:"" help:"port number (starting with 1), use multiple times for cycling multiple ports at once" short:"p" name:"port"`
}
func (*PoeCyclePowerCommand) Run ¶
func (poe *PoeCyclePowerCommand) Run(args *types.GlobalOptions) error
type PoePortSetting ¶
type PoePortStatus ¶
type PoeSetConfigCommand ¶
type PoeSetConfigCommand struct {
Address string `required:"" help:"the Netgear switch's IP address or host name to connect to" short:"a"`
Ports []int `required:"" help:"port number (starting with 1), use multiple times for setting multiple ports at once" short:"p" name:"port"`
PortPwr string `optional:"" help:"power state for port [enable, disable]" short:"s" name:"power"`
PwrMode string `optional:"" help:"power mode [802.3af, legacy, pre-802.3at, 802.3at]" short:"m" name:"mode"`
PortPrio string `optional:"" help:"priority [low, high, critical]" short:"r" name:"priority"`
LimitType string `optional:"" help:"power limit type [none, class, user]" short:"y" name:"limit-type"`
PwrLimit string `optional:"" help:"power limit (W) [e.g. '30.0']" short:"l" name:"pwr-limit"`
DetecType string `optional:"" help:"detection type [IEEE 802, legacy, 4pt 802.3af + Legacy]" short:"e" name:"detect-type"`
LongerDetect string `optional:"" help:"longer detection time [enable, disable]" name:"longer-detection-time"`
}
func (*PoeSetConfigCommand) Run ¶
func (poe *PoeSetConfigCommand) Run(args *types.GlobalOptions) error
type PoeSettingKey ¶
type PoeSettingKey string
const ( PortPrio PoeSettingKey = "PortPrio" PwrMode PoeSettingKey = "PwrMode" LimitType PoeSettingKey = "LimitType" PwrLimit PoeSettingKey = "PwrLimit" DetecType PoeSettingKey = "DetecType" LongerDetect PoeSettingKey = "LongerDetect" )
type PoeShowSettingsCommand ¶
type PoeShowSettingsCommand struct {
Address string `required:"" help:"the Netgear switch's IP address or host name to connect to" short:"a"`
}
func (*PoeShowSettingsCommand) Run ¶
func (poe *PoeShowSettingsCommand) Run(args *types.GlobalOptions) error
type PoeStatusCommand ¶
type PoeStatusCommand struct {
Address string `required:"" help:"the Netgear switch's IP address or host name to connect to" short:"a"`
}
func (*PoeStatusCommand) Run ¶
func (poe *PoeStatusCommand) Run(args *types.GlobalOptions) error
type PortCommand ¶
type PortCommand struct {
PortSettingsCommand PortSettingsCommand `cmd:"" name:"settings" help:"show switch port settings" default:"1"`
PortSetCommand PortSetCommand `cmd:"" name:"set" help:"set properties for a port number"`
}
type PortSetCommand ¶
type PortSetCommand struct {
Address string `required:"" help:"the Netgear switch's IP address or host name to connect to" short:"a"`
Ports []int `required:"" help:"port number (starting with 1), use multiple times for setting multiple ports at once" short:"p" name:"port"`
Name *string `optional:"" help:"sets the name of a port, 1-16 character limit" short:"n"`
Speed string `` /* 135-byte string literal not displayed */
IngressRateLimit string `` /* 224-byte string literal not displayed */
EgressRateLimit string `` /* 224-byte string literal not displayed */
FlowControl string `optional:"" help:"enable/disable flow control on port ['Off', 'On']" short:"c"`
}
func (*PortSetCommand) Run ¶
func (portSet *PortSetCommand) Run(args *types.GlobalOptions) error
type PortSetting ¶
type PortSettingKey ¶
type PortSettingKey string
const ( Index PortSettingKey = "Index" Name PortSettingKey = "Name" Speed PortSettingKey = "Speed" IngressRateLimit PortSettingKey = "IngressRateLimit" EgressRateLimit PortSettingKey = "EgressRateLimit" FlowControl PortSettingKey = "FlowControl" )
type PortSettingsCommand ¶
type PortSettingsCommand struct {
Address string `required:"" help:"the Netgear switch's IP address or host name to connect to" short:"a"`
}
func (*PortSettingsCommand) Run ¶
func (port *PortSettingsCommand) Run(args *types.GlobalOptions) error
Click to show internal directories.
Click to hide internal directories.