I previously used Prime LMS to upgrade the devices on my network. One of the things I was previously able to do was sort devices into groups based on which files were present in the flash file system that was polled via SNMP. Being able to reference if file exists (such as a .bin) would help me to determine and verify that network hardware was ready to be scheduled for a reboot.
So basically I would have 3 states that a device could be in. Out of Date, Parked, Upgraded.
I would not like to replicate the group functionality but just being able to make a determination if the device has the correct file installed. For example, this is how my group rules were setup in Prime LMS to facilitate this. I am trying to replicate this functionality logically by using a NCM template.
Out of Date
Device.Image.Sys_Description contains "C2960S-UNIVERSAL" EXCLUDE
Device.Image.Sys_Description contains "Version 15.0(2)SE8" EXCLUDE
Device.Flash.File_Name contains "c2960s-universalk9-mz.150-2.SE8.bin"
Parked
Device.Flash.File_Name contains "c2960s-universalk9-mz.150-2.SE8.bin" EXCLUDE
Device.Image.Sys_Description contains "Version 15.0(2)SE8"
Upgraded
Device.Flash.File_Name contains "c2960s-universalk9-mz.150-2.SE8.bin" AND
Device.Image.Sys_Description contains "Version 15.0(2)SE8"