Citrix scanning requirements

Citrix scanning is a feature introduced in Lansweeper 7.0. If you are using an older Lansweeper release, you will need to update by following the instructions in this knowledge base article.
Not all Lansweeper licenses support Citrix scanning. Please visit this page for more information.

Ideally, a Citrix XenServer host is scanned through the Citrix API (XenAPI or XAPI). Though other protocols enabled on the XenServer, like SSH, may provide some information as well, the XenAPI will return the most detailed data. In order for Lansweeper to scan a XenServer host, you need to ensure that TCP port 443 is opened on the XenServer host and that the HTTPS title contains the text "XenServer".

The account you use to access the XenAPI must be able to run following command aliases NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS. Full root access is not necessary.

Keep in mind that XenServers are scanned via port 443, at this time you cannot configure a custom TCP port for your XenServers as they will not be scanned as a XenServer if you do. Additionally, the HTTPS title must contain the text "XenServer" to be correctly identified as a XenServer, as such custom HTTPS titles are also not supported at this time. Use our devicetester to check if TCP port 443 is open on the XenServer and to check that the HTTPS title is correct.

 

To configure a XenServer host for scanning, do the following:

  1. Logon as root to the XenServer console via an SSH session.
  2. Create a user to scan your XenServer host. You can use the standard Linux useradd command. In below example we created a user called lsscan.
    useradd -c "LansweeperScanCred" -d /home/lsscan -s /bin/bash lsscan

    Below is a short explanation of the used parameters:

    -c: Any text string. It is generally a short description of the login.
    -d: The new user will be created using this value as the user's login directory.
    -s: The name of the user's login shell.

  3. Set the password for the newly created user.
    passwd lsscan
  4. Open the sudo config file to grant the newly created user the required permissions.
    visudo
  5. Edit the sudo config file and uncomment (removing the # before) the following command aliases: NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS
    uncommenting cmd aliases
  6. Assign the command aliases to the newly created user by adding the following line at the bottom of your sudo config file:
    lsscan                 ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS
  7. The newly created user and password can now be used to scan the Citrix XenServer.
    More information on how to enter your newly created Citrix credentials can be found in this KB article.

Related Articles