There are multiple printers in my networks, I want to tag them as printer with dynamic rule. Is it possible?
You could do an asset search and create a tag like:
<?xml version="1.0" encoding="UTF-8"?>
Now once you find a few printers you can also look at the services and you my come up with more criteria. This may require groovy if it is more advanced like the OS contains X or Service contains Y then it is a printer. Let me know more specifics.
thanks for the script, i think i had to write this in my question... my requirement is to tag below three printers as tag "printers". and their OS name in scans are :-
-- Ricoh Printer
-- Epson Printer
-- Ricoh Aficio Printer
See if that is working for you. There are several methods groovy scripting is a last resort but if you want code let me know.
I copied and past this to my existing tag but i am getting "An error occurred while creating the tag: An error has occurred" error. so i created a new tag but still the same error. i also tried below but same error.
What was the error? I tried this and did not get an error of any kind and the TAG did match records.
Do you have groovy scriptlets enabled for your account? Your TAM should be able to tell you for sure then we could write groovy to do this.
Try pasting into something like notepad first or create the asset search then modify. I would need to know what error you get though.
the error is "An error occurred while creating the tag: An error has occurred"
In the Vulnerability Management console goto the Asset Search Function. Put in the group All if you want, then go to the selection below that for Operating System.
Select that option and change to contains then enter one of your printers your interested in like ricoh. Now execute the search to make sure you find some assets. Once you have that working on the Asset Search screen at the bottom click on the CREATE TAG. Now you should have a TAG under Asset Search TAG in the Asset Tags.
You should be able to edit the TAG as originally discussed. Be sure you selected to re-eval on save.
If Groovy isn't enabled on your account, you could choose to create a OS Regex based tag for every printer brand you are looking for and make a parent tag called Printers and make all others a child tag to it. You could also have an OR operator in your tag rule under "OS regex".
I still recommend finding a unique way to identify a target as scanner and base the tag on property of the asset and not just host name as Epson and Ricoh do have other equipments too.
Well, to fit the purpose you could use a Static tag as the printers would be on a static IP.
But if the OS is getting identified with a scan, then you could try looking for OS regular expression and modify the tag to include the words I see in your 2nd post.
A better way to make a dynamic tag around printing/scanning kind of assets would be a unique property specific to these kind of devices like a specific port/app/services.
Retrieving data ...