summaryrefslogtreecommitdiffstats
path: root/doc/server/plugins/probes/manufacturer.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/server/plugins/probes/manufacturer.txt')
-rw-r--r--doc/server/plugins/probes/manufacturer.txt49
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/server/plugins/probes/manufacturer.txt b/doc/server/plugins/probes/manufacturer.txt
new file mode 100644
index 000000000..8f0a12ed9
--- /dev/null
+++ b/doc/server/plugins/probes/manufacturer.txt
@@ -0,0 +1,49 @@
+.. -*- mode: rst -*-
+
+.. _server-plugins-probes-manufacturer:
+
+manufacturer
+============
+
+Probe to output some standardized group names based on the manufacturer
+information.
+
+.. code-block:: sh
+
+ #!/bin/sh
+ #
+ PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH
+
+ manufacturer=manuf-no-demidecode
+
+ os=`uname -s`
+ if [ $os = "Linux" ] ; then
+ manufacturer=`dmidecode -s system-manufacturer 2>&1| sed -e 's/[ ]\+$//g'`
+ case $manufacturer in
+ "Dell Inc.")
+ manufacturer="manuf-dell"
+ ;;
+ "Sun Microsystems")
+ manufacturer="manuf-sun"
+ ;;
+ "VMware, Inc.")
+ manufacturer="manuf-vmware"
+ ;;
+ *)
+ manufacturer="manuf-unknown"
+ ;;
+ esac
+ fi
+
+ if [ $os = "SunOS" ]; then
+ case `uname -i` in
+ SUNW,*)
+ manufacturer="manuf-sun"
+ ;;
+ *)
+ manufacturer="manuf-unknown"
+ ;;
+ esac
+ fi
+
+ echo group:$manufacturer