Python script that allows to blacklist IPs on McAfee Network Security Platform.
The uses is quite straightforward, bellow you can see some examples
You can get access to the code on https://github.com/built4tech/nsmcli
The uses is quite straightforward, bellow you can see some examples
Usage
nsmcli.py [-h] -u USER -p PASSWORD -nsm NSM_IP [-get_sensors][-get_qhosts][-sensor SENSOR_NAME][-i IP_ADDRESS][-quarantine][-remove] [-t {15,30,45,60,240,480,720,960,999}][--version]
Examples of usage
- Get the list of sensors managed by a Network Security Manager
nsmcli.py -u admin -p admin123 -nsm 192.168.0.202 -get_sensors
Name ID Model Sensor IP SW Ver Sigset Ver Active
M2750-4pocs 1001 M-2750 192.168.0.203 7.5.3.16 7.6.14.9 1 - Get the list of quarantine IPs
nsmcli.py -u admin -p admin123 -nsm 192.168.0.202 -get_qhostsQuarantined hosts for M2750-4pocsIP Address Time (Milliseconds)
123.1.1.1 1375816982000
124.1.1.1 1375818027000 - Set ip address 10.10.10.100 to quarantine during the default period of time
nsmcli.py -u admin -p admin123 -nsm 192.168.0.202 -i 10.10.10.100 -quarantineSensor M2750-4pocs IP 10.10.10.100 quarantine for FIFTEEN_MINUTES - Remove ip address 10.10.10.100 from quarantine
nsmcli.py -u admin -p admin123 -nsm 192.168.0.202 -i 10.10.10.100 -removeSensor M2750-4pocs IP 10.10.10.100 removed from quarantine - Set ip address 10.10.10.100 to quarantine during 45 minutes, get the list of sensors managed by te Network Security Manager and get the list of quarantine IP from sensor M2750-4pocs
nsmcli.py -u admin -p admin123 -nsm 192.168.0.202 -i 10.10.10.101 -quarantine -t 45 -get_sensors -get_qhosts -sensor M2750-4pocsSensor M2750-4pocs IP 10.10.10.101 quarantine for FORTYFIVE_MINUTESName ID Model Sensor IP SW Ver Sigset Ver ActiveM2750-4pocs 1001 M-2750 192.168.0.203 7.5.3.16 7.6.14.9 1Quarantined hosts for M2750-4pocsIP Address Time (Milliseconds)123.1.1.1 1375816982000
124.1.1.1 1375818027000
10.10.10.100 1375818561000
10.10.10.101 1375818608000 - Remove IP address 10.10.10.100 from quarantine, get the list of managed sensors and the list of quarantine IPs on sensor M2750-4pocs
nsmcli.py -u admin -p admin123 -nsm 192.168.0.202 -i 10.10.10.100 -remove -get_sensors -get_qhosts -sensor M2750-4pocsSensor M2750-4pocs IP 10.10.10.100 removed from quarantineName ID Model Sensor IP SW Ver Sigset Ver Active
M2750-4pocs 1 001 M-2750 192.168.0.203 7.5.3.16 7.6.14.9 1Quarantined hosts for M2750-4pocsIP Address Time (Milliseconds)123.1.1.1 1375816982000
124.1.1.1 1375818027000
10.10.10.101 1375818608000
10.10.10.102 1375818798000
10.10.10.103 1375818860000
You can get access to the code on https://github.com/built4tech/nsmcli
Unfortunately, is not a|there is not any} trick to ensure that|to make sure that} you win each game you play at 소울카지노 one of the best roulette apps. However, many online avid gamers believe that methods such because the reverse Martingale strategy will enhance your odds. To help you get began, we’ve put collectively slightly more information about every beneath.
ReplyDelete