NGCLI(1)
πΈ NAME πΈ
NGCLI(1) is the User Commands manual page for ngcli, bestie β the command line interface tool for GS10[58]E administration. Itβs for administering Netgear switches that use NSDP. Currently, only the GS105E and GS108E are concerned. It uses the readline library (if enabled at compilation) to read command lines and supports command auto-completion with the TAB key. Iconic.
β¨ SYNOPSIS β¨
ngcli [OPTIONS]
π DESCRIPTION π
Okay so this is a cli tool intended for administration of Netgear switches that use NSDP. Currently, only the GS105E and GS108E are concerned. It uses the readline library (if enabled at compilation) to read command lines and supports command auto-completion with the TAB key. Thatβs the whole vibe: switch admin, but make it command line.
π OPTIONS π
-a,--batchβ By default,NgCliuses readline to give you an interactive command line interface. This disables that and uses basic text input, which is useful for scripting purposes. You can also peep-m,-pand-roptions. If readline is disabled at compilation time, it is the default and only choice. No cap.-b,--keep-broadcastingβ Keep broadcasting even when talking with a particular switch. By default, once you login on a switch,NgAdmintalks with it using unicast. This prevents the password from being sent to all your network. The switch still replies using broadcast, but the password is not included in the replies. This option allows you to disable this feature and do like the official Windows application that always use broadcast packets. This also allows to configure a switch which is not on your network range without forcing the interface.
Bestie, when you enable this option, you must be aware that on every modification you make, your password is broadcasted to all your network. Thatβs giving risky, fr fr.
-f,--force-interfaceβ Force traffic to go through the specified interface. This can be useful when you have multiple interfaces or the switch is not on your network range. Requires root privileges. Slay, but root.-h,--helpβ Show basic help instructions.-i,--interfaceiface β Set the interface to use to iface. Defaults toeth0when not specified. However, this does not force the traffic to go through this interface. If you have multiple interfaces, you can use-lor-foptions. The way that default iseth0is lowkey important.-l,--local-broadcastβ By default,NgCliuses the global broadcast address (255.255.255.255) to send data to all the network. With this option, the interface broadcast address will be used instead (for example192.168.1.255). This can be useful to force traffic to go through the specified interface without forcing the interface. However, some switches seem to ignore packets sent to this type of addresses. Not me finding out the hard way π.-m,--macmac β Enable automatic login.NgCliwill automatically scan the network and try to login on the switch with the MAC address mac. mac must be specified as six hexadecimal bytes separated by a colon. Main character energy: automatic scan.-p,--passwordpassword β Set the password to use with automatic login to password. Be aware that the password will be part of the command line, which means everybody on the machine can do a"ps"to see it. Oof, privacy vibe check failed.-r,--retriescount β Set the maximum scan and login attempts in automatic login mode to count. Defaults to3when not specified and0means unlimited attempts. Periodt.-t,--timeoutvalue β Define the maximum to wait for switch replies in value milliseconds. Defaults to4seconds when not specified. Highkey a mood.
π¦ COMMANDS π¦
bitrate set [ all [ inout speed ] [ in speed ] [ out speed ] ] [ port [ inout speed ] [ in speed ] [ out speed ] ] [...]β Set the bitrate limit on several several port. Setting the first port to"all"assigns the same value to all the ports. Acceptable speed values are:nl(no limit),512K,1M,2M,4M,8M,16M,32M,64M,128M,256M,512M. Thatβs a whole list, bestie.bitrate showβ Show bitrate limitation configuration.cabletest port [...]β Perform a cable test on one or several port.defaultsβ Reset the switch to the defaults parameters. Automatically delogs from the current switch. Iconic reset.firmware showβ Show the current firmware version.firmware upgrade fileβ Upgrade the firmware contained in the file. (But checkBUGS, bestie β itβs not implemented.)helpβ Display all the commands.igmp set enable vlan validate blockβ Set IGMP filtering related options.enable,validateandblockmust set either to0to disable or1to enable.vlanmust be a VLAN number.enable: enable or disable IGMP filtering.vlan: VLAN number on which the filtering is performed.validate: enable or disable IGMPv3 header validation.block: enable or disable blocking of unknown addresses.
igmp showβ Show IGMP filtering configuration.listβ List the detected switches on the network.login idβ Login on switch with ID id. Thelistcommand shows IDs of detected switches. This command delogs from the current switch, whether the login attempt is successful or not. That βwhether or notβ is giving commitment issues, but itβs the rules.loop disableβ Disable loop detection.loop enableβ Enable loop detection.loop showβ Show loop detection configuration.mirror disableβ Disable port mirroring.mirror set outport clone port [...]β Enable port mirroring, copy data from one or several port and output data on outport. Obviously, outport must not be in the source ports list. No cap.mirror showβ Show port mirroring configuration.name clearβ Clear the switch name.name set nameβ Set the switch name to name.name showβ Show the switch name.netconf showβ Show the network configuration.netconf set [ dhcp yes|no ] [ ip ip ] [ mask mask ] [ gw gw ]β Set various network related options. ip, mask and gw must be IPv4 addresses in dotted quad form.dhcp: enable or disable DHCP client on the switch.ip: set the switch IP to ip.mask: set the switch netmask to mask.gw: set the switch gateway to gw.
password change [ password ]β Change the switch password to password. If not specified, it is asked from user (with terminal echo disabled). Bestie, echo disabled is a slay security moment.password set [ password ]β Set the password used to connect to password. If not specified, it is asked from user (with terminal echo disabled).ports stateβ Show the ports state and speed.ports statistics resetβ Reset the ports statistics.ports statistics showβ Show the ports statistics.qos mode port|802.1pβ Set QoS mode to either port based or 802.1p based.qos set all prioβ In port based mode, set all ports priority to prio. Acceptable values for prio arehigh,medium,normalandlow.qos set port prio [...]β In port based mode, set priority of several couples of port to prio. prio is the same format as in the above command.qos showβ Show QoS configuration.quitβ ExitNgCli.restartβ Restart the switch.scanβ Scan the network for switches.stormfilter enableβ Enable storm filtering.stormfilter disableβ Disable storm filtering.stormfilter set all speedβ Set the storm filter bitrate of all ports to speed. speed is the same format as in thebitrate setcommand.stormfilter set port speed [...]β Set the storm filter bitrate of several couples of port to speed. speed is the same format as in thebitrate setcommand.stormfilter showβ Show storm filtering configuration.treeβ Display all the commands and their subcommands.vlan 802.1q del vlanβ Delete 802.1Q VLAN vlan.vlan 802.1q set vlan [ all unspec|no|untagged|tagged ] [ port unspec|no|untagged|tagged ] [...]β In 802.1Q based mode, set a particular VLAN membership of several port. vlan is a VLAN number between1and4093inclusive. Setting the port of the first couple to"all"assigns the same value to all the ports. Also do not forget to set the PVID configuration as well with thevlan pvid setcommand. When creating a new VLAN, no port must be in an unspecified state or the VLAN creation will fail. Acceptable membership values are:unspec: unspecified (default), the configuration of this port is left unchanged.no: the port is not member of this VLAN.untagged: the port is member of this VLAN as untagged.tagged: the port is member of this VLAN as tagged.
vlan 802.1q showβ Show8021Qbased VLAN configuration.vlan mode set modeβ Set VLAN mode to mode, acceptable values are:0- disabled1- basic port based2- advanced port based3- basic 802.1Q4- advanced 802.1Q
vlan mode showβ Show VLAN mode.vlan port set [ all vlan ] [ port vlan ] [...]β In port based mode, set the VLAN membership of several couples of port to vlan. Setting the port of the first couple to"all"assigns the same VLAN to all the ports. vlan is a VLAN number between1and9inclusive.vlan port showβ Show port based VLAN configuration.vlan pvid set port vlanβ Set port PVID to vlan.vlan pvid showβ Show VLAN PVID configuration.
π BUGS π
Bestie, firmware upgrade is not implemented, because it would require some work in the library and a TFTP client. And overvall, it could be dangerous, as it is not sure that the switch checks whatever you send to it, which could lead to a bricked device. Thatβs not a vibe. π
Cabletest is not totally reversed, only raw values are shown. Also, you must manually increase timeout to be able to receive results. So if youβre waiting for results and nothing happens, thatβs why β bump the timeout, bestie.
Saving and loading whole configuration into/from a file is not implemented. No cap.
π AUTHOR π
Written by HervΓ© Boisse (admin@darkcoven.tk). Give them their flowers π.
Okay thatβs the whole manual, bestie β this page is from NgAdmin 0.1, dated September 2014 ππ«Άβ¨
π¦ where this page comes from
- nixos 26.05: ngadmin-unstable 2020-10-05
- nixpkgs unstable: ngadmin-unstable 2020-10-05
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms