Friday, October 6, 2017

Hi all, quick post about R80 upgrades. So you're upgrading to R80.x and you've got none ascii stuff in the database(s).

Here is a quick and easy way to see what matches for Objects_5_0.c and rulebases_5_0.fws. This will be shown as network_objects and rulebases in the pre upgrade report.


works for object_5_0.C hits

grep --color='auto' -P '^\t\t:|[^\x00-\x7F]' objects_5_0.C | grep -B1 -P '^\t\t\t'

This works for rulebases_5_0.fws hits

grep --color='auto' -P 'rule-base|[^\x00-\x7F]' rulebases_5_0.fws | grep -P -B 1 '^\t\t\t'

You should get a very clear listing of the offending objects/rules. Let me know if you see a better way to do this. Now you can find out what to clean up via dashboard.

Night!

No comments:

Post a Comment

Danger Will Robinson!