Skip to content

Restart Services

Overview

This program is a command-line utility designed to restart protocol services in Grid.

Usage

Usage: restart-service [OPTIONS]

  Restart NIOS Protocol Services

Options:
  Required Parameters: 
    -g, --grid-mgr TEXT           Infoblox Grid Manager  [required]
  Optional Parameters: 
    -u, --username TEXT           Infoblox admin username  [default: admin]
    -s, --service [DNS|DHCP|DHCPV4|DHCPV6|ALL]
                                  select which service to restart  [default: ALL]
    -w, --wapi-ver TEXT           Infoblox WAPI version  [default: 2.11]
  Logging Parameters: 
    --debug                       enable verbose debug output
  -h, --help                      Show this message and exit.

Example

Restart ALL Services

The following example restart all services (DNS,DHCP,DHCPV6).

grid-restore -u admin -g 192.168.1.2

Screen output from command

1
2
3
4
restart-service -u admin -g 192.168.1.2 
Enter password for [admin]: 
2023-12-09 21:04:03 [nios_restart_service.py:89] INFO connected to Infoblox grid manager 192.168.1.2
2023-12-09 21:04:03 [service.py:65] INFO successfully restarted ['ALL'] services

Restart DNS Services

The following example restart DNS services.

grid-restore -u admin -g 192.168.1.2 -s DNS

Screen output from command

1
2
3
4
 restart-service -u admin -g 192.168.1.2 -s DNS
Enter password for [admin]: 
2023-12-09 21:04:52 [nios_restart_service.py:89] INFO connected to Infoblox grid manager 192.168.1.2
2023-12-09 21:04:52 [service.py:65] INFO successfully restarted ['DNS'] services

Restart DHCP Services

The following example restart DHCP services.

grid-restore -u admin -g 192.168.1.2 -s DHCP

Screen output from command

1
2
3
4
restart-service -u admin -g 192.168.1.2 -s DHCP
Enter password for [admin]: 
2023-12-09 21:05:18 [nios_restart_service.py:89] INFO connected to Infoblox grid manager 192.168.1.2
2023-12-09 21:05:18 [service.py:65] INFO successfully restarted ['DHCP'] services

Restart DHCPV6 Services

The following example restart DHCPV6 services.

grid-restore -u admin -g 192.168.1.2 -s DHCPV6

Screen output from command

1
2
3
4
restart-service -u admin -g 192.168.1.2 -s DHCPV6
Enter password for [admin]: 
2023-12-09 21:09:10 [nios_restart_service.py:89] INFO connected to Infoblox grid manager 192.168.1.2
2023-12-09 21:09:10 [service.py:65] INFO successfully restarted ['DHCPV6'] services