Closing The Connection To The Junos Xml Protocol Server; Mapping Cli Commands To Perl Methods - Juniper JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010 Manual

Junos xml management protocol guide
Hide thumbs Also See for JUNOS OS 10.3 - XML MANAGEMENT PROTOCOL GUIDE 6-30-2010:
Table of Contents

Advertisement

Junos 10.3 Junos XML Management Protocol Guide

Closing the Connection to the Junos XML Protocol Server

Mapping CLI Commands to Perl Methods

232
}
close OUTPUTFILE;
To end the Junos XML protocol session and close the connection to the device, each
sample script invokes the
scripts do this in standalone statements:
$jnx->request_end_session( );
jnx->disconnect();
The
script invokes the
load_configuration.pl
more information, see "Handling Error Conditions" on page 222):
graceful_shutdown($jnx, $xmlfile, STATE_LOCKED, REPORT_SUCCESS);
The sample scripts described in "Overview of the Junos::Device Perl Module and Sample
Scripts" on page 205 invoke only a small number of the predefined Junos XML Perl methods
available in the current version of the Junos OS. There is a Perl method for every Junos
XML request tag element. To derive the Perl method name from the request tag element
name, replace each hyphen in the tag element name with an underscore and remove
the enclosing angle brackets from the tag element name. For example, the
get_bgp_group_information
tag element.
For a list of all of the Perl methods available in the current version of the Junos OS, see
the chapter in the Junos XML API Operational Reference that maps Junos XML request
tag elements to CLI commands and Perl methods. For information about optional and
required attributes for a particular Perl method, see the entry for the corresponding Junos
XML request tag element in the chapter titled " Summary of Operational Request Tags"
in the Junos XML API Operational Reference.
and
request_end_session
disconnect
graceful_shutdown
Perl method corresponds to the
methods. Several of the
subroutine instead (for
<get-bgp-group-information>
Copyright © 2010, Juniper Networks, Inc.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junos os

Table of Contents