C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
Utility Commands on Cisco IOS XR Software
utility bc
SMR-731
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
Use the
utility bc
command to use the an interactive, programmable calculator that supports a complete
set of control structures, including functions. The utility first processes any specified files, and then
reads input from the keyboard (standard input).
Input files (and standard input) are ASCII text files containing sequences of bc statements to be executed.
Note
The bc utility uses the bc programming language, an arbitrary precision calculator language with syntax
similar to the C programming language. The bc utility does not support character or string manipulation.
The bc utility supports:
•
26 functions
•
26 simple variables
•
26 array variables (up to 2048 elements per array).
The bc utility supports the following common programming language constructs:
•
“if”, “while”, and “for” statements
•
User-defined functions with parameters
•
Local variables
Information About Supported Network Protocols
In the syntax for the
ftp:
,
rcp:
, and
tftp:
network protocols, the location is either an IP address or a
hostname. The filename is specified relative to the directory used for file transfers.
When no device is specified, the current directory is used. To view the current directory, enter the
pwd
command.
describes the network protocols supported by the Cisco IOS XR software.
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.
Table 90
Network Protocols Supported by the Cisco IOS XR software
Prefix
Name
Description
tftp:
Trivial File Transfer
Protocol
TFTP is a simplified version of FTP that allows files to be
transferred from one computer to another over a network,
usually without the use of client authentication (for
example, username and password).
ftp:
File Transfer Protocol
FTP is an application protocol, part of the TCP/IP
protocol stack, and is used for transferring files between
network nodes. FTP requires a username and password.
rcp:
remote copy protocol
Rcp is a protocol that allows users to copy files to and
from a file system residing on a remote host or server on
the network. Rcp uses TCP to ensure the reliable delivery
of data. Rcp downloads require a username.