You are the first person to attempt something like this so far as I know,
so it has probably never been tested this way. I would export $HOME
explicitly and see if that helps. There is no guarantee that a Tivoli taks
running under your id has the same environment you have logging in.
It would seem easier for each user to just type in netview -nl when
he/she is ready for it to start, but then I am very biased about automatic
commands. :-)
And I still have the same question. Does the map itself show jane as the
user when it starts?
James Shanks
Tivoli (NetView for UNIX) L3 Support
Jane Curry <jane.curry@SKILLS-1ST.CO.UK> on 01/13/99 07:00:58 AM
Please respond to Discussion of IBM NetView and POLYCENTER Manager on
NetView <NV-L@UCSBVM.UCSB.EDU>
To: NV-L@UCSBVM.UCSB.EDU
cc: (bcc: James Shanks)
Subject: Re: [Fwd: Starting NetView EUI from Tivoli task]
My scenario is that many of my clients find the menus presented by
right-clicking on the NetView icon on the Tivoli Desktop, tedious. They
just
want a simple Tivoli Job that starts the NetView EUI, without nv6000.log
logging. I have written a small script as follows:
#!/bin/ksh
. /home/jane/.profile
. /home/.kshrc (this in turn sources the Tivoli environment)
cd /home/`whoami`
/usr/OV/bin/netview -nl
exit 0
The script is then encapsulted in a Tivoli task that runs as UID jane, GID
staff - this in turn is encapsulated as a Tivoli Job that runs on the
NetView
endpoint.
I am still having difficulty deleting nodes. I have also tested running
the
EUI from the right button of the NetView icon - the deletion problem
doesn't
seem to happen but it still doesn't pick up my saved workspace environment
-
can't see what's different between this and running nv6000 -nl from the
command
line.
Many thanks for any further discussion,
Jane
James Shanks wrote:
> I am not certain what you are doing here, so I have nothing to give you
but
> other questions.
> When you say you are doing this as a Tivoli task, do you mean that you
> start the NetView GUI from the Framework context menu that looks like the
> old SMIT menu, (you get that by right clicking the NetView managed node
> from the Tivoli desktop) under the Control option, or some other way?
>
> When you start the map in the fashion, what does it say in the lower
> left-hand corner? Usually there is an indication of the map name, the
user
> who has it open, and whether it is read/write or read/only.
>> Bottom left has default@poppet [Read-Write] which is fine
>> Bottom right has Workspace Name: jane.events1 and Rule Name: >>
check_ping_rs which is fine and shows it has read my .Xdefaults file.
>
>
> James Shanks
> Tivoli (NetView for UNIX) L3 Support
>
> Jane Curry <jane.curry@SKILLS-1ST.CO.UK> on 01/11/99 01:19:44 PM
>
> Please respond to Discussion of IBM NetView and POLYCENTER Manager on
> NetView <NV-L@UCSBVM.UCSB.EDU>
>
> To: NV-L@UCSBVM.UCSB.EDU
> cc: (bcc: James Shanks)
> Subject: [Fwd: Starting NetView EUI from Tivoli task]
>
> Further quirks with starting NetView from a Tivoli task.......
> It appears that node deleting / adding doesn't work properly if done
> from a NetView started via the Tivoli task described below. If I delete
> a node, I get no "Node deleted" event card, ovobjprint and ovtopodump
> both show the node still and the node (obviously) never gets
> re-discovered.
>
> If I do exactly the same as me but by starting NetView via nv6000 from a
> command prompt, it all works fine.
>
> PLEASE can anyone shed light on this??
>
> Cheers, Jane
>
> -------- Original Message --------
> Subject: Starting NetView EUI from Tivoli task
> Date: Thu, 31 Dec 1998 16:05:45 +0000
> From: Jane Curry <jane.curry@skills-1st.co.uk>
> To: NetView mailing list <NV-L@UCSBVM.ucsb.edu>
>
> NetView 5.1, Framework 3.6, AIX 4.2.1, ....
>
> I have a Tivoli task that starts the NetView EUI (without going through
> all the extra windows that you get from the standard Tivoli NetView
> desktop menus). I use the -nl option to prevent the NetView log. This
> works fine.
>
> Unfortunately, started from the Tivoli task, NetView cannot find my
> saved workspace environment which is in $HOME/NvEnvironment - standard
> if you set the nvevents.saveEnvOnExit widget in your home .Xdefaults.
> Everything else seems to be picked up fine from my own .Xdefaults and I
> have put in nvevents.saveDir explicitly as $HOME/NvEnvironment. I have
> tried wrapping my EUI startup script with a command to source the Tivoli
> environment and another to change to my home directory before calling
> the netview command - all to no avail. The script works fine run from
> the command line and finds my saved workspaces OK.
>
> Can anyone offer any clues??
> Thanks, Jane
> --
> Tivoli Certified Consultant
> Skills 1st Limited, 2 Cedar Chase, Taplow, Bucks, SL6 0EU, UK
> Tel: +44 (0)1628 782565
> Copyright (c) 1998 Jane Curry <jane.curry@skills-1st.co.uk>. All rights
> reserved.
--
Tivoli Certified Consultant
Skills 1st Limited, 2 Cedar Chase, Taplow, Bucks, SL6 0EU, UK
Tel: +44 (0)1628 782565
Copyright (c) 1999 Jane Curry <jane.curry@skills-1st.co.uk>. All rights
reserved.
|