Chapter 21 Anti-Virus

 

 

Table 74 Commands for Anti-virus White and Black Lists (continued)

COMMAND

DESCRIPTION

[no] anti-virus black-list activate

Turn on the black list to log and delete files with names that

 

match the black list patterns.

[no] anti-virus black-list file-pattern

Adds or removes a black list file pattern. Turns a file pattern

av_file_pattern {activatedeactivate}

on or off.

anti-virus black-list replace

Replaces the specified black list file pattern with a new file

old_av_file_pattern new_av_file_pattern

pattern.

{activatedeactivate}

 

21.2.3.1 White and Black Lists Example

This example shows how to enable the white list and configure an active white list entry for files with a .exe extension. It also enables the black list and configure an inactive black list entry for files with a .exe extension.

Router(config)# anti-virus white-list activate Router(config)# anti-virus white-list file-pattern Router(config)# anti-virus white-list file-pattern *.exe activate Router(config)# anti-virus black-list activate

Router(config)# anti-virus black-list file-pattern *.exe deactivate Router(config)# show anti-virus white-list status

anti-virus white-list status: yes Router(config)# show anti-virus white-list No. Status

File-Pattern

===========================================================================

1yes

*.exe

Router(config)# show anti-virus black-list status anti-virus black-list status: yes Router(config)# show anti-virus black-list

No. Status File-Pattern

===========================================================================

1no

*.exe

 

141

NXC CLI Reference Guide