Replace Group-Global Service Objects
Delete All Group-Global Service Objects
Using the Perl Client Library with Device Objects
Read Device Objects
Copyright © 2010, Juniper Networks, Inc.
This section shows how to use the Perl Client Library to replace Group-Global service
objects.
To replace a service object:
Log into the Perl client.
1.
Replace the object.
2.
Enter:
$result
= $service->replaceGlobalObjects('OBJECT_NAME'=>'Poly-2',
'GROUP_MEMBERS'=>$members, 'COLOR'=>'red' );
put_log('WARN', msg=>"Error while adding group objects." ) unless(
$result );
Log out.
3.
This section shows how to use the Perl Client Library to delete all Group-Global service
objects.
To delete all service objects:
Log into the Perl client.
1.
Delete the object.
2.
Enter:
my $result
= $service->deleteAllObjects();
deleting all objects." ) unless( $result );
Log out.
3.
This section shows how to use the Perl Client Library to read device objects.
NOTE: The COLOR and COMMENT arguments are optional for these
procedures.
This section shows how to read device objects.
Chapter 8: Using the API to Manage Shared Objects
put_log('WARN', msg=>"Error while
91
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