+ All Categories
Home > Documents > Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis [email protected].

Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis [email protected].

Date post: 04-Jan-2016
Category:
Upload: diana-hunt
View: 215 times
Download: 0 times
Share this document with a friend
Popular Tags:
60
Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis [email protected]
Transcript
Page 1: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Managing SX.e and TWL with MARC and Scripts

Jeremiah [email protected]

Page 2: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Manager’s Administrative Resource Controller - MARC

• MARC is a tool that is used to assist our customers and our support personnel to manage our product environments in a Unix environment

• MARC is an application written in the Progress 4GL language

• It is a character-based application and has its own database called MARC (surprised?)

Page 3: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

First, A Quick Review

• What is Progress and how does it relate to SX.enterprise?

• How is a Progress database managed?

• What operations need to be performed on a NxTrend product database?

Page 4: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Starting MARC• MARC is started from the Unix command line

– Usually, all that is needed is to type marc

• Often, there will also be other MARC applications on your system– TWL will have its own MARC and it is started using

the twlmarc command– A test environment will have its own MARC and is

usually started with testmarc

• All these MARCs are typically the same version, though they don’t have to be.

• However, they will all function basically the same• Parameters that are in MARC vary depending on

the product it is managing.

Page 5: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The Main Menu

• The main menu in MARC contains the following items:– Databases

– Installation

– Backup

– System

– Communications

– Logs

– Exit

Page 6: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.
Page 7: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The Database Menu

• The database menu contains items for managing your database and related processes– Starting and stopping your database– Starting and stopping your application

brokers– Creating dump and load scripts– Application broker and TWL compiles are

located here as well

Page 8: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.
Page 9: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Start and Stop Database Severs

Page 10: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Start and Stop Application Brokers

Page 11: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Databases->Cofigure->Generate Scripts

•Select the database for the scripts to include

Page 12: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Select the Scripts to Generate

Page 13: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The Installation Menu

• The installation menu performs installation and configure functions

• The environment information is entered here such as file locations

• This menu also contains functions to compile and library SX.enterprise

Page 14: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.
Page 15: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Installations->Configure

Page 16: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Installations->Utilities

Page 17: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Installation Programs

Page 18: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The Backup Menu

• The only item on this menu is a function for configuring backup scripts

Page 19: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.
Page 20: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Backup Script Options

Page 21: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The System Menu

• The system menu has other functions

• One set is for administrating the admin server

• There are also functions for Clippership and Taxware

Page 22: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.
Page 23: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Admin Server Start and Stop

Page 24: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The Logs Menu

• The logs menu is where you can view logs from various MARC functions

• Most of these are related to the installation process such as when the product was installed or a code compile

Page 25: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.
Page 26: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Viewing Specific Logs

Page 27: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

MARC Generated Scripts

• NxTrend has a standard set of scripts used for Unix environment management

• All these scripts are generated from MARC which customizes the standard scripts to account for your local environment

Page 28: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The Progress Admin Server

• These scripts help manage the Progress Admin and Name Serversadmin.start

admin.shut

admin.query

nameserver.query

Page 29: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The Database• These scripts help manage the database

brokersdbbroker.startdbbroker.shutdbbroker.query

• These are database utilitiesdbstatstruncate.bi

Page 30: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The Application Broker

• These scripts help manage the Progress Application Brokersappbroker.start

appbroker.shut

appbroker.query

Page 31: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Parameter Files• The following are a new set of parameter

files for client connectionsclient.pf admuser.pfeditor.pf auditmgruser.pfbatch.pf cluser.pfsingleuser.pf rptmgruser.pfconnect.pf

Page 32: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The Environment

• These scripts help manage this particular environmentnxt.env

nxtall.start

nxtall.shut

Page 33: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Enterprise

• To start SX.enterprise, now use sxesxe

sxee

Page 34: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The Report Manager

• These are the Report Manager scriptsrptmgr.start

rptmgr.shut

Page 35: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Binary Dump and Load

• These scripts are for Dump and Loadseasybd sareabd

bddriver.p sareabddriver.p

bddumpall.p bddumparea.p

bdloadall.p bdloadarea.p

bdscript.p sareabdscript.p

Page 36: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

After Imaging

• These scripts are for AIaimage.start

aimage.shut

aimage.backedup

aimage.list

aimage.archive

aimage.new

aistats

rollforward.ai

truncate.ai

Page 37: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Backups

• These are new standard backup scriptsbackup.data

backup.full

backup.online

Page 38: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

RxServer

• RxServer scripts are now generated by MARCrxsfax.sh

rxsprint.sh

emailout.sh

Page 39: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Other Scripts

• These don’t fit anywhere elserdclean

sassi.sh

shutuser

showuser

config_rpt

Page 40: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

TWL

• TWL adds more scripts specific to that product

• Some TWL scripts are vital for the product to carry out some functions such as:– Transfer of orders to and from SX.enterprise– End Of Day processing

Page 41: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

TWL RF Units

• These scripts are used to start the TWL application on RF unitstwlrf

twlentrf

twlentrf.pf

Page 42: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Additional TWL Environment

• Since TWL integrates with SX.enterprise, an additional environment is available using:twlsecondary.env

Page 43: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

TWL End of Day• These scripts are used to run TWL End of Day

processing. These are usually called from the backup scripts

• The first script performs processing that requires a single-user connection to the DB while the second performs tasks using a normal multi-user connection to the DB

twleod1

twleod2

Page 44: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

TWL Interfaces

• The following scripts are used to manage the TWL interfacestwlsend.start twlrcvpack.sh

twlsend.sh twlrcv.sh

twlsend.shut twlrcv.shut

twlsend.query twlrcv.query

twlrcvprint.sh

Page 45: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The Templates

• MARC generates scripts using templates• These templates contain a framework of the

script• Dynamic portions of the script are filled in

by MARC to create the final script• MARC fills in the local information based

on what is stored in the MARC database and user input

Page 46: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

MARC Generate Scripts• MARC

• Databases -> Configure -> Generate Scripts

• Select the database(s) to generate scripts for

• Select the scripts to generate

Page 47: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Script Template• All scripts generated by MARC are

stored as templates

• These templates contain the form of the final script

• Critical portions of a template contain tags

• These tags get substituted with real values to generate a script

Page 48: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

MARC Generated Scripts• All of the templates reside in

subdirectories under /rd/marc/scripts/template

• All templates must end with a .tpl• These subdirectories are:

basedghpibmsco intchantaxwaretwl

Page 49: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

• All of the templates in base are added to the list• One system directory is included based on the

selected machine type in Installations -> Configure (e.g. ibm)

• If optional products are setup in MARC, then those templates are also included in the list (e.g. twl)

• The custom directory is always checked first and overrides a standard template of the same name

MARC Generated Scripts

Page 50: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

• Script templates may also be in /rd/marc/scripts/cust in the same subdirectories

• Copy the template from the directory under /rd/marc/scripts/template

Custom Scripts

Page 51: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Template Tags

• There are two types of template tags– System tags (defined by MARC)– Custom tags (defined by the user)

• Tags are names enclosed in ‘< >’– Example: <ENVNAME>

• The convention is to use tag names that are all capital letters

Page 52: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

System Tags

• System tags are defined during the installation of MARC

• System tags contain values that MARC can get from the information in its own database

• System Tags can not be edited directly with the tag editor

Page 53: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Custom Tags• Users may use the Tag Editor to create and edit

tags.• Custom tags are created by users or may be in

some delivered scripts (e.g. rxsprint.sh)• Values for the tags can be assigned in two ways:

– By answering the prompt when MARC finds an undefined tag

– By using the tag editor in Databases -> Configure -> Tag Editor

Page 54: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

The Tag Editor

• The tag editor allows the user to:– Create new custom tags– Modify existing custom tags– Delete custom tags

Page 55: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Example Template• Here is a simple template

<PERMISSIONS=“755”><SCRIPTNAME=ENV”helloworld.sh”><DESTDIR=BIN>echo “Hello, world!”

• Top three lines are reserved for formatting• PERMISSIONS is what permissions the script will

have• SCRIPTNAME is what the script will be called• DESTDIR tells where the script will get created

Page 56: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Script Naming

<SCRIPTNAME=ENV”helloworld.sh”>

• All scripts should be prefaced with the environment name

• Use ENV before the script name to substitute in the environment name in the MARC that is generating the script

Page 57: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Destinations

<DESTDIR=BIN>

• The destination directory can be a path• The destination can be one of these predefined

directoriesBIN

OPSYS

RD

EXEC

Page 58: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Building A Script• Here is a simple template

“helloworld.sh.tpl”

<SCRIPTNAME=ENV”helloworld.sh”>

<DESTDIR=BIN”/ses27”>

echo “Hello, world!”

• Should be created in the ../cust/base directory

• Generating script to /rd/bin/ses27

Page 59: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Script Templates - Summary• All scripts will be generated by MARC and

are stored as templates

• Should no longer hand edit scripts

• Script issues will begin by regenerating all scripts

• New scripts are easily added and existing ones easily updated

Page 60: Managing SX.e and TWL with MARC and Scripts Jeremiah Curtis Jcurtis@nxtrend.com.

Questions

?

?

?

?

?

?

?

?

?

?

?

?


Recommended