RSS: Blog | Wiki | Forum

Terminal commands

From Easyneufenglish

Jump to: navigation, search

Contents

[edit] Terminal commands

[edit] Description

This page describes the different commands avalaible for the router. A UDP channel on the 3001 port allows a data exchange between the router and the terminal. On the terminal side, the "terminald" daemon, launched by init (see /etc/inittab) is waiting for commands.

[edit] Supported commands

  • help (arg nb : [1-1]) : make a list of all supported commands.
  • dropbear (arg nb : [2-2]) : launch an ssh server on the terminal.

This one is launched on the 13031 port and the connexion can't be done without the root login (see the page [wiki:Password password]). The dropbear command takes an argument. This argument can be (start, stop or restart). Don't forget to stop it after usage :)

  • ez9CreateUser (arg nb : [2-30]) : See the page [wiki:Account Account]
  • ez9DeleteUser (arg nb : [2-10]) : See the page [wiki:Account Account]
  • ez9ChangePassword (arg nb : [2-10]) : See the page [wiki:Account Account]
  • ez9ChangeUserProperty (arg nb : [2-30]) : See the page [wiki:Account Account]
  • ez9GetUserProperty (arg nb : [2-30]) : See the page [wiki:Account Account]
  • ez9GetListUsers (arg nb : [1-30]) : See the page [wiki:Account Account]
  • show-fullversion (arg nb : [1-1]) : See the page [wiki:Account Account]. Command example of "terminal show-fullversion" :
Version terminal check : ok
hardware version : intel001_01
Image 0 version : 2007030200
Image 0 flavour : easygate
Image 0 domain : easyneuf.fr
Image 0 hardware support : x86-i855gm-rev1
Image 1 version : 2007030503
Image 1 flavour : easygate
Image 1 domain : easyneuf.fr
Image 1 hardware support : x86-i855gm-rev1
Current image : 1
9rescue version : 2007011103
  • show-rate (arg nb : [1-1])
  • show-status (arg nb : [1-1])
  • ls (arg nb : [1-5])
  • uptime (arg nb : [1-1])

[edit] Remarks

You can access to most of the following commands on a terminal like shell commands. For exemple, it's possible to delete a user X on the terminal by typing "ez9DeleteUser -l X" in a shell. Some commands can be accessed as options of the 9rescue command (show-fullversion, show-rate, show-status, etc ...). For exemple "9rescue show-fullversion" in a terminal shell will return the same informations as "terminal show-fullversion" launched from the router.