Slaughter

 


Predefined Variables

Several variables are setup and made available to your scripts. These may be used in several different fashions:

 if ( Defined( "raid" ) )
 {
    # This system is running software raid
 }
 if ( Value( "kvm") == 1 )
 {
    # This system is a KVM guest.
 }
 if ( $xen )
 {
   # This system is a Xen guest/host.
 }

Global Variables

The following variables are available:

VariableUsage/Meaning/Contents
archEither i386 or amd64, depending upon the type of the system.
bits32 or 64 depending on the client system.
domainThe domain portion of the hostname.
fqdnThe fully qualified (long) hostname of the client system.
hostnameThe short (unqualified) hostname of the client system.
kernelThe version of the kernel running upon the client system.
kvm1 if the guest is a KVM guest.
raid1 if some form of RAID was detected.
releaseThe symbolic name of the current distributions release, via LSB.
serverThe name of the server the client is running against.
softwareraid1 if software RAID was detected.
verbose0 or 1 depending on whether the slaugher run was launched wiht --verbose
xen1 if the guest is a Xen system (domU or dom0).

You can see all these variables, and their current values upon the local host by executing:

  slaughter --dump