/build/static/layout/Breadcrumb_cap_w.png

KACE: Quick Reference To Scripts Variables

Summary:  A quick Reference Guide for script variables by operating system and server versions: 

$(KACE_DEPENDENCY_DIR)

    • This is the folder where any script dependencies for this script are downloaded to the client.
    • 5.2+ $(KACE_DATA_DIR)\packages\kbots\xxx.
    • 5.1 $(KACE_INSTALL)\packages\kbots\xxx.

$(KACE_INSTALL)

$(KACE_INSTALL_DIR)

$(KBOX_INSTALL_DIR)

    • Installation directory for executables, scripts, packages, etc.
    • All are synonymous. Preferred: $(KACE_INSTALL)
    • 5.2+ Win7/Vista C:\ProgramData\Dell\KACE
    • 5.2+ XP C:\Documents and Settings\All Users\Dell\KACE
    • 5.2+ Mac OS X /Library/Application Support/Dell/KACE/bin
    • 5.2+ Linux /opt/dell/kace
    • 5.1 Windows c:\Program Files\KACE\KBOX

$(KACE_SYS_DIR)

$(KBOX_SYS_DIR)

    • agent machine's system directory.
    • Both are synonymous. Preferred: $(KACE_SYS_DIR)
    • Windows C:\Windows\System32
    • Mac OS X /
    • Linux /

$(KACE_MAC_ADDRESS)

$(MAC_ADDRESS)

$(KBOX_MAC_ADDRESS)

    • agent machine's primary ethernet MAC address.
    • All are synonymous. Preferred: $(KACE_MAC_ADDRESS)

$(KACE_IP_ADDRESS)

$(KBOX_IP_ADDRESS)

    • Both are synonymous. Preferred: $(KACE_IP_ADDRESS)

$(KACE_SERVER_URL)

$(KACE_SERVER)

    • hostname of K1000 server. kbox

$(KACE_SERVER_PORT)

    • port to use when connecting to the K1000 server. (80/443)

$(KACE_SERVER_URLPREFIX)

    • web protocol to use when connecting to the K1000 server. (http/https)

$(KACE_COMPANY_NAME)

    • agent's copy of the setting from server's config page

$(KACE_KUID)

$(KBOX_MACHINE_ID)

    • this is the unique Dell/KACE ID assigned to this agent.
    • Both are synonymous. Preferred: $(KACE_KUID)

$(KACE_APP_DIR)

    • Installation directory the Dell/KACE agent and plugins.
    • for older agents this is mapped to: $(KACE_INSTALL)
    • 5.2+ Windows C:\Program Files\Dell\KACE or C:\Program Files (x86)\Dell\KACE
    • 5.2+ Mac OS X /Library/Application Support/Dell/KACE/bin
    • 5.2+ Linux /opt/dell/kace
    • 5.1 $(KACE_INSTALL)

$(KACE_DATA_DIR)

    • Installation directory for executables, scripts, packages, etc.
    • for older agents this is mapped to: $(KACE_INSTALL)
    • 5.2+ Win7/Vista C:\ProgramData\Dell\KACE
    • 5.2+ XP C:\Documents and Settings\All Users\Dell\KACE
    • 5.2+ Mac OS X /Library/Application Support/Dell/KACE/data
    • 5.2+ Linux /var/dell/kace
    • 5.1 $(KACE_INSTALL)

$(KACE_AGENT_VERSION)

    • substitutes the version number of the installed agent."5.2.12345"
    • 5.2+ Only

$(KACE_AGENT_ARCH)

    • substitutes the architecture of the installed agent."x86/x64"
    • 5.2+ Windows Only

$(KACE_HARDWARE_ARCH)

    • substitutes the architecture of the physical hardware."x86/x64"
    • 5.2+ Windows Only

$(KACE_OS_FAMILY)

    • substitutes windows, mac, or linux depending on the operating system of the agent machine.
    • 5.2+ Only

$(KACE_OS_ARCH)

    • substitutes x86 or x64 depending on the architecture of the installed version of Microsoft Windows.
    • 5.2+ Windows Only

Comments

  • Really helpful. Thanks a lot. - tomlockbart 11 years ago
  • Is there an updated version of this list? I am looking for a user variable - thewruck 8 years ago
  • Hello thewruck, Looks like these have not changed since I created this blog. To find a list of variables, go to scripting, open a script, and click the blue question mark box next to Tasks. This will list the current variables. - KACE_Mary 8 years ago
  • Are there any variables for things like date and time? - ondrar 7 years ago
  • Calling $(KBOX_SYS_DIR) c:\windows\system32 is silly since the Kace client is 32 bit. - jszabo 6 years ago
This post is locked

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ