|
|
This chapter describes three approaches you can use to provide a custom front-end capability for accessing the Cisco WAN Manager (CWM) Release 9.2 database. The first approach uses Informix-SQL as the front end, the second uses Wingz as the front end, and the third uses the Informix ESQL/C to compile a custom front-end program.
When used as an alternative front end to CWM, the database engine program is Informix OnLine and the database is created and updated by CWM. The Informix-SQL front end is used in read only mode.

Informix-SQL should be installed and started to operate concurrently with CWM. Installation consists of deciding the directory to store the program, creating informix user and group accounts, copying the software from the distribution media to the desired directory, and invoking the installsql script. Full details of the installation process are provided by Informix with the software.
Once the environment variables INFORMIXDIR, PATH, INFORMIXTERM, and TERM are set (Informix and UNIX documentation provide the details), you can start the main program (ISQL).
ISQL is a menu-driven program providing you access to virtually all the Informix-SQL facilities. A Query-Language option permits you to create, delete, and modify databases using SQL.
CWM comes with a dbaccess application which allows you to browse the database on line and perform SQL queries. This application is useful for examining objects in the database and for invoking SQL scripts. The SQL scripts that can be imported into dbaccess, require the use of UNIX utilities (for example, echo and pipe) and SQL knowledge. The rsh scripts can be used to feed data to other applications.

When CWM, Wingz, and DataLink are running, a DataLink menu is added to the standard Wingz menu. Through this menu, you can log on to the CWM database and display the database tables' rows and columns. Under this arrangement, the Wingz HyperScript application can be used to create sequences of tasks which can be executed automatically.
Data can be displayed selectively using Boolean-like criteria, and tables can be joined so data from multiple tables can be included in a single display.
For details on Wingz and DataLink installation and operation, refer to the Informix documentation supplied with the CWM software.
The ESQL-C compiler accepts as input, C programs containing embedded SQL statements. It compiles the program into a C program by converting the SQL statements into suitable declarations and function calls using an SQL library.
The resulting C program is then compiled with a system C compiler to produce the executable code. This front-end program is a truly a custom front end as the program is entirely under the control of the programmer.

![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Wed Mar 31 15:38:02 PST 1999
Copyright 1989-1999©Cisco Systems Inc.