Skip to content

Commit f5f6cb7

Browse files
Create README.md
1 parent e523150 commit f5f6cb7

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

jobs/account-port-scan/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Scan Floating IPs and Classic IaaS
2+
3+
This python script will scan all the Floating IPs associated with your IBM Cloud account as well as the classic virtual and bare metal servers with public IPs.
4+
5+
## Run locally
6+
7+
### Clone the repository
8+
9+
The first step is to clone the respository and change in to our port scan directory:
10+
11+
```shell
12+
git clone https://github.com/cloud-design-dev/dts-ce-demo.git
13+
cd dts-ce-demo/jobs/account-port-scan
14+
```
15+
16+
### Set the classic username and cloud API keys
17+
18+
```shell
19+
export IBMCLOUD_CLASSIC_USERNAME="YOUR_CLASSIC_IAAS_USER"
20+
export IBMCLOUD_CLASSIC_API_KEY="YOUR_CLASSIC_IAAS_API_KEY"
21+
export IBMCLOUD_API_KEY="YOUR_IBMCLOUD_API_KEY"
22+
```
23+
24+
### Install python requirements
25+
26+
Install the required python SDKs to interact with the classic and vpc resources.
27+
28+
```shell
29+
pip install -r requirements
30+
```
31+
32+
### Run script
33+
34+
With the variables set and modules installed, you can run the script:
35+
36+
```
37+
python app.py
38+
```

0 commit comments

Comments
 (0)