Network and Security Manager 2010.4 API Guide
92
To read device objects:
Log into the Perl client.
1.
Initialize the device object. Enter:
2.
my $device = UTILS::DEVICE->init( 'SOAP'=>$connect );
Read the object. Enter:
3.
my( $result, $values )
$device->getDeviceObjects('OBJECT_NAME'=>['sweepea','droopy'] );
while( my $hash = shift(@{$values} ) ){
print "\n--------------------------\n";
while( my ($key, $val ) = each( %{$hash } ) ){
put_log('INFO',msg=> "KEY : $key\t
}
Log out.
4.
=
VALUE : $val" ); }
Copyright © 2010, Juniper Networks, Inc.
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