nv-l

RE: [nv-l] Updating Gui items on the map - still struggling

2005-02-22 21:11:28
Subject: RE: [nv-l] Updating Gui items on the map - still struggling
From: "Ray Westphal" <westphal2002 AT charter DOT net>
To: <nv-l AT lists.us.ibm DOT com>
Date: Tue, 22 Feb 2005 20:10:54 -0600
Hello Vynita,
 
Here is how I handled the ID issues. I open an xterm window and present the user with a menu. Option #1 is to use their NetView ID, ${USER}. Option #2 is to let them enter the user ID.
 
I'm not much of a programmer. I'm sure you can improve on this.
 
Let me know what you think.
 
Have Fun!
Ray Westphal
Enterprise Rent-A-Car
 
#!/bin/ksh
#
#######################################################
/usr/bin/clear
 
select=""
secure=""
 
echo "          Your NetView user ID is ${USER}."
echo "                 Make a selection"
print '                                                 '
print '                  1. Use NetView ID              '
print '                  2. Enter SECURE ID             '
print '                                                 '
print '                                                 '
print -n '                   Selection:  '
    read select
if [ ${select} = "1" ]
then
/usr/bin/ssh -1
${USER}@${OVwSelection1}
else

   if [ ${select} = "2" ]
   then
   /usr/bin/clear
   print '\n              SECURE ID is case-sensitive '
   print '               Enter your SECURE ID:\n'
   print -n ' --->  '
   read secure

      if [[ ${secure} != "" ]]
      then
      /usr/bin/ssh -1
${secure}@${OVwSelection1}
      else
      print '           Invalid entry ..... Exiting.'
      sleep 1
      exit
      fi
   fi
fi
-----Original Message-----
From: owner-nv-l AT lists.us.ibm DOT com [mailto:owner-nv-l AT lists.us.ibm DOT com]On Behalf Of Pretorius, Vynita
Sent: Tuesday, February 22, 2005 10:19 AM
To: nv-l AT lists.us.ibm DOT com
Subject: RE: [nv-l] Updating Gui items on the map - still struggling

hi all
 
Thanks to Ray and James for getting back to me, but I am having problems. I amended the NNM...rsam file and the menu has been update however nothing happens. looking at the rsam file it ssh is being passed the nodename i.e router1 so I am trying to execute ssh router1. What I need to run is ssh [email protected] i.e. ssh [email protected].
 
I have a couple of issues 
   1) the map name is test
    2) my aix logon is ee12345
    3) the map is started using ee12345
 
So how do I pass these parameters on.
I tried the following but it did not work
 
    /* action to invok telnet aixterm  */
    Action 'sshremote' {
        MinSelected     1;
        MaxSelected     1;
        SelectionRule   ( isNode ) ;
        NameField       'IP Hostname', 'IP Address', 'Selection Name';
        Command         '${xterm:-/usr/bin/ovwRunXterm /usr/bin/X11/xterm} -T \"SSH (xter
m) to ${OVwSelection1}\" -name \"XNmterm\"  -xrm \"XNmterm*iconName: ${OVwSelection1}\" -
e /usr/bin/ssh
[email protected]  >/dev/null 2>&1';
  
Thanks
Vynita

From: owner-nv-l AT lists.us.ibm DOT com [mailto:owner-nv-l AT lists.us.ibm DOT com] On Behalf Of Ray Westphal
Sent: 18 February 2005 4:49
To: nv-l AT lists.us.ibm DOT com
Subject: RE: [nv-l] Updating Gui items on the map

Vynita,
Search the archives for a recent article by Mark F Sklenarik. It has was entitled c_arf2srf. Mark actually provided the code necessary. If you are using NV security then it will require some more work.
 
Have fun!
 
Ray Westphal
Enterprise Rent-A-Car
-----Original Message-----
From: owner-nv-l AT lists.us.ibm DOT com [mailto:owner-nv-l AT lists.us.ibm DOT com]On Behalf Of Pretorius, Vynita
Sent: Friday, February 18, 2005 2:22 AM
To: nv-l AT lists.tivoli DOT com
Subject: [nv-l] Updating Gui items on the map

Hi all

I am running Netview on AIX ver 7.1.2
At present the operators select a router off the map, right click, select administer, select telnet xterm and they can get into the router. However now due to security precautions telent has been switched off and they have to ssh to the router, and they want to do this from the map like they are used to. Can it be done? And how do I set it up?

Waiting in anticipation.

Thanks
Vynita
082 856 0321

___________________________________________

The views expressed in this email are, unless otherwise stated, those of the author and not those
of the FirstRand Banking Group an Authorised Financial Service Provider or its management.
The information in this e-mail is confidential and is intended solely for the addressee.
Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or any action taken or
omitted in reliance on this, is prohibited and may be unlawful.
Whilst all reasonable steps are taken to ensure the accuracy and integrity of information and data
transmitted electronically and to preserve the confidentiality thereof, no liability or
responsibility whatsoever is accepted if information or data is, for whatever reason, corrupted
or does not reach its intended destination.

__________________________________


___________________________________________

The views expressed in this email are, unless otherwise stated, those of the author and not those
of the FirstRand Banking Group an Authorised Financial Service Provider or its management.
The information in this e-mail is confidential and is intended solely for the addressee.
Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or any action taken or
omitted in reliance on this, is prohibited and may be unlawful.
Whilst all reasonable steps are taken to ensure the accuracy and integrity of information and data
transmitted electronically and to preserve the confidentiality thereof, no liability or
responsibility whatsoever is accepted if information or data is, for whatever reason, corrupted
or does not reach its intended destination.

__________________________________


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