Loading...

Knowledge Center


Introduction to the 'addrepository' command option in Endpoint Security for Linux Threat Prevention
Technical Articles ID:   KB89034
Last Modified:  3/31/2017
Rated:


Environment

McAfee Endpoint Security for Linux Threat Prevention (ENSLTP) 10.2.1

Summary

ENSLTP 10.2.1 introduces the addrepository command to add a repository for DAT updates in environments that are not managed by ePolicy Orchestrator (ePO). This article explains how to use the command, including the command line syntax and specific examples. For more information about using the command, see the Main Page Help in the software.
 
Command line syntax:
Use the following command line syntax when you create and manage a repository for DAT updates.
  • Create the repository:
    isecav --addrepository --name [repository name] --type [http | ftp | local] --url [repository URL] --port [port no]  --username [username]  --password [password] --priority [priority]

    Where:
    • --name - Name of the repository
    • --type [http | ftp | local] - Repository type. Allowed values are http, ftp, or local.
    • --url - URL of the repository
    • --port - Port number of the repository
    • --username - Username to access the repository
    • --password - Password to access the repository
    • --priority - Priority of the repository
     
  • Show all the repositories and proxy settings:
    isecav --showrepositories
     
  • Disable the repository:
    isecav --disablerepository --name [repository name]
     
    Where:
    • --name - Name of the repository
     
  • Enable the repository:
    isecav --enablerepository --name [repository name]
     
    Where:
    • --name - Name of the repository
     
  • Set the priority of the repository:
    isecav --setrepositorypriority --name [repository name] --priority [priority]
     
    Where:
    • --name - Name of the repository
    • --priority - Priority of the repository
     
Example usage:
 
Show the repository default settings:

# /opt/isec/ens/threatprevention/bin/isecav --showrepositories
Repository Settings
------------------------------------------------------------------------------------------------------
|Enabled   Priority   Name       Type    Server Name      Server Path                Port   Username |
-------------------------------------------------------------------------------------------------------
|Yes       1          NAIHttp    http    update.nai.com    products/commonupdater    80     N.A      |
|Yes       2          NAIFtp     ftp     ftp.nai.com       CommonUpdater             21     anonymous|
------------------------------------------------------------------------------------------------------

 
To add an HTTP repository with the highest priority:

# /opt/isec/ens/threatprevention/bin/isecav --addrepository --name vm140Http --type http --url vm140.example.com/software --port 80 --priority 1
Repository was added successfully
# /opt/isec/ens/threatprevention/bin/isecav --showrepositories
Repository Settings
 -------------------------------------------------------------------------------------------------------
|Enabled   Priority   Name       Type    Server Name         Server Path              Port    Username |
 -------------------------------------------------------------------------------------------------------
|Yes       1          vm140Http  http    vm140.example.com   software                 80      N.A      |
|Yes       2          NAIHttp    http    update.nai.com      products/commonupdater   80      N.A      |
|Yes       3          NAIFtp     ftp     ftp.nai.com         CommonUpdater            21      anonymous|
 -------------------------------------------------------------------------------------------------------

 
To change the priority of the newly added repository:

# /opt/isec/ens/threatprevention/bin/isecav --setrepositorypriority --name vm140Http --priority 2
Repository's priority was changed successfully
# /opt/isec/ens/threatprevention/bin/isecav --showrepositories
Repository Settings
 ------------------------------------------------------------------------------------------------------
|Enabled   Priority   Name      Type    Server Name         Server Path               Port   Username |
 ------------------------------------------------------------------------------------------------------
|Yes       1          NAIHttp    http    update.nai.com     products/commonupdater    80     N.A      |
|Yes       2          vm140Http  http    vm140.example.com  software                  80     N.A      |
|Yes       3          NAIFtp     ftp     ftp.nai.com        CommonUpdater             21     anonymous|
 ------------------------------------------------------------------------------------------------------

 
To disable the newly added repository:

# /opt/isec/ens/threatprevention/bin/isecav --disablerepository --name vm140Http
Repository was disabled successfully
# /opt/isec/ens/threatprevention/bin/isecav showrepositoriestp
Repository Settings
 ------------------------------------------------------------------------------------------------------
|Enabled   Priority   Name      Type    Server Name         Server Path               Port   Username |
 ------------------------------------------------------------------------------------------------------
|Yes       1          NAIHttp    http    update.nai.com     products/commonupdater    80     N.A      |
|Yes       2          NAIFtp     ftp     ftp.nai.com        CommonUpdater             21     anonymous|
|No        N.A        vm140Http  http    vm140.example.com  software                  80     N.A      |
 ------------------------------------------------------------------------------------------------------

 

Rate this document

Languages:

This article is available in the following languages:

English United States
Japanese

Beta Translate with

Select a desired language below to translate this page.

Glossary of Technical Terms


 Highlight Glossary Terms

Please take a moment to browse our Glossary of Technical Terms.