Avaya Writing Technician Interface Scripts Manual de usuario

Busca en linea o descarga Manual de usuario para Software Avaya Writing Technician Interface Scripts. Avaya Writing Technician Interface Scripts User's Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 116
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
BayRS Version 14.00
Part No. 308660-14.00 Rev 00
September 1999
4401 Great America Parkway
Santa Clara, CA 95054
Writing Technician Interface
Scripts
Vista de pagina 0
1 2 3 4 5 6 ... 115 116

Indice de contenidos

Pagina 1 - Writing Technician Interface

BayRS Version 14.00Part No. 308660-14.00 Rev 00September 19994401 Great America ParkwaySanta Clara, CA 95054Writing Technician Interface Scripts

Pagina 3

Writing Technician Interface ScriptsA-26308660-14.00 Rev 00:FI_PORT_LP:on error :FI_PORT_NXT:if $i > $list_0 then; goto :FOOTER_AND_END:printf “%4d

Pagina 4

Sample Scripts308660-14.00 Rev 00A-27 ################################################################## Sample screen (samples parameters twice, pri

Pagina 5 - Contents

Writing Technician Interface ScriptsA-28308660-14.00 Rev 00:FI_SAMP_CKVAL:if $period <= 0 then; \echo “Period of $period seconds is too low.” ; \go

Pagina 6

Sample Scripts308660-14.00 Rev 00A-29 :FI_SAMP1_LP:on error :FI_SAMP1_SKP:if $i > $list_0 then; goto :FI_SAMP_WT:if “$matchcct” = “” then ; goto :F

Pagina 7

Writing Technician Interface ScriptsA-30308660-14.00 Rev 00if -ic “$matchcct” != “$cctname” then; goto :FI_SAMP2_SKP::FI_SAMP2_NOW:let match_entries =

Pagina 8

Sample Scripts308660-14.00 Rev 00A-31 :FI_SAMP_MATCH:on error :FI_NEXT_TRY:if ${s1instid_[$i]} != ${s2instid_[$j]} then; goto :FI_NEXT_TRY:if $j = $jl

Pagina 9

Writing Technician Interface ScriptsA-32308660-14.00 Rev 00:FI_HWF:setenv RUN_SILENT 1on error :FI_HANDLER:run hwfilter show fddigoto :FI_END::FI_HAND

Pagina 10

Sample Scripts308660-14.00 Rev 00A-33 ## Enable circuit...#:FI_ENBLC:if $# != 3 then ; goto :FI_HELP_ENBL:instenv list_ wfFddiEntryif $list_0 = 0 then

Pagina 11 - Before You Begin

Writing Technician Interface ScriptsA-34308660-14.00 Rev 00:FI_ENBLI:if $# != 3 then ; goto :FI_HELP_ENBL:# Sanity check <slot.connector> parame

Pagina 12 - Text Conventions

Sample Scripts308660-14.00 Rev 00A-35 ## Gosubs shared by enable and disable...#:ERR_MSG1:cutenv -c $invalch ugly_ “$3”echo “Inappropriate character &

Pagina 13 - Set Trap Monitor Filters

308660-14.00 Rev 00xi PrefaceThis guide describes how to create and edit Technician Interface scripts. It is intended for network administrators with

Pagina 14 - Hard-Copy Technical Manuals

Writing Technician Interface ScriptsA-36308660-14.00 Rev 00## Disable circuit...#:FI_DSBLC:if $# != 3 then ; goto :FI_HELP_DSBL:instenv list_ wfFddiEn

Pagina 15 - How to Get Help

Sample Scripts308660-14.00 Rev 00A-37 :FI_DSBLI:if $# != 3 then ; goto :FI_HELP_DSBL:# Sanity check <slot.connector> parameter...if “$ver” <

Pagina 16

Writing Technician Interface ScriptsA-38308660-14.00 Rev 00################################################################## Version command#########

Pagina 17 - Creating a Script File

308660-14.00 Rev 00Index-1Symbols#, inserting comments using, 1-13$, referencing variable using, 1-2Aacronyms, xivarrayenv command, 1-10, 2-3arrays, 1

Pagina 18 - About Variables

Index-2308660-14.00 Rev 00gosub command, 1-11, 2-10goto command, 1-11, 2-11Iif command, 1-11, 2-12 to 2-15instenv command, 1-9, 2-16Llet command, 1-10

Pagina 19

308660-14.00 Rev 00Index-3timeout values, setting, 1-5transferring script files, 1-1true variable array, 1-8Uunsetenv command, 1-10, 2-42Vvariable arr

Pagina 21 - Prompting for Input

Writing Technician Interface Scriptsxii308660-14.00 Rev 00Text ConventionsThis guide uses the following text conventions:angle brackets (< >) In

Pagina 22 - Accessing MIB Information

Preface308660-14.00 Rev 00xiii italic text Indicates file and directory names, new terms, book titles, and variables in command syntax descriptions. W

Pagina 23 - Formatting a MIB Entry

Writing Technician Interface Scriptsxiv308660-14.00 Rev 00AcronymsThis guide uses the following acronyms:Related PublicationsHard-Copy Technical Manua

Pagina 24 - Creating and Using Variables

Preface308660-14.00 Rev 00xv How to Get HelpIf you purchased a service contract for your Nortel Networks® product from a distributor or authorized res

Pagina 26 - Deleting Variables

308660-14.00 Rev 001-1 Chapter 1Creating a Script FileThe Technician Interface script facility allows you to read and execute Technician Interface com

Pagina 27 - Controlling Program Flow

Writing Technician Interface Scripts1-2308660-14.00 Rev 00• Writing messages to the console, using the echo and the printf commands• Recording console

Pagina 28 - Performing Error Recovery

Creating a Script File308660-14.00 Rev 001-3 To prevent a variable from being expanded, enter two dollar signs ($$) before the variable name, as shown

Pagina 29 - Debugging a Script File

ii308660-14.00 Rev 00 Copyright © 1999 Nortel NetworksAll rights reserved. Printed in the USA. September 1999.The information in this document is subj

Pagina 30 - Creating Menus

Writing Technician Interface Scripts1-4308660-14.00 Rev 00Local, Global, and System VariablesWhen you first define a variable, the computer stores it

Pagina 31 - Command Reference

Creating a Script File308660-14.00 Rev 001-5 Prompting for InputThe input prompt variable allows you to create a prompt that accepts user input from t

Pagina 32 - Table 2-1. Script Commands

Writing Technician Interface Scripts1-6308660-14.00 Rev 00In the following script, if the user does not press Return before the time specified for SYS

Pagina 33

Creating a Script File308660-14.00 Rev 001-7 The variable values <object>, <attribute>, and <instance> are defined as follows:<ob

Pagina 34

Writing Technician Interface Scripts1-8308660-14.00 Rev 00Defining a Pseudo-Variable ArrayThe Technician Interface script facility allows you to defin

Pagina 35 - <text_string>

Creating a Script File308660-14.00 Rev 001-9 If you access the Technician Interface via Telnet, the Technician Interface also displays the variables i

Pagina 36 - <variable_name>

Writing Technician Interface Scripts1-10308660-14.00 Rev 00• To convert and format text, and save the result in a specified variable for later use, us

Pagina 37

Creating a Script File308660-14.00 Rev 001-11 Setting the Current Volume or DirectoryWhen you set the current working volume or directory using the cd

Pagina 38

Writing Technician Interface Scripts1-12308660-14.00 Rev 00Writing Messages to the ConsoleThe Technician Interface provides two commands to display me

Pagina 39

Creating a Script File308660-14.00 Rev 001-13 Inserting CommentsYou can insert comments into the script file. Comments begin with a pound sign (#) in

Pagina 40 - <subroutine_name>

308660-14.00 Rev 00iiiNortel Networks NA Inc. Software License AgreementNOTICE: Please carefully read this license agreement before copying or using t

Pagina 41 - Examples

Writing Technician Interface Scripts1-14308660-14.00 Rev 00Running a Script FileTo read and execute the commands in a Technician Interface script file

Pagina 42

308660-14.00 Rev 002-1 Chapter 2Command ReferenceIn the following pages you can find the function, syntax, and examples of all the script commands you

Pagina 43 - Example 1

Writing Technician Interface Scripts2-2308660-14.00 Rev 00on errorSpecifies an error handler label within a script filepauseSuspends the Technician In

Pagina 44 - Example 4

Command Reference308660-14.00 Rev 002-3 arrayenv The arrayenv command allows you to write a list of command line arguments <text_string> to a ps

Pagina 45 - Example 7

Writing Technician Interface Scripts2-4308660-14.00 Rev 00cutenv The cutenv command allows you to select portions of a <text_string> (as specifi

Pagina 46

Command Reference308660-14.00 Rev 002-5 <text_string> with no field delimiters is normally passed through in its entirety.ExampleThe following s

Pagina 47 - command

Writing Technician Interface Scripts2-6308660-14.00 Rev 00echo The echo command allows you to display its command line arguments to the user’s termina

Pagina 48

Command Reference308660-14.00 Rev 002-7 enumenv The enumenv command lets you assign a sequence of values to a list of variables. You assign a starting

Pagina 49

Writing Technician Interface Scripts2-8308660-14.00 Rev 00export The export command allows you to move one or more local variables to the global envir

Pagina 50

Command Reference308660-14.00 Rev 002-9 getenv The getenv command allows you to view the current list of variables stored in the local and global envi

Pagina 51

iv308660-14.00 Rev 00for the security of its own data and information and for maintaining adequate procedures apart from the Software to reconstruct

Pagina 52 - More Examples

Writing Technician Interface Scripts2-10308660-14.00 Rev 00gosub The gosub command calls a subroutine inside the same script file. It must be the last

Pagina 53

Command Reference308660-14.00 Rev 002-11 goto The goto command lets you specify the next line to be executed from the script file. Within the script f

Pagina 54

Writing Technician Interface Scripts2-12308660-14.00 Rev 00ifThe if command allows you to evaluate whether an expression is true. The expression can b

Pagina 55

Command Reference308660-14.00 Rev 002-13 <string1> <string2> are ASCII character strings or numbers.<operand> is one of the followin

Pagina 56

Writing Technician Interface Scripts2-14308660-14.00 Rev 00The backslash character (\) allows you to continue a command line on the following physical

Pagina 57 - <MIB_object>

Command Reference308660-14.00 Rev 002-15 Example 5For example, the following script tests whether variable a has been defined:setenv a 5if $?a=1

Pagina 58 - <label>

Writing Technician Interface Scripts2-16308660-14.00 Rev 00instenvThe instenv command allows you to define a pseudo-variable array that contains the l

Pagina 59 - <no._of_seconds>

Command Reference308660-14.00 Rev 002-17 Example 2The following example is an excerpt from a script file showing how to use the instenv command.insten

Pagina 60

Writing Technician Interface Scripts2-18308660-14.00 Rev 00let The let command allows you to evaluate a simple arithmetical or logical expression and

Pagina 61

Command Reference308660-14.00 Rev 002-19 Example 2In the following script, variable name b is assigned the sum of variable name a plus 1.setenv a

Pagina 62

308660-14.00 Rev 00vContentsPrefaceBefore You Begin ...

Pagina 63 - <filename>

Writing Technician Interface Scripts2-20308660-14.00 Rev 00The let command provides the following string functions:• strlen( )• strindex( )• strrindex

Pagina 64

Command Reference308660-14.00 Rev 002-21 You can also get the ASCII code for a given character (indicated as one character within single quotes, such

Pagina 65

Writing Technician Interface Scripts2-22308660-14.00 Rev 00let -date -time localtime = date() + time()echo $localtime10/11/95 15:24:05let -date -time

Pagina 66

Command Reference308660-14.00 Rev 002-23 mibget The mibget command lets you search a MIB object table one record at a time and retrieve a set of attri

Pagina 67

Writing Technician Interface Scripts2-24308660-14.00 Rev 00<value_variable_array> is the name of an environmental array variable that stores the

Pagina 68

Command Reference308660-14.00 Rev 002-25 # Begin loop to read entire set of records :IP_RT_LOOP:mibget $nextflag wfIpForwardEntry attr $nextid valu

Pagina 69 - <variable_value>

Writing Technician Interface Scripts2-26308660-14.00 Rev 00octetfmt The octetfmt command formats a MIB entry with an Octet or Opaque data type using t

Pagina 70

Command Reference308660-14.00 Rev 002-27 MAC2_ADDRESS formats the data as a noncanonical MAC address.SIGNED_INTEGER or INTEGER formats the data as a 4

Pagina 71

Writing Technician Interface Scripts2-28308660-14.00 Rev 00on error The on error command allows you to specify an error handler label within a script

Pagina 72

Command Reference308660-14.00 Rev 002-29 pause The pause command allows you to suspend operation of the Technician Interface for a given interval. Dur

Pagina 73

vi308660-14.00 Rev 00Saving and Restoring Variables ...1-13Running a

Pagina 74

Writing Technician Interface Scripts2-30308660-14.00 Rev 00printf The printf command converts, formats, and prints the input arguments (<p1>,. .

Pagina 75 - Appendix A

Command Reference308660-14.00 Rev 002-31 A summary of the flags and conversion codes follows:<format> = %<flag><width>.<prec

Pagina 76 - FDDI.MNU Script

Writing Technician Interface Scripts2-32308660-14.00 Rev 00<conversion_specification> can be one of the following:•d or i indicates signed decim

Pagina 77 - FDDI.BAT Script

Command Reference308660-14.00 Rev 002-33 recordThe record command saves to an open file all messages written to the console terminal. Use this command

Pagina 78

Writing Technician Interface Scripts2-34308660-14.00 Rev 00You can stop saving messages to a snapshot file temporarily by using the pause option with

Pagina 79

Command Reference308660-14.00 Rev 002-35 return You use the return command in a subroutine to return to the calling routine. When the return command e

Pagina 80

Writing Technician Interface Scripts2-36308660-14.00 Rev 00run The run command allows you to read and execute the Technician Interface commands in a T

Pagina 81

Command Reference308660-14.00 Rev 002-37 The special variable $# contains the number of parameters entered on the command line following the script fi

Pagina 82

Writing Technician Interface Scripts2-38308660-14.00 Rev 00save env The save env command allows you to save the current list of local and global varia

Pagina 83

Command Reference308660-14.00 Rev 002-39 setenv The setenv command allows you to assign an ASCII string value or a numeric value to a variable in the

Pagina 84

308660-14.00 Rev 00viiAppendix A Sample ScriptsMenu Script ...

Pagina 85

Writing Technician Interface Scripts2-40308660-14.00 Rev 00source env The source env command allows you to read and execute the Technician Interface c

Pagina 86

Command Reference308660-14.00 Rev 002-41 sprintf The sprintf command converts and formats text, and saves the result in a specified variable for later

Pagina 87

Writing Technician Interface Scripts2-42308660-14.00 Rev 00unsetenv The unsetenv command allows you to delete one or more variables from the local or

Pagina 88

Command Reference308660-14.00 Rev 002-43 ExamplesIf you enter: The system:unsetenv slotDeletes the variable slot from either the local or the global t

Pagina 89

Writing Technician Interface Scripts2-44308660-14.00 Rev 00verbose The verbose command allows you to enable the debug trace facility. When you enable

Pagina 90

308660-14.00 Rev 00A-1 Appendix ASample ScriptsTo help you create your own scripts, this appendix contains three sample scripts:• Menu script• FDDI.mn

Pagina 91

Writing Technician Interface ScriptsA-2308660-14.00 Rev 00if $ans = 4 then;\echo “Exiting ...”;\goto :EXIT:echo “Bad choice, try again ...”pause 2goto

Pagina 92

Sample Scripts308660-14.00 Rev 00A-3 FDDI.BAT ScriptThe following example shows a protocol script for a Nortel Networks router. You view output fro

Pagina 93

Writing Technician Interface ScriptsA-4308660-14.00 Rev 00################################################################## Sub-command vectoring...#

Pagina 94

Sample Scripts308660-14.00 Rev 00A-5 ################################################################## Parse for “show” command...##################

Pagina 96

Writing Technician Interface ScriptsA-6308660-14.00 Rev 00:FI_HELP_SHOW:echo “FDDI Show Command Help”echo “----------------------”echoecho “show fddi

Pagina 97

Sample Scripts308660-14.00 Rev 00A-7 enum 1 Cct State Enable Slot ienum $i Node Madr Bofl ienum $i BoflTmo Mtu HwFilterechoecho “FDDI Modules:”

Pagina 98

Writing Technician Interface ScriptsA-8308660-14.00 Rev 00################################################################## Show Alerts screen...####

Pagina 99

Sample Scripts308660-14.00 Rev 00A-9 # Do next circuit...#:FI_SKIPA:let i = $i + 1goto :FI_ALOOP:#####################################################

Pagina 100 - 308660-14.00 Rev 00

Writing Technician Interface ScriptsA-10308660-14.00 Rev 00:FI_ENBLED:setenv matchcct “xxx”setenv nextflag “”setenv pattern “”setenv nextid “*”arra

Pagina 101 - Sample Scripts

Sample Scripts308660-14.00 Rev 00A-11 ################################################################## Print header for base/alerts/disabled/enabled

Pagina 102

Writing Technician Interface ScriptsA-12308660-14.00 Rev 00:FI_STATE_ESC:printf “%-17.17s” “${value[$Madr]}”if ${value[$Bofl]} = 2 then ; \printf “%-4

Pagina 103

Sample Scripts308660-14.00 Rev 00A-13 :FI_STAT_NM:setenv nextflag “”setenv pattern “”setenv nextid “*”array attr wfFDDICct wfFDDICrcErrRx wfFDDI

Pagina 104

Writing Technician Interface ScriptsA-14308660-14.00 Rev 00:FI_STLOOP:mibget -n wfFddiEntry attr $nextid value nextidif “$nextid” = “END” then; let i

Pagina 105

Sample Scripts308660-14.00 Rev 00A-15 :FI_RCV:if $# < 3 then; goto :FI_Rx1:let cmdlen = strlen(“$3”)let i = strindex(“errors”, “$3”)if $i = 1 then

Pagina 106

308660-14.00 Rev 00ixTablesTable 2-1. Script Commands ...2-1Table 2-

Pagina 107

Writing Technician Interface ScriptsA-16308660-14.00 Rev 00mibget -n wfFddiEntry attr $nextid value nextidif “$nextid“ = “END” then; let i = $i + 1;

Pagina 108

Sample Scripts308660-14.00 Rev 00A-17 ################################################################## Transmit Errors screen...####################

Pagina 109

Writing Technician Interface ScriptsA-18308660-14.00 Rev 00if “$nextid” = “END” then; let i = $i + 1; goto :FOOTER_AND_END:let cctnum = ${value[$Cct]}

Pagina 110

Sample Scripts308660-14.00 Rev 00A-19 wfFDDIParityErrTx array -a attr wfFDDIRingErrRx wfFDDIRingErrTx wfFDDISmtRingErrRx \wfFDDIPortOpErr array -a a

Pagina 111

Writing Technician Interface ScriptsA-20308660-14.00 Rev 00if ${name2[0]} = 1 then; \printf “%4s %4s *%-7.7s\n” “” “” “${name2[1]}”:FI_SYS_NXT:let i =

Pagina 112

Sample Scripts308660-14.00 Rev 00A-21 on error :FI_SMT_NXT:if $i > $list_0 then; goto :FOOTER_AND_END:let cctnum = $(wfFddiEntry.wfFDDICct.${list_[

Pagina 113

Writing Technician Interface ScriptsA-22308660-14.00 Rev 00if $state = 4 then ; printf “%-8s ” “Leave”if $state = 5 then ; printf “%-8s ” “Pathtest”if

Pagina 114

Sample Scripts308660-14.00 Rev 00A-23 ################################################################## MAC screen...# ##############################

Pagina 115

Writing Technician Interface ScriptsA-24308660-14.00 Rev 00:FI_MAC_LP:on error :FI_MAC_NXT:if $i > $list_0 then; goto :FOOTER_AND_END: let cctnum

Pagina 116

Sample Scripts308660-14.00 Rev 00A-25 printf “%10u\n” $(wfFddiMacExtEntry.wfFddiMacRingOpCts.${list_[$i]})cutenv -c9-15 name2 “$cctname”if ${name2[0]

Comentarios a estos manuales

Sin comentarios