[Contents] [Prev] [Next] [Index] [Report an Error]

Querying JUNOS Software and Package Inventory Items

To extract all active software and package inventory items stored in the Inventory Management System, use the following query. (Enter the entire MySQL command syntax on the same line.)

mysql> SELECTdev.name,
dev.model,
sw.routing_engine,
sw.version,
pkg.name,
pkg.comment,
sw.last_scanned,
sw.created_on
FROMdemo.software_inventory sw
 INNER JOINdemo.packages_inventory pkg
 ONsw.device_id = pkg.device_id
 INNER JOINdemo.devices dev
 ONsw.device_id = dev.id
 WHEREsw.routing_engine = pkg.routing_engine
  ANDsw.deleted_on = 0
  ANDpkg.deleted_on = 0
  ANDdev.deleted_on = 0;

[Contents] [Prev] [Next] [Index] [Report an Error]