How to Send Multiple SGD Commands
How to Send Multiple SGD Commands

How to Send Multiple SGD Commands

For any
getvar
,
setvar
, or
do
command, if you issue the syntax without the
"1"
and use the END command followed by a space, multiple SGD commands are sent simultaneously.
This syntax shows how you can send multiple
getvar
commands:
! U getvar "ip.telnet.enable" getvar "ip.dhcp.enable" getvar "ip.dhcp.cid_prefix" END
  1. The command portion of the string does not use the "1" after the "! U".
    ! U getvar "ip.telnet.enable"
  2. Commands issued after the first command do not require the "! U".
    getvar "ip.dhcp.enable" getvar "ip.dhcp.cid_prefix"
  3. The string of commands is terminated by the word "END" with a space after the word, and by a carriage return/ line feed.
    END