execute : execute discovery-glb-virtual-server
 
execute discovery-glb-virtual-server
Use this command to populate the global load balancing server configuration virtual server list for the specified virtual server.
Syntax
execute discovery-glb-virtual-server {server|override-server} <servername>
{server|override-server} <servername>
Use server <servername> to populate the virtual server member list with virtual servers from the local FortiADC configuration. <servername> is the name of the global-load-balance servers configuration. After the list had been populated, you can edit the configuration to add a gateway health check.
Use override-server <servername> to discover the virtual server configuration and overwrite any local configuration information for those servers.
Example
FortiADC-VM # config global-load-balance servers
 
FortiADC-VM (servers) # edit FortiADC-2
 
FortiADC-VM (FortiADC-2) # set data-center United_States
FortiADC-VM (FortiADC-2) # set ip 172.30.144.100
FortiADC-VM (FortiADC-2) # set server-type FortiADC-SLB
FortiADC-VM (FortiADC-2) # set sync-status enable
 
FortiADC-VM (FortiADC-2) # show
config global-load-balance servers
edit "FortiADC-2"
set sync-status enable
set ip 172.30.144.100
set data-center United_States
config virtual-server-list
end
next
end
 
FortiADC-VM (FortiADC-2) # end
 
FortiADC-VM # execute discovery-glb-virtual-server server FortiADC-2
 
FortiADC-VM # show global-load-balance servers FortiADC-2
config global-load-balance servers
edit "FortiADC-2"
set sync-status enable
set ip 172.30.144.100
set data-center United_States
config virtual-server-list
edit "mail_example_com"
set ip 192.0.2.2
set port 80
next
edit "www_example_com"
set ip 192.0.2.1
set port 811
next
end
next
end
 
FortiADC-VM # config global-load-balance servers
 
FortiADC-VM (servers) # edit FortiADC-2
 
FortiADC-VM (FortiADC-2) # config virtual-server-list
 
FortiADC-VM (virtual-server~l) # show
config virtual-server-list
edit "mail_example_com"
set ip 192.0.2.2
set port 80
next
edit "www_example_com"
set ip 192.0.2.1
set port 811
next
end
 
FortiADC-VM (virtual-server~l) # edit www_example_com
FortiADC-VM (www_example_com) # set gateway US-ISP1
FortiADC-VM (www_example_com) # end
 
FortiADC-VM (FortiADC-2) # end