Skip to content

ari-neto/tmds9-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Security Scripts

Scripts written in pyhton to execute some actions through the DSM APIs. The goal is to help how to use scripts to make the administration of Deep Security solution even easier.

Dependencies

A unified python SDK for the Trend Micro Deep Security APIs http://trendmicro.com/deepsecurity

https://github.com/deep-security/deep-security-py

Version

1.0

Deep Security Manager Tested Version

9.6

Usage

git clone https://github.com/ari-neto/tmds.git
cd tmds
git submodule update --init 
./ds_script.py

The script will list some informations about the DS Client:

  • Computer_ID
  • Computer Name
  • Recommend Rules
  • Overall Status
  • Overal Version
  • Overall Anti Malware Status
  • Overall Anti Firewall Status
  • Overall Anti IPS Status
  • Overall Web Reputation Status
  • Overall Log Inspection Status

And will execute this actions:

  • clear_alerts_and_warnings
  • send_events

The filter used in the script is to list informatons with DSA 9.x clients, you could use the script to be executed to a specific client to do it you need to change "overall_versio"='9.|8.'" to "name=''.

Change

  for computer_id in mgr.computers.find(overall_version='9.*|8.*'):

to

   for computer_id in mgr.computers.find(name='<computer name>'):

You should to define your credenditals with API Access in the script (ds_script.py line 6), to enable API Access:

hostname=<your DSM IP or DSM FQDN>
username=<DSM Username with API Access>
password=<DSM Username password>

API Support and API Rights

API_Enabled API_Access

About

Deep Security 9 - Scripts sample

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages