Changes

From Amahi Wiki
Jump to: navigation, search
207 bytes added ,  13:33, 11 January 2011
no edit summary
==Command Line Interface==
*Note: Currently, you need root priviledges are required to be root and navigate execute the CLI command. Navigate to /usr/share/aes to use the CLI correctly.
<code>./aes.rb --showmonitoredhosts</code><br>
Show a list of all hosts which are monitored by AES, and also allows to delete hosts from the list. If these hosts are up and running (and respond to ping), the server does not suspend.
<code>./aes.rb --shownetworkhosts</code><br>
Lists the hosts found in the network and gives the user the choice to add them. This is useful to quickly fill the list of monitored hosts.
<code>./aes.rb --addhost macadress</code><br>Manually add a host to the list of monitores hosts. Observe the MAC address format, which has to be XX:XX:XX:XX:XX:XX. Example is <br> <code>./aes.rb --addhost 12:34:56:78:90:ab</code>
<code>./aes.rb --showcalendar</code><br>
Lists the current calendar entries. Calendar entries define times when the server does not suspend. Also, the server will be woken up at the beginning of a calendar entry.
<code>./aes.rb --addcalendar startdate starttime stopdate stoptime</code><br>Use this command to add an entry to the calendar. Format of stardatestartdate/stopdate: YYYY-MM-DD Format of starttime/stoptime: hhm:mm. Eg. amahienergysaver <br><code>./aes.rb --addcalendar 2010-12-20 15:00 2010-12-20 16:00 </code> <br>will keep the server awake on Dec 20th, 2010 from 15 to 16 hrs (3 to 4 pm). The server will also wake up at 15 hrs if it is suspended.
<code>./aes.rb --shutdowntype</code><br>
Show and modifiy the type of shutdown. NOTE: Not all shutdown types may be supported on your system, or may work correctly. Therefore, test that your machine is suspending and coming up correctly before deciding for a setting. Poweroff is safest type.
<code>./aes.rb --sbs [on|off|debug]</code><br><code>./aes.rb --sbs alone </code> shows the current setting of aes. The parameters <code>./aes.rb --sbs on </code> and of <code>./aes.rb --sbs off</code> switch monitoring of Squeezeboxserver on or off, respectively. The command <code>./aes.rb --sbs debug option </code> displays diagnostic information
<code>./aes.rb --help</code><br>
Displays command line help
64

edits