0

I'm trying to use SoftLayer's API to execute vulnerability scans on multiple hosts from Python. To be more precise, I'm trying to scan around 200 hosts. I have noticed the presence of request throttling so I'm starting the scans 1 host per minute. Everything works perfectly fine up to around 63-64 hosts. I can see the scans running. But, after that if I try to start a new scan I receive the following exception.

Unable to create a new object of type SoftLayer_Network_Security_Scanner_Request_Nessus. Make sure the authentication method is correct.

Could someone please help me to figure out what could be the issue as the root cause of the exception is definitely not incorrect authentication method.

Keymandll
  • 35
  • 3

1 Answers1

0

This is a know issue, you need to provide the accountId, ipAddress, guestId or hardwareId.

It was answered before here SoftLayer Vulnerability Scan Python

Also you can review https://sldn.softlayer.com/blog/jmarhee/nessus-security-scans-using-softlayer-api

Regards,

Community
  • 1
  • 1
Albert Camacho
  • 1,129
  • 1
  • 7
  • 13
  • Sorry, but my issue is not about that. I'm sending all the required details with the requests. As you can see I have mentioned that scans are running perfectly fine until I attempt to execute the 64th scan as that and any future requests will result in the exception I have mentioned. – Keymandll Apr 20 '17 at 16:22
  • I'm unable to get that error, could you post the code you are using to scan all those 200 hosts?. – Albert Camacho Apr 20 '17 at 20:53
  • I was able to reproduce it, in my case the error was raised when was set **hostId** instead of **hardwareId**. Please verify if it is the same case. The correct configuration is **hardwareId for bare metal servers** and **guestId for Virtual Guests** – Albert Camacho Apr 20 '17 at 22:21
  • The issue was exactly what you have just mentioned. I was not using the hardwareId. I have fixed, tested and now works perfectly fine. Thank you very much. – Keymandll Apr 22 '17 at 22:01