Strange environment variables

From: Sugan Moodley (suganm@absa.co.za)
Date: Thu Apr 17 2003 - 08:11:26 EDT


Greetings,

I have a strange problem with environment variables. On a Sun E450 running Solaris 7 Generic_106541-16 certain variables seem to exist but I cannot find out where it is loaded from. Since the system has been up for over 230 days software may have been removed or added that initially set these variables.

The variables in question are:

CAIHPAD10=/CA/agents/data/hpa
AGENTWORKS_DIR=/CA

I've checked /etc/profile ~/.profile but this is the only useful portion:

# *---------------------------------------------- *
# Modifications made by setupNSM for
# Unicenter NSM Agent Technology
# *---------------------------------------------- *
if [ "$AGENTWORKS_DIR" = '' ]
then
   AGENTWORKS_DIR="/ca"
   export AGENTWORKS_DIR
fi
 
if [ -f "$AGENTWORKS_DIR"/scripts/envset ]
then
   . "$AGENTWORKS_DIR/scripts/envset"
fi
 
# *---------------------------------------------- *
# End of Modifications made by setupNSM for
# Unicenter NSM Agent Technology
# *---------------------------------------------- *

Somehow AGENTWORKS_DIR is being set somewhere but none of the usual places contain this string. /bin/login, telnetd nor /bin/sh don't load these variables. Creating a new user on the system and typing /usr/bin/env after login shows these variables again.

Any ideas on how to find where these variables are set? For the time being forcing the setting in /etc/profile is the current solution but there must be another explanation.

thanks in advance.

Sugan Moodley
Unix Systems Administrator

"All snakes who wish to remain in Ireland will please raise their right
hands."
                -- Saint Patrick
______________________________________________
"The information contained in this communication is confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed and others authorised to
receive it. If you are not the intended recipient you are hereby
notified that any disclosure, copying, distribution or taking action
in reliance of the contents of this information is strictly prohibited
and may be unlawful. Absa is liable neither for the proper, complete
transmission of the information contained in this communication, nor
for any delay in its receipt, nor for the assurance that it is
virus-free."
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:12 EDT