$result = $address->addHostObjects('OBJECT_NAME'=>'Host_IP-'.$i,
'IP'=>'200.200.20.0', 'MASK'=>'30');
put_log('WARN', msg=>"Error while adding Host objects." ) unless(
$result );
•
Add a host with DOMAIN.
Enter:
$result = $client->addHostObjects('OBJECT_NAME'=>'Host_Domain-'.$i);
put_log('WARN', msg=>"Error
while adding Host objects." ) unless( $result );
$result = $address->addHostObjects('OBJECT_NAME'=>'Foo-'.$i,
'DOMAIN'=>'englab.juniper.net' );
put_log('WARN', msg=>"Error while adding Host objects." ) unless(
$result );
•
Add the Network.
Enter:
$result = $address->addNetworkObjects('OBJECT_NAME'=>'Network-'.$i,
'IP'=>'100.100.10.0', 'MASK'=>'30', 'COLOR'=>'blue' );
put_log('WARN', msg=>"Error while adding Network objects." ) unless(
$result );
•
Add Multicast:
Enter:
$result = $address->addMulticastObjects('OBJECT_NAME'=>'Multicast-'.$i,
'IP'=>'230.196.0.0', 'MASK'=>'16', 'COLOR'=>'cyan' );
put_log('WARN', msg=>"Error while adding Multicast objects." ) unless(
$result );
•
Add Group objects.
Enter:
@members = ('Foo-3','Foo-4');
$result = $address->addGroupObjects('OBJECT_NAME'=>'New-Group-2',
'GROUP_MEMBERS'=>\@members );
put_log('WARN', msg=>"Error while adding global objects." ) unless(
$result );
@members = ( { 'DOMAIN'=>'any',
'DEVICE'=>'any',
'ADDRESS'=>'Foo-5'
},
{ 'DOMAIN'=>'global',
'DEVICE'=>'wilma',
'ADDRESS'=>'Foo-6'
} );
•
Add Global objects.
Enter:
Copyright © 2010, Juniper Networks, Inc.
84
Network and Security Manager 2010.4 API Guide
Содержание NETWORK AND SECURITY MANAGER 2010.4 - API GUIDE REV 1
Страница 6: ...Copyright 2010 Juniper Networks Inc vi...
Страница 10: ...Copyright 2010 Juniper Networks Inc x Network and Security Manager 2010 4 API Guide...
Страница 12: ...Copyright 2010 Juniper Networks Inc xii Network and Security Manager 2010 4 API Guide...
Страница 20: ...Copyright 2010 Juniper Networks Inc 2 Network and Security Manager 2010 4 API Guide...
Страница 24: ...Copyright 2010 Juniper Networks Inc 6 Network and Security Manager 2010 4 API Guide...
Страница 34: ...Copyright 2010 Juniper Networks Inc 16 Network and Security Manager 2010 4 API Guide...
Страница 58: ...Figure 10 IDP Rulebase Copyright 2010 Juniper Networks Inc 40 Network and Security Manager 2010 4 API Guide...
Страница 92: ...Copyright 2010 Juniper Networks Inc 74 Network and Security Manager 2010 4 API Guide...
Страница 98: ...Copyright 2010 Juniper Networks Inc 80 Network and Security Manager 2010 4 API Guide...
Страница 100: ...Copyright 2010 Juniper Networks Inc 82 Network and Security Manager 2010 4 API Guide...
Страница 112: ...Copyright 2010 Juniper Networks Inc 94 Network and Security Manager 2010 4 API Guide...
Страница 128: ...Copyright 2010 Juniper Networks Inc 110 Network and Security Manager 2010 4 API Guide...
Страница 138: ...Copyright 2010 Juniper Networks Inc 120 Network and Security Manager 2010 4 API Guide...
Страница 152: ...Copyright 2010 Juniper Networks Inc 134 Network and Security Manager 2010 4 API Guide...
Страница 165: ...PART 6 Index Index on page 149 147 Copyright 2010 Juniper Networks Inc...
Страница 166: ...Copyright 2010 Juniper Networks Inc 148 Network and Security Manager 2010 4 API Guide...