diff options
author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-10-15 06:02:48 -0500 |
---|---|---|
committer | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-10-24 10:12:07 -0500 |
commit | 9586a391533505c310a60bb8c7f98cf6126a5c8a (patch) | |
tree | ecebcc1ceb91dd126c9958579697e16d80c2e496 | |
parent | 8bcf49c22c69e10b11960fb31ecef417a54a864c (diff) | |
download | phosphor-debug-collector-9586a391533505c310a60bb8c7f98cf6126a5c8a.tar.gz phosphor-debug-collector-9586a391533505c310a60bb8c7f98cf6126a5c8a.zip |
dreport: Added hostnamectl plugin
Plugin used for collecting current hostname settings.
Change-Id: Ie328931a1de648649397d1525f6efaf960a0964e
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
-rw-r--r-- | tools/dreport.d/plugins.d/hostnamectl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/dreport.d/plugins.d/hostnamectl b/tools/dreport.d/plugins.d/hostnamectl new file mode 100644 index 0000000..18799cf --- /dev/null +++ b/tools/dreport.d/plugins.d/hostnamectl @@ -0,0 +1,13 @@ +#!/bin/bash +# +# config: 123 5 +# @brief: Collect current hostname settings. +# + +. $DREPORT_INCLUDE/functions + +desc="hostnamectl" +file_name="hostnamectl.log" +command="hostnamectl status" + +add_cmd_output "$command" "$file_name" "$desc" |