Avaya Writing Technician Interface Scripts Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Oprogramowanie Avaya Writing Technician Interface Scripts. Avaya Writing Technician Interface Scripts User's Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 116
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 0
1 2 3 4 5 6 ... 115 116

Podsumowanie treści

Strona 1 - Writing Technician Interface

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

Strona 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

Strona 4

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

Strona 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

Strona 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

Strona 7

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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 &

Strona 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

Strona 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

Strona 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” <

Strona 16

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

Strona 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

Strona 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

Strona 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

Strona 21 - Prompting for Input

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

Strona 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

Strona 23 - Formatting a MIB Entry

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 33

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

Strona 34

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

Strona 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

Strona 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

Strona 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

Strona 38

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 43 - Example 1

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

Strona 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

Strona 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

Strona 46

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 55

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

Strona 56

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

Strona 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

Strona 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

Strona 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

Strona 60

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

Strona 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

Strona 62

308660-14.00 Rev 00vContentsPrefaceBefore You Begin ...

Strona 63 - <filename>

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

Strona 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

Strona 65

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

Strona 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

Strona 67

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 73

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

Strona 74

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

Strona 75 - Appendix A

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 84

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 89

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

Strona 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

Strona 91

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

Strona 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

Strona 93

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

Strona 94

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

Strona 96

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

Strona 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:”

Strona 98

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

Strona 99

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

Strona 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

Strona 101 - Sample Scripts

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

Strona 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

Strona 103

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

Strona 104

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

Strona 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

Strona 106

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

Strona 107

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

Strona 108

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

Strona 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]}

Strona 110

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

Strona 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 =

Strona 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_[

Strona 113

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

Strona 114

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

Strona 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

Strona 116

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

Komentarze do niniejszej Instrukcji

Brak uwag