Download Print this page

Cisco Dial NMS Implementation Manual page 98

Cisco systems basic dial nms implementation guide

Advertisement

Understand how the CGI scripts function.
There are two scripts that work together to return an NSLOOKUP list query (ls) for a specified zone in
a CGI link.
dnszone.pl—Runs the CGI process. In the subnet column in Figure 24, the entry 172.21.10.0/24 is
an active link that calls the dnszone.pl script.
The active link is coded as:
<td><a href="/cgi-lwt/dnszone.pl?zone=10.21.172.in-addr.arpa.">172.21.10.0/24</a></td>
Once invoked, dnszone.pl calls the second script, dnszone_dump.
dnszone_dump—An expect script that steps through the NSLOOKUP interactive mode and returns
the output of a "ls [ZONE]" command to the dnszone.pl script. The zone list, returned to the
requesting web-based management browser, appears:
ls 10.21.172.in-addr.arpa.
[www.the.net]
0
1
2
3
4
5
6
7
8
9
10
10.21.172.in-addr.arpa.
11
12
13
14
15
16
17
Download the source code for the scripts and customize them for your environment.
Go to http://www.cisco.com/univercd/cc/td/doc/cisintwk/intsolns/dialnms/dnszone.txt
host = broadcast-0.the.net
host = unused-1.the.net
host = unused-2.the.net
host = unused-3.the.net
host = unused-4.the.net
host = doc-core-01.the.net
host = doc-core-02.the.net
host = doc-core-03.the.net
host = doc-ls1010-01.the.net
host = doc-switch-01.the.net
host = doc-pix-01.the.net
server = onionring.the.net
host = doc-AS5850-01.the.net
host = doc-oob-03.the.net
host = doc-2610-01.the.net
host = doc-3810a-01.the.net
host = doc-3810d-01.the.net
host = doc-ubr7246-01.the.net
host = doc-switch-02.the.net

Advertisement

loading