DELL Version 5.3 Manual Do Utilizador
Adaptive CLI Script Language Syntax | Actions and Adaptive CLI
419
finger_test.pl—Check if the finger service is running on a specified host.
ftp_test.pl—Check the FTP service is running on a specified host.
http_test.pl—Check the HTTP service is running on a specified host.
nntp_test.pl—Check if the NNTP service is running on a specified host. (Public NNTP server to
ftp_test.pl—Check the FTP service is running on a specified host.
http_test.pl—Check the HTTP service is running on a specified host.
nntp_test.pl—Check if the NNTP service is running on a specified host. (Public NNTP server to
test: news.aioe.org)
peping_test.pl—Check if a target is pingable from the specified remote host.
pop3_test.pl—Check if the POP3 service is running on a specified host.
smtp_test.pl—Check if the SMTP service is running on a specified host.
telnet_test.pl—Check if the TELNET service is running on a specified host.
pop3_test.pl—Check if the POP3 service is running on a specified host.
smtp_test.pl—Check if the SMTP service is running on a specified host.
telnet_test.pl—Check if the TELNET service is running on a specified host.
Adaptive CLI Script Language Syntax
Here's the Adaptive CLI scripting language syntax:
• CLI script is a line-based syntax. In other words, each line’s syntax has to be completed.
• CLI script supports primarily two features: Attributes and Conditional Blocks.
• CLI script supports primarily two features: Attributes and Conditional Blocks.
Attributes
Each attribute in the script is marked by a delimiter. The following delimiters are supported:
<> [] {} () $ % @ #
Think of Attribute delimiters as a pair of open/close markers surrounding a variable name. For
single character Attribute delimiters, there is no closing marker (the close marker is empty).
Examples of Attributes are:
Examples of Attributes are:
<var>, [var], {var}, (var), $var, %var, #var, @var
The default mandatory delimiters are <>, and the default optional delimiters are [], but you can
change those default settings. That means an Attribute variable like <var> may represent a
mandatory or an optional Attribute depending on what are set as delimiters.
NOTE:
Single delimiter symbols require a space after the attribute. These do allow values immediately before the
symbol. Perl requires a space after the attribute, or the attribute’s closing delimiter, but values immediately
before single delimiters works.
symbol. Perl requires a space after the attribute, or the attribute’s closing delimiter, but values immediately
before single delimiters works.
Here is an example of a command line with a mandatory and optional Attribute:
show <mandatory> [optional]
If you set the
<mandatory>
Attribute to interface and do not set the
[optional]
one, then the
resulting command would be this:
show interface