Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Configuring UNIX Inventory on Non-English Locale

Updated: 31 Jul 2008
Bcomp's picture
0 0 Votes
Login to vote

How do you set up the Inventory for UNIX to execute on a Non-English Locale system? This tech tip will help you along the way.

The Bash shell allows for modifying environment variables for child process without affecting the main operating system environment. The main inventory for UNIX/Linux binary is a shell script called 'aex-runinvnow'. By modify the 'aex-runinvnow' script as shown below, we can leave the operating system to use the non-English locale while allowing the script and its child processes to run with the C or Posix locale.

The aex-runinvnow shell script can be found in the following directory on the Notification Server. You will need to drill down to the appropriate platform and processor.

C:\Program Files\Altiris\Notification Server\NSCap\Bin\Unix\Inventory

Open the file in a text editor (see note below). These changes affect the first three lines of the original file.

Before

#!/bin/sh
#
#///////////////////////////////////////////////////////////////////

After

#!/bin/sh
LANG=C
export LANG
#
#///////////////////////////////////////////////////////////////////

Note: Be sure to use a text editor that preserves the UNIX/Linux line endings. Otherwise, the aex-runinvnow script will fail to run on client computers due to inappropriate line endings.