CHAPTER 8
Using the API to Manage Shared Objects
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
Using the Perl Client Library with Address Objects
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.
Add Address Objects
This section shows how to add an address object.
To add address objects:
1.
Log into the Perl client.
2.
Initialize the address object.
Enter:
my $address = UTILS::ADDRESS->init( 'SOAP'=>$connect );
3.
Add the host, network, multicast, group, and global objects.
•
Add a host with IP/Mask.
Enter:
83
Copyright © 2010, Juniper Networks, Inc.
Summary of Contents for NETWORK AND SECURITY MANAGER 2010.4 - API GUIDE REV 1
Page 6: ...Copyright 2010 Juniper Networks Inc vi...
Page 10: ...Copyright 2010 Juniper Networks Inc x Network and Security Manager 2010 4 API Guide...
Page 12: ...Copyright 2010 Juniper Networks Inc xii Network and Security Manager 2010 4 API Guide...
Page 20: ...Copyright 2010 Juniper Networks Inc 2 Network and Security Manager 2010 4 API Guide...
Page 24: ...Copyright 2010 Juniper Networks Inc 6 Network and Security Manager 2010 4 API Guide...
Page 34: ...Copyright 2010 Juniper Networks Inc 16 Network and Security Manager 2010 4 API Guide...
Page 92: ...Copyright 2010 Juniper Networks Inc 74 Network and Security Manager 2010 4 API Guide...
Page 98: ...Copyright 2010 Juniper Networks Inc 80 Network and Security Manager 2010 4 API Guide...
Page 100: ...Copyright 2010 Juniper Networks Inc 82 Network and Security Manager 2010 4 API Guide...
Page 112: ...Copyright 2010 Juniper Networks Inc 94 Network and Security Manager 2010 4 API Guide...
Page 128: ...Copyright 2010 Juniper Networks Inc 110 Network and Security Manager 2010 4 API Guide...
Page 138: ...Copyright 2010 Juniper Networks Inc 120 Network and Security Manager 2010 4 API Guide...
Page 152: ...Copyright 2010 Juniper Networks Inc 134 Network and Security Manager 2010 4 API Guide...
Page 165: ...PART 6 Index Index on page 149 147 Copyright 2010 Juniper Networks Inc...
Page 166: ...Copyright 2010 Juniper Networks Inc 148 Network and Security Manager 2010 4 API Guide...