Xylok Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Linux/Unix Devices

Instruction Overview

Most data collection instructions involve commands run at the command line, also referred to as a terminal. These instructions assume the user has some familiarity using the command line, but additional help is available under (in the sidebar) Data Collection/Additional Help. If your organization has any questions regarding data collection that this document does not cover, contact Xylok support.

Applicable Systems

These instructions apply to most Unix-like systems that have POSIX shells (SH, ASH, BASH, etc) by default including:

  • Red Hat Enterprise Linux 5, 6, 7, and 8
  • SUSE Linux
  • Ubuntu
  • Solaris

They will also work for CSH-based systems, although the script files may have a .csh extension and need to be run via csh rather than sh.

Execution Procedure

These are the basic steps that need to be accomplished:

  1. Copy the collection script (xylok-collect.sh) to a location writable by the host by checked.

    a. The user’s home directory, /tmp, or an NFS mount are good choices. b. If scanning many machines, a network share that all the machines can access is an especially good choice—you will avoid the need to SCP script and result files around the network. c. Making a new directory inside one of these locations makes removing any Xylok files easier.

  2. In a terminal, navigate to the directory the script is in

  3. Become root

  4. Collect data by running sh xylok-collect.sh

  5. Copy the results file called xylok-results-<machine info>.xylok off the system and to the Xylok Scanner host

  6. Remove all Xylok files from the host (if desired), by running rm xylok*

  7. Upload the results. See Uploading and Importing Data.