---
title: "set regenerate_anycast_password"
canonical: "https://docs.infoblox.com/space/nios86/35756170/set%20regenerate_anycast_password"
format: markdown
---
The `set regenerate_anycast_password` command regenerates eight-character alphanumeric password for the anycast service and saves it to the NIOS database. The password can then be used <span style="color: #000000">across all anycast</span><span style="color: #000000"> </span>configuration files (ospf.conf, bgp.conf, bfd.conf) with the following CLI commands:

- show ospf
- show bgp
- show ipv6_ospf
- show ipv6_bgp
- show bfd

When these commands are executed with the configuration argument, the values of the password and enable password fields are shown encrypted. Running `set regenerate_anycast_password` restarts the anycast service on the Grid members that have the anycast service enabled. For information on OSPF commands, see [*show ospf*](https://infoblox-docs.atlassian.net/wiki/display/nios86draft/show+ospf) and [*show ipv6_ospf*](https://infoblox-docs.atlassian.net/wiki/display/nios86draft/show+ipv6_ospf). For information on BGP commands, see *[show bgp](https://infoblox-docs.atlassian.net/wiki/display/nios86draft/show+bgp)*[ ](https://infoblox-docs.atlassian.net/wiki/display/nios86draft/show+bgp)and *[show ipv6_bgp](https://infoblox-docs.atlassian.net/wiki/display/nios86draft/show+ipv6_bgp)*. For information on bfd command, see *[show bfd](https://infoblox-docs.atlassian.net/wiki/display/nios86draft/show+bfd)*.   

> ⚠️ **Note**
> ⚠️ 
> ⚠️ Only superusers can use `set regenerate_anycast_password` in maintenance mode.

# Syntax

`set regenerate_anycast_password`

This command has no arguments. 

# Example

`Maintenance Mode > set regenerate_anycast_password`  
`Resetting the password will restart the anycast service.`  
`Do you want to proceed? (y or n):y`  
`Are you sure? (y or n):y`  
`Anycast password generation is successful.`