Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
commands:nems-info [2019/02/07 20:11]
Robbie Ferguson
commands:nems-info [2019/07/29 20:37] (current)
Robbie Ferguson
Line 32: Line 32:
   * //nems-info **hosts**// - Output a count of how many hosts you are currently monitoring (uses livestatus).   * //nems-info **hosts**// - Output a count of how many hosts you are currently monitoring (uses livestatus).
   * //nems-info **services**//​ - Output a count of how many services you are currently monitoring (uses livestatus).   * //nems-info **services**//​ - Output a count of how many services you are currently monitoring (uses livestatus).
-  * //nems-info **benchmark** [test-name]//​ Outputs numeric result of NEMS Benchmark. Will return 0 if test has not yet been run via cron task, or if being run on an unsupported version of NEMS (requires 1.4+). Generally not for end-users. Used by [[:​anonymous_stats|NEMS Anonymous Stats]]. Available tests: cpu io ram mutex+  * //nems-info **benchmark** [test-name]//​ Outputs numeric result of NEMS Benchmark. Will return 0 if test has not yet been run via cron task, or if being run on an unsupported version of NEMS (requires 1.4+). Generally not for end-users. Used by [[:​anonymous_stats|NEMS Anonymous Stats]] and [[https://​gigglescore.com/​|GiggleScore.com]]. Available tests: cpu io ram mutex 7z-m 7z-s
   * //nems-info **state**// Output the state information of your NEMS hosts and services to JSON format.   * //nems-info **state**// Output the state information of your NEMS hosts and services to JSON format.
   * //nems-info **alias**// Output the alias of your NEMS Linux server.   * //nems-info **alias**// Output the alias of your NEMS Linux server.
   * //nems-info **cloudauth**//​ Check if this NEMS server is authorized to use [[features:​nems-cloud|NEMS Cloud]]. 1 = yes, 0 = no.   * //nems-info **cloudauth**//​ Check if this NEMS server is authorized to use [[features:​nems-cloud|NEMS Cloud]]. 1 = yes, 0 = no.
 +  * //nems-info **cloudauthcache**//​ Output the last status of this NEMS server'​s authorization to use [[features:​nems-cloud|NEMS Cloud]]. 1 = yes, 0 = no. Loads from a log file rather than realtime result, making this a faster way to load the status.
   * //nems-info **allowupdate**//​ Show NEMS' automatic update setting. 1 = Not allowed, 2 = Allowed monthly, 3 = Allowed semi-weekly,​ 4 = Allowed weekly, 5 = Allowed daily   * //nems-info **allowupdate**//​ Show NEMS' automatic update setting. 1 = Not allowed, 2 = Allowed monthly, 3 = Allowed semi-weekly,​ 4 = Allowed weekly, 5 = Allowed daily
   * //nems-info **wifi**// Output a json-encoded list of detected WiFi networks.   * //nems-info **wifi**// Output a json-encoded list of detected WiFi networks.
Line 44: Line 45:
   * //nems-info **quickfix**//​ Advise whether a background NEMS update is occurring. 0 is no, 1 is yes.   * //nems-info **quickfix**//​ Advise whether a background NEMS update is occurring. 0 is no, 1 is yes.
   * //nems-info **fixes**// Advise whether a background NEMS fixes is occurring. 0 is no, 1 is yes.   * //nems-info **fixes**// Advise whether a background NEMS fixes is occurring. 0 is no, 1 is yes.
 +  * //nems-info **piwatcher**//​ Advise whether a [[https://​cat5.tv/​piwatcher|piWatcher hat]] is connected to the NEMS Server.
 +  * //nems-info **rootfulldev**//​ Output the full block device name of the root partition.
 +  * //nems-info **rootdev**//​ Output the root device of the filesystem without the partition number.
 +  * //nems-info **rootpart**//​ Output the partition number of the root filesystem without the block device name.
 +  * //nems-info **speedtest**//​ Output current automatically-selected speedtest server.
 +  * //nems-info **speedtest best**// Output the best server.
 +  * //nems-info **speedtest which**// Output 0 if using automatically-selected speedtest server (automatically updates itself each day based on which server is best). Output 1 if using the server number provided in the ARGS on the check_command in NEMS NConf.
 +  * //nems-info **fileage [file]**// Output the age of any file on the NEMS server. Particularly helpful in determining how long a process has been running. Eg., //nems-info fileage /​var/​run/​nems-quickfix.pid//​
 +  * //nems-info **tv_require_notify**//​ Output the NEMS TV Dashboard setting for notification state. 1=Require notification state, 2=Display state information immediately.
 +  * //nems-info **tv_24h**//​ Output the clock format setting for NEMS TV Dashboard (configured in NEMS SST). 1=15:35, 2=3:35 PM, 3=3:35
 +  * //nems-info **livestatus**//​ Output JSON result of full livestatus query.
 +  * //nems-info **temper**//​ Output JSON response from supported [[hardware:​temper|TEMPer]] hardware.
  • commands/nems-info.1549588268.txt.gz
  • Last modified: 2019/02/07 20:11
  • by Robbie Ferguson