28.11.2012 Views

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

IBM Tivoli NetView for z/OS Programming: Pipes - IBM notice

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Full-Screen Automation<br />

316 <strong>Programming</strong>: <strong>Pipes</strong><br />

/* REPTALRM: REXX procedure to report the alarm thresholds of a modem. */<br />

’ATTACH MDMCNFG ID=NCP1,STATION=TERM4,MODEM=REMOTE,BROWSE=CONFIG’<br />

’PIPE (NAME GETCONFG)’,<br />

’| VET NEXT ROWS’,<br />

’| CORRWAIT 60’,<br />

’| SEPARATE’,<br />

’| NOT T<strong>OS</strong>TRING /ALARM THRESHOLDS/’,<br />

’| T<strong>OS</strong>TRING NOINCL /HIT ENTER/’,<br />

’| CONSOLE’<br />

Figure 15. Simple Full-Screen Automation Example: REPTALRM<br />

Starting a <strong>NetView</strong> Application<br />

The first step in full-screen automation is starting the application. In Figure 15 on<br />

page 316 the ATTACH command starts the command MDMCNFG. All parameters<br />

that are valid on MDMCNFG can be included on the ATTACH command. In this<br />

case, MDMCNFG requests changeable configuration in<strong>for</strong>mation <strong>for</strong> the remote<br />

modem on the link connecting NCP1 and TERM4.<br />

The ATTACH command in this example starts MDMCNFG and makes the panel<br />

shown in Figure 16 available as a virtual screen.<br />

Note: A virtual screen is not physically displayed on a hardware screen. Instead, it<br />

is a way to make the data, which is displayed on a hardware screen,<br />

available to a full-screen automation program. For more in<strong>for</strong>mation on<br />

virtual screens, see “Virtual <strong>OS</strong>Ts” on page 318.<br />

NETVIEW NCF01 OPER1 11/16/10 11:55:13<br />

* BROWSE CHANGEABLE 7861 CONFIGURATION PARAMETERS *<br />

ID = NCP1 STATION = TERM4 MODEM = REMOTE LEVEL = 1<br />

BASIC MODEM CONFIGURATION<br />

SPEED CONTROL MODE M (M=MODEM, D=DTE)<br />

TRAINING SEQUENCE L (L=LONG, S=SHORT)<br />

CONFIGURATION P (M=MULTI-POINT, P=POINT TO POINT)<br />

NETWORK FUNCTION C (C=CONTROL/PRIMARY, S=SECONDARY)<br />

ANTISTREAMING N (Y=YES, N=NO)<br />

TRANSMIT CLOCK OPTION E (I=INTERNAL, E=EXTERNAL, R=RECEIVE)<br />

COMPLEMENTARY RFS DELAY 0 MS (0 TO 250 IN 10MS INCREMENTS)<br />

DEFAULT SPEED F (F=FULL, B=BACKUP)<br />

LOCAL LOOP BACK WRAP N (Y=YES, N=NO)<br />

CUSTOMER INFORMATION (10 CHARACTER LIMIT)<br />

ALARM THRESHOLDS<br />

RECEIVE LEVEL THRESHOLD -43 DBM (-43 to 0)<br />

IMPULSE HITS THRESHOLD 21 (0 TO 63)<br />

LINE QUALITY THRESHOLD 10 (0 TO 14)<br />

HIT ENTER TO END COMMAND<br />

Figure 16. Browse Changeable Configuration Panel<br />

Interacting with and Terminating a <strong>NetView</strong> Application<br />

The following example shows how to return to the console the following four lines<br />

on the MDMCNFG panel followed by a blank line:<br />

ALARM THRESHOLDS<br />

RECEIVE LEVEL THRESHOLD -43 DBM (-43 to 0)<br />

IMPULSE HITS THRESHOLD 21 (0 TO 63)<br />

LINE QUALITY THRESHOLD 10 (0 TO 14)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!