School Manager Command Line Interface
School Manager has a two-part Command Line Interface (CLI): SphireOS (a proprietary product of Linewize) and Bash. You may be familiar with Bash if you have used a Linux terminal. However, the implementation of Bash for School Manager is limited with the majority of standard Linux/Unix utilities removed.
Accessing the CLI
Access to the CLI is local only and requires you to connect to the appliance with a keyboard and mouse. Alternatively, SSH access is available to School Manager, provided it has been preconfigured in Advanced Configuration via the cloud interface.
- On boot, the School Manager will provide a login prompt to the SphireOS CLI.
- Press Enter to log in.
- If you want to get straight to Bash, type system debug exec bash to switch across.
- From Bash, type exit to switch back to SphireOS.
SphireOS Command Reference
Show the available commands
Go up a level
|Launch the configuration wizard||config wizard|
|Check for updates||system update status|
|Update the School Manager||system update update|
|Lock SphireOS version to prevent rollback||system layout mark-active-success|
|Reboot the School Manager||system reboot|
|Shutdown the School Manager||system shutdown|
|Reset all settings||
There is no confirmation config reset.
|Launch a Bash shell||system debug exec bash|
Bash Command Reference
|Show the status of the network adapters||ip a|
|Clear an interface configuration||
ip addr del [IP Address/Mask] dev [interface name]
ip addr del 192.168.1.1/24 dev eth1
|Show the current routes||ip r|
|Reset the routing table||ip r flush table main|
|Set a default route||
ip r add default via [Gateway IP] dev [interface name]
ip r add default via 172.20.0.1 dev eth3
|Obtain the last few syslog messages||tail /var/log/syslog|
|Follow and retry syslog messages||tail -F /var/log/syslog
Continues to display log messages as they are available.
|Look for a word in the syslog||
tail /var/log/syslog | grep [word]
tail /var/log/syslog | grep cloud
|Look for issues in the syslog||grep Fatal /var/log/syslog|
|Show the content of a URL||
|Check you can ping Google||
|Check you can ping Linewize||
|Check you can go to google.com||
curl https://www.google.com -vv
|Check the path to Linewize||
Check the path to Linewize
|Check the date and time||
|Check the interfaces||
|Obtain command history||
|Obtain current connections||
|Read the configuration of the device||
For further support on the installation of your School Manager appliance, please contact Linewize Support.