Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel here.

Getting Started

Reply

WAPI Function for Polling Grid Members

New Member
Posts: 3
1788     2

NIOS v8.5.2:

 

I have a script that emails our team when a DNS restart is required (since we disabled the banner, it caused too much confusion amongst other users). It checks the member status for "REQUESTING". I realized this is not accurate since if the members aren't "polled" they will continue to report that they do not need a restart. I cannot find anywhere in the WAPI docs any sort of function for polling grid members as to their restart status. Anyone have any ideas?

 

Thanks!

Re: WAPI Function for Polling Grid Members

Moderator
Moderator
Posts: 306
1789     2

Asking for the status:

curl -k1 -u admin:infoblox -X GET 'https://192.168.1.2/wapi/v2.11/restartservicestatus'

If you haven't polled recently, the status will be "NO_REQUEST". 

 

    {
        "dhcp_status": "NO_REQUEST", 
        "dns_status": "NO_REQUEST", 
        "member": "ddi.example.com", 
        "reporting_status": "DISABLED"
    }

 

Use the requestrestartservicestatus function to ask the grid to retrieve the current status from each member

 

curl -k1 -u admin:infoblox -X POST 'https://192.168.1.2/wapi/v2.11/grid/b25lLmNsdXN0ZXIkMA:Infoblox?_function=requestrestartservicestatus'

Then ask until the status changes from REQUESTING to either YES or NO:

 

    {
        "dhcp_status": "REQUESTING", 
        "dns_status": "REQUESTING", 
        "member": "ddi.example.com", 
        "reporting_status": "DISABLED"
    }

after a few seconds, it will flip.  DHCP is requesting restart in this case:

 

    {
        "dhcp_status": "YES", 
        "dns_status": "NO", 
        "member": "ddi.example.com", 
        "reporting_status": "DISABLED"
    }

 

Re: WAPI Function for Polling Grid Members

[ Edited ]
New Member
Posts: 1
1789     2

Design an appropriate API endpoint for polling grid members. This could be a GET request to a specific URL, such as /grid-members.

Define the necessary request parameters or headers, if any, to specify any filtering criteria or authentication information required for accessing the grid members' data.

Implement the server-side logic to handle the API request. This would involve retrieving the relevant data for the grid members and preparing the response.

Return the response in an appropriate format, such as JSON or XML, including the information of the grid members.

On the client-side, make periodic requests to the API endpoint at regular intervals to poll the grid members' status. You can use techniques like setTimeout or setInterval in JavaScript to schedule the polling requests.

Process the responses received from the server and update your application or user interface based on the grid members' status.

It's important to tailor the above steps to your specific requirements and the technology stack you are working with. Additionally, make sure to consider any security considerations, such as authentication and authorization, when implementing the polling functionality.

If you are working with a specific framework or technology, please provide more details so that I can provide more specific guidance or code examples.

 

 

illegal pickleball paddles

Showing results for 
Search instead for 
Did you mean: 

Recommended for You

Businesses are investing heavily into securing company resources from cyber-attacks form cybercrimin