nv-l

Re: Netview startup

1999-04-28 17:09:47
Subject: Re: Netview startup
From: James Shanks <James_Shanks AT TIVOLI DOT COM>
To: nv-l AT lists.tivoli DOT com
Date: Wed, 28 Apr 1999 17:09:47 -0400
Gil -

I cannot tell you about auto login.  I don't do that sort of thing.  Sorry.
But I didn't see anything in the original note from Vladimir about using
inittab.  He suggested you put a command in one of the rc files.

All I commented on was your NetView security error.  That I understood.
Anything more fundamental than that is not something I can help with.  If
NetView security if off then there is no need to preface "netview" with
"nvauth".

The command  I gave you
     usr/bin/su - <userid> -c "netview&"
was just what was left of Vladimir's suggestion once the nvauth was
removed, and all su does is allow you to switch userids, which the man page
will tell you.  So this command just says "switch userid to <userid> and
execute the 'netview' command in the background".

How you get to the point where you can run this command, I cannot tell you.


James Shanks
Tivoli (NetView for UNIX) L3 Support



Gil Irizarry <IRIZARRG AT LABS.WYETH DOT COM> on 04/28/99 04:48:25 PM

Please respond to Discussion of IBM NetView and POLYCENTER Manager on
      NetView <NV-L AT UCSBVM.UCSB DOT EDU>

To:   NV-L AT UCSBVM.UCSB DOT EDU
cc:    (bcc: James Shanks/Tivoli Systems)
Subject:  Re: Netview startup





James:
  I did remove security and "telinit 4" executed my script, then I
rebooted, but, my login prompt came up on my console. Is it possible to
auto login the console(lft) using
My inittab entry is "autolog:4:wait:/usr/local/bin/autolog.ksh 2>&1 | alog
>/dev/console" It is the last entry in inittab.


>>> James Shanks <James_Shanks AT TIVOLI DOT COM> 04/28 11:44 AM >>>
If security is off because you really aren't using NetView secuirty, then
you can just drop the nvauth from the command.
Try issuing this instead:

/

James Shanks
Tivoli (NetView for UNIX) L3 Support



Gil Irizarry <IRIZARRG AT LABS.WYETH DOT COM> on 04/28/99 11:35:03 AM

Please respond to Discussion of IBM NetView and POLYCENTER Manager on
      NetView <NV-L AT UCSBVM.UCSB DOT EDU>

To:   NV-L AT UCSBVM.UCSB DOT EDU
cc:    (bcc: James Shanks/Tivoli Systems)
Subject:  Re: Netview startup





Vladimir:
  I am able to execute the script from the command line OK, however, I have
put it in inittab and after rebooting it does not autolog the user id onto
the console. I issued the telinit 4 ( where 4 is the run level in unittab
for my script) and it is generating  a message "security is off".  What do
you recommend?
The reason I want this, is so after my backup & reboot on Sundays at 1: AM,
the browser would be available to the techs dialing in from home.
Gil Irizarry

>>> Vladimir Petr <petr AT DATASYS DOT CZ> 04/28 6:01 AM >>>
"De Beer, Michael" wrote:
>
> Thanx Petr
>
> The OS I'm running is AIX4.2.1 & Netview 5.1 & what we are trying to do
> is
> get a particular map up on the box, under root user, so that when the
> web-server comes up, as I understand it, this will be the first map it
> grabs. We tried to find a rc.local file on the system but had no luck
> (should we be looking for something else ? ).
>
> Regards Mike
>
> -----Original Message-----
> From: Vladimir Petr [mailto:petr AT DATASYS DOT CZ]
> Sent: Monday, April 26, 1999 12:11 PM
> To: NV-L AT UCSBVM.ucsb DOT edu
> Subject: Re: Netview startup
>
> "De Beer, Michael" wrote:
> >
> > Hi
> >
> > Is it possible to start a netview map i.e.. default map at boot-up
> time,
> > with root user on the console, without root actually signing on the
> > console,
> > in other words, when the box comes up after a re-boot, it bypasses the
> > GUI
> > login screen and automatically starts the root map GUI. Any help would
> > be
> > appreciated.
> >
> > regards
> >
> > Michael de Beer
> > Network Management Analyst
> > +2711 889-4610 (work)
> > +2711 889-5293/4355 (fax)
> > +2782 338 2080 (mobile)
>
> Hello, Michael;
> I hope you know what you are trying to do, for this might compromise
> security at
> your site.
> For instance, add the following to your rc.local startup file (not sure
> which
> platform you are running NV on):
>
> /usr/bin/su - <userid> -c "nvauth -login <nv_userid> <nv_groupid> \
> <password>; netview&"
>
> This assumes you have security turned on and NV daemons running. Also,
> the
> user
> environment must be set in the .profile file. Otherwise, use full paths
> to
> the
> binaries.
> For password, better not to enter it in the script but rather read it
> from a
> file (readable only by its owner) through
> $(/usr/bin/cat <password_file>)
> or redirect STDIN from the file.
>
> You can set the map to open through the netview command or let the
> default
> map
> for that user show up. See manual for netview and su for options. :-)
>
> HTH,
> Best regards,
> Vladimir.
>
> --
> ------------------------------------------------------------------------
> ----
> --
> "The lyf so short, the craft so long to lerne." Chaucer.

Hello, Mike;
As far as I know rc.local is not created by OS installation. It is created
later
if there is a need to start some processes at boot time (it can be named
howsoever you want). Ususally, it's placed in /etc. After you have this
script,
you must modify /etc/inittab to execute it.

However, as I realized later, there must be a user logged in to the box in
order
for ovw to start up. Otherwise, there will be dtlogin window and ovw will
have
no display and no environment. And as you know, Unix does not read password
from
redirected STDIN.

So the simplest way is to add that command I mentioned in the previous
posting
to the selected user's .kshrc/.profile file so that when this particular
user
logs in the command will be executed and ovw shows up the map you desire.
If you
want this user to be root, add the command to his/her $HOME/.kshrc. You can
run
the netview command under any userid you want by means of su.

Hope this helps,
Best regards,
Vladimir.
--
---------------------------------------------------------------------------
---
"The lyf so short, the craft so long to lerne." Chaucer.

<Prev in Thread] Current Thread [Next in Thread>