CHAPTER 8
Using the API to Manage Shared Objects
Using the Perl Client Library with Address Objects
Add Address Objects
Copyright © 2010, Juniper Networks, Inc.
The Perl client has three object modules: Address (read/write/delete), Service
(read/write/delete), and Device (read only). The Address module is used to initialize,
add (host, network, multicast, group, and global), replace, rename, read, and delete
address objects. The Service module is used to initialize, add (group and global), and
delete service objects. The Device module is used to initialize and read device objects.
This section explains how to use the modules and write programs.
Using the Perl Client Library with Address Objects on page 83
Using the Perl Client Library with Service Objects on page 87
Using the Perl Client Library with Device Objects on page 91
You can use the Perl client library to add, replace, rename, read, and delete address
objects. These tasks are summarized below.
NOTE: The COLOR, COMMENT, DOMAIN, and DEVICE (any/any is the default)
arguments are optional for these procedures.
This section shows how to add an address object.
To add address objects:
Log into the Perl client.
1.
Initialize the address object.
2.
Enter:
my $address = UTILS::ADDRESS->init( 'SOAP'=>$connect );
Add the host, network, multicast, group, and global objects.
3.
Add a host with IP/Mask.
Enter:
83
Need help?
Do you have a question about the NETWORK AND SECURITY MANAGER 2010.4 - API GUIDE REV 1 and is the answer not in the manual?
Questions and answers