Difference between revisions of "Command Line Interface (CLI, LYSH)"

Line 6: Line 6:
 
The default or initial Username and Password is each <span style="font-family:Courier;font-weight:bold;font-size:large;">ladmin</span> and <span style="font-family:Courier;font-weight:bold;font-size:large;>1111</span>.<br>
 
The default or initial Username and Password is each <span style="font-family:Courier;font-weight:bold;font-size:large;">ladmin</span> and <span style="font-family:Courier;font-weight:bold;font-size:large;>1111</span>.<br>
 
'''If you log in with the default, you must change the default password. If not, you can't access the CLI before changing the password.'''
 
'''If you log in with the default, you must change the default password. If not, you can't access the CLI before changing the password.'''
 +
 +
The CLI has two command line modes: user mode and configuration mode. By default, user mode is where you begin the session with the imRAD devices. The user mode contains commands that you can use to see logs, the status of services, configurations, system variables and information, and so on. You can run some Linux commands in the user mode.
 +
 +
If press the <tab> key at any time,  you can complete the command or see the argument of the command, You can also display "help" by input -h or --help at the end of every command,
 +
<pre>
 +
LYSH@MyHostName# show -h
 +
LYSH@lyondev-40# show -h
 +
usage: show [-h] {apache2,command,config,datetime,dci,files,failover,hardware,interface,listen,log,loghost,multicast,mysql,ntp,php,service,session,system,uptime} ...
 +
 +
show the system informations
 +
 +
positional arguments:
 +
    apache2                            show the status of apache2 service
 +
    command                            show all or releated commands
 +
    config                              show config files
 +
    datetime                            show current time and zone
 +
    dci                                show decrypted database connection information
 +
    files                              find files in LYON_HOME and display them
 +
    failover                            show the configuration of system failover
 +
    hardware                            show hardware information
 +
    interface                          show network interfaces and assigned addresses
 +
    listen                              show network listening and program
 +
    log                                show logs
 +
    loghost                            list the address of remote log servers
 +
    multicast                          show multicast group membership information
 +
    mysql                              show mysql config and replication status
 +
    ntp                                show ntp server list and history
 +
    php                                show a php information
 +
    service                            show service status, mode and versions
 +
    session                            show who is logged on
 +
    system                              show the system general informations
 +
    uptime                              show how long the system has been running
 +
</pre>
  
 
# [[CLI - Networking]]
 
# [[CLI - Networking]]

Revision as of 15:42, 22 April 2021

We provide Command Line Interface (CLI), the name is LYSH, that is used for configuring, monitoring, and maintaining the imRAD devices. The CLI allows you to directly execute commands, whether using a console or using remote access methods such as Secure Shell (SSH, port 22). We do not provide the telnet to access the imRAD devices.

If you access the imRAD devices via a console port that is located in front of the device, the baud rate(speed) is 115,200 and the serial port type is an RJ-45 connector.

The default or initial Username and Password is each ladmin and 1111.
If you log in with the default, you must change the default password. If not, you can't access the CLI before changing the password.

The CLI has two command line modes: user mode and configuration mode. By default, user mode is where you begin the session with the imRAD devices. The user mode contains commands that you can use to see logs, the status of services, configurations, system variables and information, and so on. You can run some Linux commands in the user mode.

If press the <tab> key at any time, you can complete the command or see the argument of the command, You can also display "help" by input -h or --help at the end of every command,

LYSH@MyHostName# show -h
LYSH@lyondev-40# show -h
usage: show [-h] {apache2,command,config,datetime,dci,files,failover,hardware,interface,listen,log,loghost,multicast,mysql,ntp,php,service,session,system,uptime} ...

 show the system informations

positional arguments:
    apache2                             show the status of apache2 service
    command                             show all or releated commands
    config                              show config files
    datetime                            show current time and zone
    dci                                 show decrypted database connection information
    files                               find files in LYON_HOME and display them
    failover                            show the configuration of system failover
    hardware                            show hardware information
    interface                           show network interfaces and assigned addresses
    listen                              show network listening and program
    log                                 show logs
    loghost                             list the address of remote log servers
    multicast                           show multicast group membership information
    mysql                               show mysql config and replication status
    ntp                                 show ntp server list and history
    php                                 show a php information
    service                             show service status, mode and versions
    session                             show who is logged on
    system                              show the system general informations
    uptime                              show how long the system has been running
  1. CLI - Networking
  2. CLI - Hostname
  3. CLI - Services(daemons)
  4. CLI - Log
  5. CLI - System
  6. CLI - Database
  7. CLI - List commands and other Linux commands
  8. CLI - System Failover
  9. CLI - Updating system
  10. CLI - shutdown and reboot
  11. CLI - Configuration Mode