Avaya Writing Technician Interface Scripts Manual de usuario

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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 120
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
Writing Technician Interface
Scripts
Router Software Version 10.0
Site Manager Software Version 4.0
Software Version BNX 6.0
Site Manager Software Version BNX 6.0
Part No. 112946 Rev. A
January 1996
Vista de pagina 0
1 2 3 4 5 6 ... 119 120

Indice de contenidos

Pagina 1 - Writing Technician Interface

Writing Technician InterfaceScripts Router Software Version 10.0Site Manager Software Version 4.0Software Version BNX 6.0Site Manager Software Versi

Pagina 3 - Bay Networks Software License

Writing Technician Interface ScriptsA-24################################################################## MAC screen...# ############################

Pagina 4 - (continued)

Sample ScriptsA-25:FI_MAC_LP:on error :FI_MAC_NXT:if $i > $list_0 then; goto :FOOTER_AND_END: let cctnum = $(wfFddiEntry.wfFDDICct.${list_[$i]})g

Pagina 5 - Contents

Writing Technician Interface ScriptsA-26printf “%10u\n” $(wfFddiMacExtEntry.wfFddiMacRingOpCts.${list_[$i]})cutenv -c9-15 name2 “$cctname”if ${name2[

Pagina 6

Sample ScriptsA-27:FI_PORT_LP:on error :FI_PORT_NXT:if $i > $list_0 then; goto :FOOTER_AND_END:printf “%4d %4d ” $(wfFddiPortEntry.wfFddiPortSlot.$

Pagina 7

Writing Technician Interface ScriptsA-28################################################################## Sample screen (samples parameters twice, p

Pagina 8

Sample ScriptsA-29:FI_SAMP_CKVAL:if $period <= 0 then; \echo “Period of $period seconds is too low.” ; \goto :FI_HELP_SHOW:## Check for circuit to

Pagina 9

Writing Technician Interface ScriptsA-30:FI_SAMP1_LP:on error :FI_SAMP1_SKP:if $i > $list_0 then; goto :FI_SAMP_WT:if “$matchcct” = “” then ; goto

Pagina 10

Sample ScriptsA-31:FI_SAMP2_LP:on error :FI_SAMP2_SKP:if $i > $list_0 then; goto :FI_SAMP_PRT:if “$matchcct” = “” then ; goto :FI_SAMP2_NOW:let cct

Pagina 11 - About This Guide

Writing Technician Interface ScriptsA-32:FI_SAMP_MATCH:on error :FI_NEXT_TRY:if ${s1instid_[$i]} != ${s2instid_[$j]} then; goto :FI_NEXT_TRY:if $j = $

Pagina 12

Sample ScriptsA-33################################################################## Hardware Filter screen...# ######################################

Pagina 13 - CompuServe

xi About This Guide If you are interested in creating and editing Technician Interface scripts, refer to this guide for• An overview of variables• In

Pagina 14 - Conventions

Writing Technician Interface ScriptsA-34## Enable circuit...#:FI_ENBLC:if $# != 3 then ; goto :FI_HELP_ENBL:instenv list_ wfFddiEntryif $list_0 = 0 th

Pagina 15

Sample ScriptsA-35:FI_ENBLI:if $# != 3 then ; goto :FI_HELP_ENBL:# Sanity check <slot.connector> parameter...if “$ver” < “x7.80” then; goto :

Pagina 16 - Acronyms

Writing Technician Interface ScriptsA-36## Gosubs shared by enable and disable...#:ERR_MSG1:cutenv -c $invalch ugly_ “$3”echo “Inappropriate character

Pagina 17 - Creating a Script File

Sample ScriptsA-37## Disable circuit...#:FI_DSBLC:if $# != 3 then ; goto :FI_HELP_DSBL:instenv list_ wfFddiEntryif $list_0 = 0 then; goto :FI_DSBLNF:

Pagina 18 - About Variables

Writing Technician Interface ScriptsA-38:FI_DSBLI:if $# != 3 then ; goto :FI_HELP_DSBL:# Sanity check <slot.connector> parameter...if “$ver” <

Pagina 19 - My color is $a

Sample ScriptsA-39################################################################## Version command##################################################

Pagina 21 - Prompting for Input

Index-1Symbols#, inserting comments using, 1-13$, referencing variable using, 1-2Aarrayenv command, 1-10, 2-3arrays, 1-8Ccommandsarrayenv, 1-10, 2-3cu

Pagina 22 - Accessing MIB Information

Index-2Ggetenv command, 1-8, 2-9global variablesoverview of, 1-4PWD, 1-11gosub command, 1-11, 2-10goto command, 1-11, 2-11Iif command, 1-11, 2-12 to 2

Pagina 23 - Formatting a MIB Entry

Index-3TTFTP, 1-1timeout values, setting, 1-5transferring script files, 1-1true variable array, 1-8Uunsetenv command, 1-10, 2-43Vvariable array, 1-8var

Pagina 24 - Creating and Using Variables

Writing Technician Interface Scriptsxii • The BNX Suite includes IP Routing, SNMP Agent, Bay Networks HDLC, PPP, OSPF, EGP, BGP, File-Based Perform

Pagina 26 - Deleting Variables

About This Guidexiii To purchase any of these support programs, including PhonePlus™ for 24-hour telephone technical support, call 1-800-2LANWAN. Out

Pagina 27 - Controlling Program Flow

Writing Technician Interface Scriptsxiv InfoFACTS InfoFACTS is the Bay Networks free 24-hour fax-on-demand service. This automated system contains li

Pagina 28 - Performing Error Recovery

About This Guidexv arrow character ( ➔ ) Separates menu and option names in instructions. Example: Protocols ➔ AppleTalk identifies the AppleTalk opti

Pagina 29 - Debugging a Script File

Writing Technician Interface Scriptsxvi Acronyms ANSI American National Standards InstituteARP Address Resolution ProtocolASCII American Standard Cod

Pagina 30 - Creating Menus

1-1 Chapter 1Creating a Script File The Technician Interface script facility allows you to read and execute Technician Interface commands from a scri

Pagina 31 - Command Reference

Writing Technician Interface Scripts1-2 • Writing messages to the console, using the echo and the printf commands• Recording console messages to

Pagina 32 - Table 2-1. Script Commands

Creating a Script File1-3To prevent a variable from being expanded, enter two dollar signs ($$) before the variable name, as shown in the following ex

Pagina 33

4401 Great America Parkway 8 Federal StreetSanta Clara, CA 95054 Billerica, MA 01821 Copyright © 1988–1996 Bay Networks, Inc. All rights reserved. Pr

Pagina 34

Writing Technician Interface Scripts1-4Local, Global, and System VariablesWhen you first define a variable, the computer stores it in the local environm

Pagina 35

Creating a Script File1-5Prompting for InputThe input prompt variable allows you to create a prompt that accepts user input from the Technician Interf

Pagina 36 - <variable_name>

Writing Technician Interface Scripts1-6In the following script, if the user does not press Return before the time specified for SYS_IO_TIMEOUT has elap

Pagina 37

Creating a Script File1-7The variable values <object>, <attribute>, and <instance> are defined as follows:<object> is the name

Pagina 38

Writing Technician Interface Scripts1-8Defining a Pseudo-Variable ArrayThe Technician Interface script facility allows you to define a pseudo-variable a

Pagina 39

Creating a Script File1-9If you access the Technician Interface via Telnet, the Technician Interface also displays the variables in the system environ

Pagina 40 - <subroutine_name>

Writing Technician Interface Scripts1-10• To convert and format text, and save the result in a specified variable for later use, use the sprintf comman

Pagina 41 - <label_name>

Creating a Script File1-11Setting the Current Volume or DirectoryWhen you set the current working volume or directory using the cd (change directory)

Pagina 42

Writing Technician Interface Scripts1-12Writing Messages to the ConsoleThe Technician Interface provides two commands to display messages on the conso

Pagina 43

Creating a Script File1-13Inserting CommentsYou can insert comments into the script file. Comments begin with a pound sign (#) in column 1, as shown in

Pagina 44

Bay Networks, Inc. 4401 Great America Parkway, Santa Clara, CA 950548 Federal Street, Billerica, MA 01821 Bay Networks Software License This Software

Pagina 45 - <directory_name>

Writing Technician Interface Scripts1-14Running a Script FileTo read and execute the commands in a Technician Interface script file, and to ensure that

Pagina 46 - <object>

2-1Chapter 2Command ReferenceIn the following pages you can find the function, syntax, and examples of all the script commands you need to write, edit,

Pagina 47 - command

Writing Technician Interface Scripts2-2pause Suspends the Technician Interface’s operation for a given intervalprintf Converts, formats, and prints th

Pagina 48 - <flag>

Command Reference2-3arrayenv The arrayenv command allows you to write a list of command line arguments <text_string> to a pseudo-variable array,

Pagina 49

Writing Technician Interface Scripts2-4The cutenv command has the following syntax:cutenv [-s] [-d <delimiter>] [-f <list> | -c <list&g

Pagina 50 - <string>

Command Reference2-5The following sample script shows how you use the cutenv command to assign portions of 192.32.100.55 to a pseudo-variable array:cu

Pagina 51 - Example:

Writing Technician Interface Scripts2-6echo The echo command allows you to display its command line arguments to the user’s terminal.The echo command

Pagina 52

Command Reference2-7enumenv The enumenv command lets you assign a sequence of values to a list of variables. You assign a starting number <starting

Pagina 53 - Examples:

Writing Technician Interface Scripts2-8export The export command allows you to move one or more local variables to the global environment variable tab

Pagina 54

Command Reference2-9getenv The getenv command allows you to view the current list of variables stored in the local and global environment variable tab

Pagina 55 - <instance_id>

Bay Networks, Inc. 4401 Great America Parkway, Santa Clara, CA 950548 Federal Street, Billerica, MA 01821 Bay Networks Software License (continued)

Pagina 56

Writing Technician Interface Scripts2-10gosub The gosub command calls a subroutine inside the same script file. It must be the last command on a line.

Pagina 57

Command Reference2-11goto The goto command lets you specify the next line to be executed from the script file. Within the script file, the goto command

Pagina 58 - <MIB_object>

Writing Technician Interface Scripts2-12ifThe if command allows you to evaluate whether an expression is true. The expression can be a comparison of t

Pagina 59 - <label>

Command Reference2-13<string1> <string2> are ASCII character strings or numbers.<operand> is one of the following comparison operati

Pagina 60 - <no._of_seconds>

Writing Technician Interface Scripts2-14The backslash character (\) allows you to continue a command line on the following physical line. When used in

Pagina 61

Command Reference2-15if -file <filename>=1For example, the following script tests whether the install.bat file is present:if -file install.bat=

Pagina 62

Writing Technician Interface Scripts2-16instenvThe instenv command allows you to define a pseudo-variable array that contains the list of MIB instance

Pagina 63

Command Reference2-17The following example is an excerpt from a script file showing how to use the instenv command.instenv ip_ wfIpInterfaceEntryecho “

Pagina 64 - <vol>

Writing Technician Interface Scripts2-18let The let command allows you to evaluate a simple arithmetical or logical expression and assign the result t

Pagina 65

Command Reference2-19Use the arithmetical and logical operators listed in Table 2-2 and Table 2-3 with the let command. Table 2-2. Arithmetical Operat

Pagina 66

v Contents About This Guide Software Suites ...

Pagina 67

Writing Technician Interface Scripts2-20The let command provides the following string functions:• strlen( )• strindex( )• strrindex( )• strpbrk( )• st

Pagina 68

Command Reference2-21You can also get the ASCII code for a given character (indicated as one character within single quotes, such as ‘c’).The let comm

Pagina 69

Writing Technician Interface Scripts2-22let -date -time localtime = date() + time()echo $localtime10/11/95 15:24:05let -date -time london = date(“10/7

Pagina 70 - <variable_value>

Command Reference2-23Example:The following example shows how to use the let command to set up a slotmask:let slot = $<Enter Slot Number>let

Pagina 71

Writing Technician Interface Scripts2-24mibget The mibget command lets you search a MIB object table one record at a time and retrieve a set of attrib

Pagina 72

Command Reference2-25<next_instance_variable> is the name of the variable that stores the instance ID of the record currently read. If the routi

Pagina 73

Writing Technician Interface Scripts2-26# Begin loop to read entire set of records :IP_RT_LOOP:mibget $nextflag wfIpForwardEntry attr $nextid value

Pagina 74 - Examples

Command Reference2-27octetfmt The octetfmt command formats a MIB entry with an Octet or Opaque data type using the specified format type. The syntax fo

Pagina 75

Writing Technician Interface Scripts2-28UNSIGNED_INTEGER formats the data as a 4-byte unsigned integer.<MIB_object> represents the variable valu

Pagina 76

Command Reference2-29on error The on error command allows you to specify an error handler label within a script file. If a command returns an error or

Pagina 77 - Appendix A

viControlling Program Flow ...1-11Writing Messages to the

Pagina 78 - FDDI.MNU Script

Writing Technician Interface Scripts2-30pause The pause command allows you to suspend operation of the Technician Interface for a given interval. Duri

Pagina 79 - FDDI.BAT Script

Command Reference2-31printf The printf command converts, formats, and prints the input arguments (<p1>,. . .,<pN>) on the Technician Inter

Pagina 80

Writing Technician Interface Scripts2-32 A summary of the flags and conversion codes follows:<format> = %<flag><width>.<precisi

Pagina 81

Command Reference2-33<conversion_specification> can be one of the following:•d or i indicates signed decimal notation.•o indicates unsigned octal

Pagina 82

Writing Technician Interface Scripts2-34recordThe record command saves to an open file all messages written to the console terminal. Use this command w

Pagina 83

Command Reference2-35You can stop saving messages to a snapshot file temporarily by using the pause option with the record command. To change the pause

Pagina 84

Writing Technician Interface Scripts2-36return You use the return command in a subroutine to return to the calling routine. When the return command ex

Pagina 85

Command Reference2-37run The run command allows you to read and execute the Technician Interface commands in a Technician Interface script file. The ru

Pagina 86

Writing Technician Interface Scripts2-38The special variable $# contains the number of parameters entered on the command line following the script file

Pagina 87

Command Reference2-39save env The save env command allows you to save the current list of local and global variables to a script file. Use the followin

Pagina 88

viiverbose ...2-45 Appendix A S

Pagina 89

Writing Technician Interface Scripts2-40setenv The setenv command allows you to assign an ASCII string value or a numeric value to a variable in the l

Pagina 90

Command Reference2-41source env The source env command allows you to read and execute the Technician Interface commands in a Technician Interface scri

Pagina 91

Writing Technician Interface Scripts2-42sprintf The sprintf command converts and formats text, and saves the result in a specified variable for later u

Pagina 92

Command Reference2-43unsetenv The unsetenv command allows you to delete one or more variables from the local or global environment variable table. You

Pagina 93

Writing Technician Interface Scripts2-44ExamplesIf you enter: The system:unsetenv slot Deletes the variable slot from either the local or the global t

Pagina 94

Command Reference2-45verbose The verbose command allows you to enable the debug trace facility. When you enable the trace facility, the Technician Int

Pagina 96

A-1Appendix ASample ScriptsTo help you create your own scripts, this appendix contains three sample scripts:• Menu script• FDDI.mnu script• FDDI.bat s

Pagina 97

Writing Technician Interface ScriptsA-2set wfTftp.wfTftpDefaultVolume.0 $vol;\go to :MENU:if $ans = 4 then;\echo “Exiting ...”;\goto :EXIT:echo “Bad c

Pagina 98

Sample ScriptsA-3FDDI.BAT ScriptThe following example shows a protocol script for a Bay Networks router. You view output from the script by enterin

Pagina 100

Writing Technician Interface ScriptsA-4################################################################## Sub-command vectoring...####################

Pagina 101 - Sample Scripts

Sample ScriptsA-5################################################################## Parse for “show” command...######################################

Pagina 102

Writing Technician Interface ScriptsA-6let i = strindex(“hwfilters”, cmd)if $i = 1 then ; goto :FI_HWF:let i = strindex(“version”, cmd)if $i = 1 then

Pagina 103

Sample ScriptsA-7:FI_BASE_NM:setenv nextflag “”setenv pattern “”setenv nextid “*”array attr wfFDDICct wfFDDIState wfFDDIEnable wfFDDISlot array

Pagina 104

Writing Technician Interface ScriptsA-8################################################################## Show Alerts screen...#######################

Pagina 105

Sample ScriptsA-9# Do next circuit...#:FI_SKIPA:let i = $i + 1goto :FI_ALOOP:################################################################## Show D

Pagina 106

Writing Technician Interface ScriptsA-10################################################################## Show Enabled screen...#####################

Pagina 107

Sample ScriptsA-11################################################################## Print header for base/alerts/disabled/enabled screens...#########

Pagina 108

Writing Technician Interface ScriptsA-12:FI_STATE_ESC:printf “%-17.17s” “${value[$Madr]}”if ${value[$Bofl]} = 2 then ; \printf “%-4s” “Off” ; goto :FI

Pagina 109

Sample ScriptsA-13:FI_STAT_NM:setenv nextflag “”setenv pattern “”setenv nextid “*”array attr wfFDDICct wfFDDICrcErrRx wfFDDIOverrunRx array -a a

Pagina 110

ix Tables Table 2-1. Script Commands ...2-1Table 2-2. Arithmetical

Pagina 111

Writing Technician Interface ScriptsA-14:FI_STLOOP:mibget -n wfFddiEntry attr $nextid value nextidif “$nextid” = “END” then; let i = $i + 1; goto :FO

Pagina 112

Sample ScriptsA-15################################################################## Receive Errors screen...#########################################

Pagina 113

Writing Technician Interface ScriptsA-16printf “%-4.4s %-4.4s %-8.8s %-10.10s %-10.10s %-10.10s %-10.10s\n” \“” “” “” “CRC” “Overrun” “Invalid”

Pagina 114

Sample ScriptsA-17:MAC_EXTRACT:setenv mac_sum 0if $?(wfFddiMacEntry.wfFddiMacErrorCts.${nextid}) = 0 then ; \returnarray mac_attr wfFddiMacErrorCts/H

Pagina 115

Writing Technician Interface ScriptsA-18:FI_XMIT_NM:setenv nextflag “”setenv pattern “”setenv nextid “*”array attr wfFDDICct wfFDDISlot wfFDDINode

Pagina 116

Sample ScriptsA-19################################################################## System Errors screen...# ########################################

Pagina 117

Writing Technician Interface ScriptsA-20 printf “%-4.4s %-4.4s %-8.8s %-10.10s %-10.10s %-10.10s %-10.10s \ %-10.10s\n” “” “” “” “” “” “ Port” “ Int

Pagina 118

Sample ScriptsA-21################################################################## SMT screen...# ##################################################

Pagina 119

Writing Technician Interface ScriptsA-22:FI_SMT_LP:on error :FI_SMT_NXT:if $i > $list_0 then; goto :FOOTER_AND_END:let cctnum = $(wfFddiEntry.wfFDD

Pagina 120

Sample ScriptsA-23# Note field size is 32 because flags contains the trailing space.printf “%32s” “$flags”let state = $(wfFddiSmtEntry.wfFddiSmtEcmSta

Comentarios a estos manuales

Sin comentarios