Code:
$cmd = "grep \'sysObjectID.0\s+:{1}\s+CISCO-PRODUCTS-MIB!\' /database/configs/$kind/$device/system";
($stdout,$stderr) = $ssh->cmd("$cmd");