[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

4362.0. "launching Expanded View and Ring View from DECmcc" by KAJUN::NELSON () Fri Jan 08 1993 14:11

The following replies indicate the mechanism for launching the Synoptics
Expanded View and Ring View applications from DECmcc.  The mechanisms
are different for V1.2 and V1.3 of DECmcc.  Both mechanisms are included
here. 

You will note that the "application buttons" for the Synoptics
applications are put in the `Operations' pulldown menu, as opposed to
the `Applications' pulldown menu, as was HUBwatch.  This was done merely
to illustrate the different capabilities of the launch mechanism. 


T.RTitleUserPersonal
Name
DateLines
4362.1launch Expanded View from DECmcc V1.2KAJUN::NELSONFri Jan 08 1993 14:17182
DECmcc V1.2 has the ability to launch loosely coupled applications from
it's iconic map interface.  These applications appear as pushbutton
entries in the "Applications" pulldown menu or as operations in the
"Operations" pulldown menu.  The DECmcc Iconic Map can pass information
to the launched application via a datafile.  The datafile, produced in
the user's current directory, contains the following DECmcc map window
context information:  domain, map file name, and all selected entities. 
Once the application is launched, it is independent of DECmcc V1.2. 

To launch Synoptics Expanded View  application, the user MUST define the
environment variable LNMSHOME in the window from which the DECmcc Iconic
Map is invoked to point to the top_level directory in which the Expanded 
View software has been defined.  In further example, I will assume the
HUBwatch top_level directory is /usr/mcc/synop. 

The user can add the Lattis View application to their DECmcc map 
window by modifying their private mcc_resource.dat file as follows.

(1)  First, "mcc_pml.applications:" is a list of application names,
     separated by comma, that shall be added to the Applications
     pulldown menu.  Add "ExpandedView" to the list. 

	(ex.) mcc_pml.applications:  DECmcc FCL, ExpandedView

(2)  Add the following line, verbatum, to the mcc_resource.dat file.

mcc_pml.applications.DEC ExpandedView:/usr/mcc/synop/mcc_synoptics_ev.csh <DF> 


More information regarding launching applications through DECmcc V1.2
can be obtained in the DECmcc V1.2 Use Manual. 

The C-Shell script, mcc_synoptics_ev.csh, receives the launched
application datafile and extracts the list of selected SNMP entities. 
From this list, the script determines the read and write community
strings and then invokes the HUBwatch application. 

The script reads a community string file 
	LNMSHOME/decmcc_ema.1x/community
If the file does not exist, the script prompts the user for the 
information and creates a new file.

The format of the file is:

	ip read_community_string write_community_string

If this file is not writtable to the user invoking the application, the
launch shall fail.  The user must have write authority on the file.

The following script file has been tested and shown to work.  We supply 
it for your convenience, but it is unsupported.


#!/bin/csh 
#
#	mcc_synoptics_ev.csh
#
# Digital Equipment Corporation, 1992.
#
# Software Product Group
# Open Network Systems Engineering 
# Network Management Systems
#
# Description:
#
#  This is C-Shell script to invoke the Synoptics Expanded View for all
#  selected entities on a DECmcc Iconical Map.
#
# Parameters:
#
#   $1 is the name of the Launch Application Datafile
#
# Dependencies:
#   Synoptics Expanded View Environment variable LNMSHOME points to Synoptics 
#    Expanded View's top_level directory.
#
#
# Set up some variables.
#
@ DELAY = 20
set LNMS_DIR = `printenv LNMSHOME`
if ($LNMS_DIR == "") then
   echo "Synoptics Expanded View Application invokation requires"
   echo " LNMSHOME to point to Synoptics Expanded View top_level directory."
   sleep $DELAY
   exit 1
endif
#
# File containing IP community strings.
#  Format:  IP_address read_community write_community
#
set COMMUNITY_FILE = $LNMS_DIR/decmcc_ema.1x/community
#
# Get application launch datafile from DECmcc
#
set DATAFILE = $1
if ($DATAFILE == "") then
   echo "No datafile passed.  Exiting"
   sleep $DELAY
   exit 1
endif
#
# Get list of selected SNMP entities from launch application datafile.
#
set IPs = `cat $DATAFILE | awk '$1 == "SENTITY:" && $2 == "SNMP" {print $6}'`
set Hosts = `cat $DATAFILE | awk '$1 == "SENTITY:" && $2 == "SNMP" {print $8}'`
#
# If there are NO selected SNMP entities, exit.
#
if ($#IPs == 0) then
   echo "NO SNMP Entities were selected.  Exiting."
   sleep $DELAY
   exit 0
endif
#
@ i = 0
#
# Start up Expanded View for each selected SNMP entity.
#
foreach ip ($IPs)
#
   set host = ($Hosts)
   @ i++
#
#  Get community string for read and write for each IP.
#   If community file does NOT exist, prompt user for
#    information and write it to new file.
  set read_comm = `grep $ip $COMMUNITY_FILE | awk '{print $2}'`
  set write_comm = `grep $ip $COMMUNITY_FILE | awk '{print $3}'`
#
# If EITHER are not found then MUST ask user to enter manually.
#  Because we just don't know for sure which one was mistakenly
#  removed from the file.
#
  while ($read_comm == "")
    echo -n "ENTER read community string for SNMP entity ($ip): "
    set read_comm = $<
  end
#
  if ($write_comm == "") then 
     echo -n "ENTER write community string for SNMP entity ($ip) [unknown]: "
     set ans = $<
     if ($ans != "") set write_comm = $ans
  endif  
#
  grep $ip $COMMUNITY_FILE >> /dev/null
  if ($status == 1) then
     echo "$ip $read_comm $write_comm" >> $COMMUNITY_FILE
  endif       
#
# Invoke Synoptics Expanded View depending on availability of write community string.
#  Inform user that when write_community is found in $COMMUNITY_FILE, application
#  will be invoked with write permissions.
#
  if ($write_comm == "") then
     echo "Synoptics Expanded View invoked for SNMP entity $ip read-only."
     echo "  If read-write required, edit $COMMUNITY_FILE and ensure entry states "
     echo "    ip_address read_community write_community."
     echo ""
     $LNMS_DIR/bin/ev -H $host -I $ip -R $read_comm -P $LNMS_DIR &
  else 
    $LNMS_DIR/bin/ev -H $host -I $ip -R $read_comm -W $write_comm -P $LNMS_DIR &
  endif
end

sleep $DELAY

exit





 








4362.2launch Ring View from DECmcc V1.2KAJUN::NELSONFri Jan 08 1993 14:17181
DECmcc V1.2 has the ability to launch loosely coupled applications from
it's iconic map interface.  These applications appear as pushbutton
entries in the "Applications" pulldown menu or as operations in the
"Operations" pulldown menu.  The DECmcc Iconic Map can pass information
to the launched application via a datafile.  The datafile, produced in
the user's current directory, contains the following DECmcc map window
context information:  domain, map file name, and all selected entities. 
Once the application is launched, it is independent of DECmcc V1.2. 

To launch Synoptics Ring View  application, the user MUST define the
environment variable LNMSHOME in the window from which the DECmcc Iconic
Map is invoked to point to the top_level directory in which the Ring 
View software has been defined.  In further example, I will assume the
HUBwatch top_level directory is /usr/mcc/synop. 

The user can add the Lattis View application to their DECmcc map 
window by modifying their private mcc_resource.dat file as follows.

(1)  First, "mcc_pml.applications:" is a list of application names,
     separated by comma, that shall be added to the Applications
     pulldown menu.  Add "RingView" to the list. 

	(ex.) mcc_pml.applications:  DECmcc FCL, RingView

(2)  Add the following line, verbatum, to the mcc_resource.dat file.

mcc_pml.applications.DEC RingView:/usr/mcc/synop/mcc_synoptics_rv.csh <DF> 


More information regarding launching applications through DECmcc V1.2
can be obtained in the DECmcc V1.2 Use Manual. 

The C-Shell script, mcc_synoptics_ev.csh, receives the launched
application datafile and extracts the list of selected SNMP entities. 
From this list, the script determines the read and write community
strings and then invokes the HUBwatch application. 

The script reads a community string file 
	LNMSHOME/decmcc_ema.1x/community
If the file does not exist, the script prompts the user for the 
information and creates a new file.

The format of the file is:

	ip read_community_string write_community_string

If this file is not writtable to the user invoking the application, the
launch shall fail.  The user must have write authority on the file.

The following script file has been tested and shown to work.  We supply 
it for your convenience, but it is unsupported.


#!/bin/csh 
#
#	mcc_synopticsi_rv.csh
#
# Digital Equipment Corporation, 1992.
#
# Software Product Group
# Open Network Systems Engineering 
# Network Management Systems
#
# Description:
#
#  This is C-Shell script to invoke the Synoptics Ring View for all
#  selected entities on a DECmcc Iconical Map.
#
# Parameters:
#
#   $1 is the name of the Launch Application Datafile
#
# Dependencies:
#   Synoptics Ring View Environment variable LNMSHOME points to Synoptics 
#    Ring View's top_level directory.
#
#
# Set up some variables.
#
@ DELAY = 20
set LNMS_DIR = `printenv LNMSHOME`
if ($LNMS_DIR == "") then
   echo "Synoptics Ring View Application invokation requires"
   echo " LNMSHOME to point to Synoptics Ring View top_level directory."
   sleep $DELAY
   exit 1
endif
#
# File containing IP community strings.
#  Format:  IP_address read_community write_community
#
set COMMUNITY_FILE = $LNMS_DIR/decmcc_ema.1x/community
#
# Get application launch datafile from DECmcc
#
set DATAFILE = $1
if ($DATAFILE == "") then
   echo "No datafile passed.  Exiting"
   sleep $DELAY
   exit 1
endif
#
# Get list of selected SNMP entities from launch application datafile.
#
set IPs = `cat $DATAFILE | awk '$1 == "SENTITY:" && $2 == "SNMP" {print $6}'`
set Hosts = `cat $DATAFILE | awk '$1 == "SENTITY:" && $2 == "SNMP" {print $8}'`
#
# If there are NO selected SNMP entities, exit.
#
if ($#IPs == 0) then
   echo "NO SNMP Entities were selected.  Exiting."
   sleep $DELAY
   exit 0
endif
#
@ i = 0
#
# Start up Ring View for each selected SNMP entity.
#
foreach ip ($IPs)
#
   set host = ($Hosts)
   @ i++
#
#  Get community string for read and write for each IP.
#   If community file does NOT exist, prompt user for
#    information and write it to new file.
  set read_comm = `grep $ip $COMMUNITY_FILE | awk '{print $2}'`
  set write_comm = `grep $ip $COMMUNITY_FILE | awk '{print $3}'`
#
# If EITHER are not found then MUST ask user to enter manually.
#  Because we just don't know for sure which one was mistakenly
#  removed from the file.
#
  while ($read_comm == "")
    echo -n "ENTER read community string for SNMP entity ($ip): "
    set read_comm = $<
  end
#
  if ($write_comm == "") then 
     echo -n "ENTER write community string for SNMP entity ($ip) [unknown]: "
     set ans = $<
     if ($ans != "") set write_comm = $ans
  endif  
#
  grep $ip $COMMUNITY_FILE >> /dev/null
  if ($status == 1) then
     echo "$ip $read_comm $write_comm" >> $COMMUNITY_FILE
  endif       
#
# Invoke Synoptics Ring View depending on availability of write community string.
#  Inform user that when write_community is found in $COMMUNITY_FILE, application
#  will be invoked with write permissions.
#
  if ($write_comm == "") then
     echo "Synoptics Ring View invoked for SNMP entity $ip read-only."
     echo "  If read-write required, edit $COMMUNITY_FILE and ensure entry states "
     echo "    ip_address read_community write_community."
     echo ""
     $LNMS_DIR/bin/rv_tr -H $host -I $ip -R $read_comm -P $LNMS_DIR &
  else 
    $LNMS_DIR/bin/rv_tr -H $host -I $ip -R $read_comm -W $write_comm -P $LNMS_DIR &
  endif
end

sleep $DELAY

exit





 







4362.3launch Lattis View from DECmcc V1.3KAJUN::NELSONFri Jan 08 1993 14:1868
The DECmcc T1.3/V1.3 Application Launch facility enables a user to easily 
integrate applications into the Iconic Map window.  Using the launch 
mechanism, the user can specify that the application be associated with 
a single user, a group of users, or with an entire system.

At start up, DECmcc T1.3/V1.3 checks both a user and a system directory 
to identify any Application Interface Definition files to be 
incorporated into the Map window.  The Application Interface Definition 
file names must have the following format:

	mcc_appl_<appl_name>.def  

where <appl_name> is unique.

Place the Application Interface Definition File in one of the default 
directories or in a directory specified by the user.  The default 
system directories are

	MCC_SYSTEM		<---   VMS
	/usr/mcc/mcc_system     <---   ULTRIX

The user may specify a different system directory for the Application 
Interface Definition Files by using the MCC_APPL_SYS_LOCATION
environmental variable or logical name. 

To make the application local to a user or group of users, the default 
directies are

	SYS$LOGIN:              <---   VMS
	~/                      <---   ULTRIX

The user may specify a different local directory for the Application 
Interface Definition Files by using the MCC_APPL_USER_LOCATION 
environmental variable or logical name.

A user can launch Synoptics Lattis View application from DECMcc V1.3 by
placing the definition file supplied here in the correct directory.  The
following definition file has been tested and shown to work.  We supply
it for your convenience, but it is unsupported. 


#
# 	Synoptics Lattis View Launch Application Interface Definition
#		File for Digital's Network Management Platforms.
#
#   Date:  13-October-1992
#
#
DEL_KEY:  *
Menu:  Operations
  Submenu:  Synoptics HUB Mgt
	Button:  Expanded View
	  applies_to:  snmp
	  binary:  $LNMSHOME/bin/ev
	  argument:  -H <InternetName> -I <InternetAddress> 
	  argument:  *-R <SNMPrdCommunity>* *-W <SNMPwrCommunity>*
	  argument:  -P $LNMSHOME
	  env_type:  WINDOW
	Button:  Ring View
	  applies_to:  snmp
	  binary:  $LNMSHOME/bin/rv_tr
	  argument:  -H <InternetName> -I <InternetAddress> 
	  argument:  *-R <SNMPrdCommunity>* *-W <SNMPwrCommunity>*
	  argument:  -P $LNMSHOME
	  env_type:  WINDOW
  Endsubmenu:
Endmenu:
		 
4362.4status of sysnoptics applicationANNECY::HAGENMULLEREIC Annecy - dtn 7887.41.99Mon Feb 15 1993 08:1112
Hello,

Is it possible to get an updated status on this sysnoptics application :

	- is it available (no longer in field test) ?

	- who is selling it ? (area of interest = europe)

	- who is supporting it ?

thanks in advance, 
Christophe