Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
RippUSA
New Contributor

Cannot delete web filter override

I have a Fortigate 200B running Firmware Version 4.0 MR3 Patch 3. When I try to delete several entries I have made in UTM Profiles\Web Filter\Rating Overrides I get an error " Invalid Lentgh of entry" and cannot delete them. I can still delete some entries just not very specific " longer" entries. I have looked through the CLI handbook to see if there was a way to do it that way but was unsuccessful. How do I delete these unwannted entries when I receive this error??[>:]
11 REPLIES 11
ede_pfau
SuperUser
SuperUser

hi, welcome to the forums. You can try to delete the entries in the CLI:
 config webfilter ftgd-ovrd-user
    delete " some&StickyEntry" 
 end
 
Use quotes around the object' s name even if it doesn' t contain spaces. If that doesn' t help there' s a ' purge' command available...that clears all overrides. To see all commands available just type ' ?' .
Ede Kernel panic: Aiee, killing interrupt handler!
Ede Kernel panic: Aiee, killing interrupt handler!
RippUSA
New Contributor

Thanks for the quick response. I have a " ?" in the entry itself. When I try to type the CLI command to delete it, the Fortigate returns the cursor and errors out as error code -651. The unit automatically thinks I am asking for help as soon as a type a question mark (?). I was going to try and copy and paste the entry into the delete command on the CLI interface. However, when I double click on the entry in the GUI interface to copy the line, I get an " entry not found" . So maybe it was deleted through the GUI when I tried that way but is somehow caching information back to the screen from somewhere. May have to purge everything and re-enter all the overrides?!
rwpatterson
Valued Contributor III

Have you tried putting quotes around the name?

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
pchechani_FTNT

when I double click on the entry in the GUI interface to copy the line, I get an " entry not found" .
So when you list the entries in CLI, were you able to see that entry.
-p
ede_pfau
SuperUser
SuperUser

Quotes won' t help you in this case. There' s a secret workaround for it: type ' Ctrl-V' , then ' ?' Psst, don' t tell anybody. Another support case Fortinet will not have to solve.
Ede Kernel panic: Aiee, killing interrupt handler!
Ede Kernel panic: Aiee, killing interrupt handler!
RippUSA
New Contributor

Thanks ede_pfau I was able to " Cntrl-C" and " Cntrl-V" the actual line in the Web Filter Override and paste it into the CLI. However, when I pasted it in...it removed the " ?" automatically in the linefrom the clipboard. So I even tried copying a question mark from word and tried pasting it in the middle of the line and it will not let me paste a " ?" . Weird. And yes pchechani I put it all in quotes and even tried deleting without the " ?" and I get error code -651. Any other ideas? I have included a shout of the web filter override for all.
pchechani_FTNT

" ?" represents the help. And that is why even when you copy pasting, when " ?" character is there, you see a line break and some related error message displayed. Now what ede_pfau has mentioned is correct, you dont' have to copy paste the complete string, but whereever you have to put " ?" you need to first give command ctrl-v and then type " ?" and then rest of the string. I feel that is little complicated but that is the fastest way to type " ?" on CLI. Other way is you can restore the config after removing those entries. Hope this helps resovling your issue.
-p
ede_pfau
SuperUser
SuperUser

I wrote ' type Ctrl-V, then ?' and I meant it. This has nothing to do with other uses of Ctrl-V in Windows - we' re on a FGT command line and not in Windows. Typing ' Ctrl-V' immediately before any special character will enter that character literally in the CLI.
Ede Kernel panic: Aiee, killing interrupt handler!
Ede Kernel panic: Aiee, killing interrupt handler!
rwpatterson
Valued Contributor III

Can those entries be deleted by number?

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors