Dear all,
I created a script that first needs to delete table of reserved addressed for DHCP server before it starts creating new entries.
However, purge command requires confirmation from the user and this is something that I don’t know how to achieve inside of the script. If I’m entering commands one by one there is no issue.
I’ve tried with solution recommended here: https://community.fortinet.com/t5/Support-Forum/Inserting-a-PURGE-command-into-a-script/m-p/29958 but without success.
Here are the details:
Script:
config system dhcp server
edit 4
config reserved-address
purge\ny <--breaks here
edit 0
set mac 4c:02:20:5c:65:61
set action assign
next
edit 0
set mac 28:c2:1f:5b:f2:35
set action assign
next
end
OS version is 7.4
Thank you in advance!
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Hi Milosh
The following works for me:
purge
y
Try using Teraterm instead of Putty as temporary workaround with previous synthax in two lines:
purge
y
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1714 | |
1093 | |
752 | |
447 | |
232 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.