The
addrepository command adds a repository for DAT updates in environments that ePolicy Orchestrator (ePO) doesn’t manage. 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 Man 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:
ENSLTP 10.6.6 and later: mfetpcli --addrepository --name [repository name] --type [http | ftp | local] --url [repository URL] --port [port number] --username [user name] --password [password] --priority [priority]
ENSLTP 10.6.5 and earlier: isecav --addrepository --name [repository name] --type [http | ftp | local] --url [repository URL] --port [port number] --username [user name] --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 - User name to access the repository
- --password - Password to access the repository
- --priority - Priority of the repository
- Show all repositories and proxy settings:
ENSLTP 10.6.6 and later: mfetpcli --showrepositories
ENSLTP 10.6.5 and earlier: isecav --showrepositories
- Disable the repository:
ENSLTP 10.6.6 and later: mfetpcli --disablerepository --name [repository name]
ENSLTP 10.6.5 and earlier: isecav --disablerepository --name [repository name]
Where:
- --name - Name of the repository
- Enable the repository:
ENSLTP 10.6.6 and later: mfetpcli --enablerepository --name [repository name]
ENSLTP 10.6.5 and earlier: isecav --enablerepository --name [repository name]
Where:
- --name - Name of the repository
- Set the priority of the repository:
ENSLTP 10.6.6 and later: mfetpcli --setrepositorypriority --name [repository name] --priority [priority]
ENSLTP 10.6.5 and earlier: isecav --setrepositorypriority --name [repository name] --priority [priority]
Where:
- --name - Name of the repository
- --priority - Priority of the repository
Example usage:
To show the repository default settings:
ENSLTP 10.6.6 and later:
# /opt/isec/ens/threatprevention/bin/mfetpcli --showrepositories
ENSLTP 10.6.5 and earlier:
# /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 |
------------------------------------------------------------------------------------------------------
To add an HTTP repository with the highest priority:
ENSLTP 10.6.6 and later:
# /opt/isec/ens/threatprevention/bin/mfetpcli --addrepository --name vm140Http --type http --url vm140.example.com/software --port 80 --priority 1
ENSLTP 10.6.5 and earlier:
# /opt/isec/ens/threatprevention/bin/isecav --addrepository --name vm140Http --type http --url vm140.example.com/software --port 80 --priority 1
Repository was added successfully
ENSLTP 10.6.6 and later:
# /opt/isec/ens/threatprevention/bin/mfetpcli --showrepositories
ENSLTP 10.6.5 and earlier:
# /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 |
-------------------------------------------------------------------------------------------------------
To change the priority of the newly added repository:
ENSLTP 10.6.6 and later:
# /opt/isec/ens/threatprevention/bin/mfetpcli --setrepositorypriority --name vm140Http --priority 2
ENSLTP 10.6.5 and earlier:
# /opt/isec/ens/threatprevention/bin/isecav --setrepositorypriority --name vm140Http --priority 2
Repository's priority was changed successfully
ENSLTP 10.6.6 and later:
# /opt/isec/ens/threatprevention/bin/mfetpcli --showrepositories
ENSLTP 10.6.5 and earlier:
# /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 |
------------------------------------------------------------------------------------------------------
To disable the newly added repository:
ENSLTP 10.6.6 and later:
# /opt/isec/ens/threatprevention/bin/mfetpcli --disablerepository --name vm140Http
ENSLTP 10.6.5 and earlier:
# /opt/isec/ens/threatprevention/bin/isecav --disablerepository --name vm140Http
Repository was disabled successfully
ENSLTP 10.6.6 and later:
# /opt/isec/ens/threatprevention/bin/mfetpcli showrepositoriestp
ENSLTP 10.6.5 and earlier:
# /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 |
|No N.A vm140Http http vm140.example.com software 80 N.A |
------------------------------------------------------------------------------------------------------