Initializing ISM
Posted in 2011
A user on AIX 6.1 with IDS 11.7 couldn't initialize ISM: the ism_startup setup script kept reporting "You need to set $INFORMIXDIR before running the ISM setup script," even though INFORMIXDIR was exported in the login profile. Running the script without sudo saw the variable, but then complained it had to run as root. Suggestions were to check the first lines of ism_startup, use 'sudo su -' with a proper environment, and verify with 'sudo env' that INFORMIXDIR survived. The cause was sudo stripping/not passing the environment; the UNIX admins changed sudo's configuration and that fixed it.
Auto-generated by DrWatson from the posts below — may be imperfect; read the full thread.
Topics: General Discussion
I am getting the following message when I try to initialize ism: *** You need to set $INFORMIXDIR before running the ISM setup script. I have $INFORMIXDIR set up. I am wondering why ISM won't let me initialize.
The only other thing that was odd when I was installing IDS 11.7 was that the onconfig I created did not belong to group informix. This was corrected with chown. I also changed the owner of all the files I created like the environment variable file. Other than that, I followed the same steps I did when I installed on our test environment. On Mar 7, 3:35 pm, Jeremiah <yogensha....@gmail.com> wrote: > I am getting the following message when I try to initialize ism: > > *** You need to set $INFORMIXDIR before running the ISM setup script. > > I have $INFORMIXDIR set up. I am wondering why ISM won't let me > initialize.
What os?? is it linux??? and if so do you have ksh installed??? you can have a look in ism_startup since it is a script the first few lines check for informixdir.... Superboer. On 7 mrt, 23:16, Jeremiah <yogensha....@gmail.com> wrote: > The only other thing that was odd when I was installing IDS 11.7 was > that the onconfig I created did not belong to group informix. This was > corrected with chown. I also changed the owner of all the files I > created like the environment variable file. Other than that, I > followed the same steps I did when I installed on our test > environment. > > On Mar 7, 3:35 pm, Jeremiah <yogensha....@gmail.com> wrote: > > > I am getting the following message when I try to initialize ism: > > > *** You need to set $INFORMIXDIR before running the ISM setup script. > > > I have $INFORMIXDIR set up. I am wondering why ISM won't let me > > initialize.
The OS is AIX 6.1. Upon digging a little further it looks as if sudo is unable to see $INFORMIXDIR. I don't know if that makes sense. When I run the file without sudo, it does seem to recognize $INFORMIXDIR but of course it throws the message that I need to run it as root. On Mar 8, 2:32 am, Superboer <superbo...@t-online.de> wrote: > What os?? is it linux??? and if so > do you have ksh installed??? > > you can have a look in ism_startup since it is a script the first few > lines check for informixdir.... > > Superboer. > > On 7 mrt, 23:16, Jeremiah <yogensha....@gmail.com> wrote: > > > The only other thing that was odd when I was installing IDS 11.7 was > > that the onconfig I created did not belong to group informix. This was > > corrected with chown. I also changed the owner of all the files I > > created like the environment variable file. Other than that, I > > followed the same steps I did when I installed on our test > > environment. > > > On Mar 7, 3:35 pm, Jeremiah <yogensha....@gmail.com> wrote: > > > > I am getting the following message when I try to initialize ism: > > > > *** You need to set $INFORMIXDIR before running the ISM setup script. > > > > I have $INFORMIXDIR set up. I am wondering why ISM won't let me > > > initialize.
if it works: sudo su - and set your env properly sounds like sudo does not have INFORMIXDIR set. maybe sudo env > x may tell you that INFORMIXDIR is not set?? Superboer. On 8 mrt, 15:48, Jeremiah <yogensha....@gmail.com> wrote: > The OS is AIX 6.1. Upon digging a little further it looks as if sudo > is unable to see $INFORMIXDIR. I don't know if that makes sense. When > I run the file without sudo, it does seem to recognize $INFORMIXDIR > but of course it throws the message that I need to run it as root. > > On Mar 8, 2:32 am, Superboer <superbo...@t-online.de> wrote: > > > What os?? is it linux??? and if so > > do you have ksh installed??? > > > you can have a look in ism_startup since it is a script the first few > > lines check for informixdir.... > > > Superboer. > > > On 7 mrt, 23:16, Jeremiah <yogensha....@gmail.com> wrote: > > > > The only other thing that was odd when I was installing IDS 11.7 was > > > that the onconfig I created did not belong to group informix. This was > > > corrected with chown. I also changed the owner of all the files I > > > created like the environment variable file. Other than that, I > > > followed the same steps I did when I installed on our test > > > environment. > > > > On Mar 7, 3:35 pm, Jeremiah <yogensha....@gmail.com> wrote: > > > > > I am getting the following message when I try to initialize ism: > > > > > *** You need to set $INFORMIXDIR before running the ISM setup script. > > > > > I have $INFORMIXDIR set up. I am wondering why ISM won't let me > > > > initialize.
"it looks as if sudo is unable to see $INFORMIXDIR" errm...you *did* export it, didn't you?
Yes I did and it's being called from an environment file once you log on via .profile. I'm working with our unix folk to solve the problem right now. On Mar 8, 8:58 am, Malc <mal...@googlemail.com> wrote: > "it looks as if sudo > is unable to see $INFORMIXDIR" > > errm...you *did* export it, didn't you?
This is solved. Unix folk had to make changes in sudo's behavior. On Mar 8, 10:02 am, Jeremiah <yogensha....@gmail.com> wrote: > Yes I did and it's being called from an environment file once you log > on via .profile. I'm working with our unix folk to solve the problem > right now. > > On Mar 8, 8:58 am, Malc <mal...@googlemail.com> wrote: > > > "it looks as if sudo > > is unable to see $INFORMIXDIR" > > > errm...you *did* export it, didn't you?