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-730
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
utility bc
To implement an arbitrary precision calculator, use the
utility bc
command in EXEC mode or
administration EXEC mode.
utility bc
[
file
input-file
]
Syntax Description
Defaults
If an input file is not specified, the standard input (keyboard) is used.
Command Modes
EXEC
Administration EXEC
file
input-file
(Optional) Specifies the text file containing commands and function
definitions to be interpreted by the bc utility.
After all files have been read, the bc utility reads input from the standard
input (keyboard). If no files are specified, then only the standard input
(keyboard) is used.
The
input-file
syntax is:
device
:
[
/
directory-path
]
/
filename
Include the alias for the
device
argument, followed by a colon, and,
optionally, the name of a directory. The possible devices are:
•
disk0
:—Uses a file from disk0: file system.
•
disk0a
:—Uses a file from disk0a: file system partition.
•
disk1
:—Uses a file from disk1: file system.
•
disk1a
:—Uses a file from disk1a: file system partition.
•
ftp:
—Uses a file from an FTP network server. The syntax is
ftp:
[[[//
username
[
:
password
]@]
location
]/
directory
]/
filename.
•
harddisk
:—Uses a file from the hard disk drive file system (if present).
•
harddiska:
—Uses a file from the hard disk partition (if present).
•
nvram:
—Uses a file from the nvram: file system.
•
ipv4
—Uses a file from an IPv4 access list or prefix list.
•
ipv6
—Uses a file from an IPv6 access list or prefix list.
•
rcp:
—Uses a file from a remote copy protocol (rcp) network server. The
syntax is
rcp:
[[[//
username@
]
location
]/
directory
]/
filename.
•
tftp:
—Uses a file from a TFTP network server. The syntax is
tftp:
[[//
location
]/
directory
]/
filename.
Use the online help system to display the available devices and network
protocols.