Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. IT Analytics Help
  3. Section VII. Data Collector Installation and Configuration for Cohesity NetBackup
  4. Centralized Data Collector for NetBackup - Prerequisites, Installation, and Configuration
  5. Step-1: Choose operating system and complete prerequisites
  6. Linux Data Collector Prerequisites: Changing the Linux Temporary Directory for Collection

Linux Data Collector Prerequisites: Changing the Linux Temporary Directory for Collection

IT Analytics uses temporary files on the target server for command output. The location of the temporary files is controlled by the TMPDIR environment variable, defaulting to /tmp.

Option 1: User Profile

IT Analytics executes commands on the target NetBackup server using a non-interactive Bourne login shell (/bin/sh -l). On most systems this means that the /etc/profile (when a login type of connection like ssh or scp is used) and ${HOME}/.bashrc (when non-interactive connection like shell exec is used) files will be sourced and can be used to set the TMPDIR environment variable.

  1. Log into the collection account on the target server.

  2. Modify ${HOME}/.bashrc, set and export TMPDIR:

    TMPDIR=/path/to/tmp
    export TMPDIR

    For the NetBackup appliance: all CLI users share the /home/nbusers directory. To only change the TMPDIR directory for the collection user, you must first check the logged-in user. For example:

    if [ "${USER}" = "itanalytics" ] ; then
        TMPDIR=/path/to/tmp
        export TMPDIR
    fi
  3. To test, run the following command and verify that it returns the configured TMPDIR:

    $ ssh <username>@127.0.0.1 '/bin/sh -l -c "echo \${TMPDIR}"'
    /path/to/tmp
    

    Note:

    There may be additional output before the TMPDIR path, for example the NBU appliance displays a banner.

Option 2: Advanced Parameter

The TMPDIR can be set either for all or a select set of target servers in a collector using the advanced parameter:  NBU_SSH_TMPDIR. This value will be overridden if TMPDIR is set in the profile on the target server.

NBU_SSH_TMPDIR=/path/to/tm

Feedback

Was this page helpful?
Previous

Additional prerequisites

Next

Step-2: HTTPS requirement

Feedback

Was this page helpful?