项目作者: ColumPaget

项目描述 :
command-line management for netgear Prosafe switches
高级语言: Lua
项目地址: git://github.com/ColumPaget/prosafe.lua.git
创建时间: 2018-09-21T15:24:04Z
项目社区:https://github.com/ColumPaget/prosafe.lua

开源协议:GNU General Public License v3.0

下载


prosafe.lua

This is a lua script to administer Netgear Prosafe smart switches via the telnet port. It is somewhat experimental and requires you to have libUseful and libUseful-lua installed.

N.B. Recent Netgear switches have the telnet management interface turned off by default. You will have to turn it on using the http management screens.

Features:

  • Displaying various information about a switch
  • set the switch’s IPv4 address
  • set the switch’s management password
  • turn on/off remote management services
  • set switches telnet banner
  • set syslog server to send logs to
  • display switch log
  • set sntp server to get time from
  • set switch clock to localhost time
  • list state of ports and mac addresses active on each port
  • disable/turn-off ports
  • lock ports to only allow traffic from current mac addresses

USAGE

  1. lua prosafe.lua <host> [options]
  2. -pass <password> supply password for logging in
  3. -proxy <host> proxy to connect to target via
  4. -set-pass <password> change password
  5. -set-ip <address> change ip4 address
  6. -sync-clock sync clock to local
  7. -sntp <host> set sntp server to get time updates from
  8. -syslog <host> set server to send logging to
  9. -banner <text> set telnet login banner
  10. -snmp set Simple Network Management Protocol to 'off', 'on' or
  11. -ports show port status
  12. -disable-port <port> turn off/disable a port
  13. -enable-port <port> turn on a previously disabled/turned off port
  14. -lock-port <port> lock a port to the current MAC address(es)
  15. -unlock-port <port> unlock port to accept any MAC address
  16. -unused-off turn off unusued ports
  17. -all-on turn on all ports
  18. -unlock unlock all ports
  19. -showlog output logs
  20. -save make setting changes permanent