To list all the Vendor details of device in a Smarts IP domain, execute the Perl script in the following section using sm_perl.exe. The sm_perl.exe executable is available under the C:\InCharge\IP\smarts\bin directory. You can run sm_perl.exe as in the following example for a script called ash.pl:
C:\InCharge\IP\smarts\bin>sm_perl.exe c:\perl\ca\ash.pl
Perl Script
The following script can be used to list all the Vendor details in a Smarts IP domain:
#! /usr/bin/perl
use InCharge::session
$host='localhost:426';
$uname='admin';
$server="INCHARGE-AM-PM";
$paswd="changeme";
print "\nbroker=$host,server=$server";
$session = InCharge::session->new(broker => $host,server => $server,user => $uname, password => $paswd);$device = "Switch::bq-sw1.lss.emc.com";
$obj = $session->object( $device );
$vendor = $obj->{Vendor};
print "\nVendor=$vendor. \n";
$session->detach( );