|
Table Of Contents
Command Reference
This chapter describes the following Linux commands, which are used in the Cisco Metro 1500 series environment.
• passwd
• pico
Note The number of Linux commands available is limited by the amount of available Flash memory.
passwd
Name
passwd-Change password
Synopsis
passwd [name]
Description
passwd changes the specified user's password. Only the superuser is allowed to change other users' passwords. If the user is not root, then the old password is prompted for and verified.
A new password is prompted for twice, to avoid typing mistakes. Unless the user is the superuser, the new password must have more than six characters, and must have either both uppercase and lowercase letters, or non-letters. Some passwords that are similar to the user's name are not allowed.
Files
/etc/passwd
/etc/shells
Bugs
•A password consisting of all digits is allowed.
•No warnings are printed if the superuser chooses a poor password.
•The -f and -s options are not supported.
pico
Name
pico-Simple text editor in the style of the Pine Composer
Synopsis
pico [options] [file]
Description
pico is a simple, display-oriented text editor based on the Pine message system composer. As with Pine, commands are displayed at the bottom of the screen, and context-sensitive help is provided. As characters are typed they are immediately inserted into the text.
Editing commands are entered using Control-key combinations. As a workaround for communications programs that swallow certain control characters, you can emulate a Control key by pressing Escape twice, followed by the desired control character, for example Esc Esc C would be equivalent to entering a ^C. The editor has five basic features: paragraph justification, searching, block cut/paste, spelling checker, and file browser.
Paragraph justification takes place in the paragraph that contains the cursor, or, if the cursor is between lines, in the paragraph immediately below. Paragraphs are delimited by blank lines, or by lines beginning with a space or tab. Unjustification can be done immediately after justification using the ^U key combination.
String searches are not sensitive to case. A search begins at the current cursor position and wraps around the end of the text. The most recent search string is offered as the default in subsequent searches.
Blocks of text can be moved, copied, or deleted with creative use of the command for mark (Ctrl-^), delete (^K), and undelete (^U). The delete command removes text between the "mark" and the current cursor position, and places it in the "cut" buffer. The undelete command effects a "paste" at the current cursor position.
The spell checker examines all words in the text. It then offers, in turn, each misspelled word for correction while highlighting it in the text. Spell checking can be canceled at any time. Alternatively, pico will substitute for the default spell checking routine a routine defined by the SPELL environment variable. The replacement routine should read standard input and write standard output.
The file browser is offered as an option in the "Read File" and "Write Out" command prompts. It is intended to help in searching for specific files and navigating directory hierarchies. Filenames with sizes and names of directories in the current working directory are presented for selection. The current working directory is displayed on the top line of the display while the list of available commands takes up the bottom two. Several basic file manipulation functions are supported: file renaming, copying, and deleting. More specific help is available in pico online help for these functions.
A screen shot of pico is shown in Figure 6-1. Table 6-1 lists and describes pico options.
Figure 6-1 Screenshot of pico Used with CRT
Options
Table 6-1 describes pico options.
When pico is disconnected (SIGHUP), pico saves the current work, if necessary, before exiting. Work is saved under the current filename with .save appended. If the current work is unnamed, it is saved under the filename pico.save.
Bugs
How pico displays lines that are longer than the display width is not obvious. A $ at the end of a line indicates that the line continues beyond the display width. Long lines are scrolled horizontally as the cursor moves to the right.
Files
pico.save-Unnamed interrupted work saved here.
*.save-Interrupted work on a named file is saved here.
snmpconfig
Name
snmpconfig-Configuration tool for the event manager snmptrapd
Synopsis
snmpconfig [-?]
Description
snmpconfig customizes the event manager snmptrapd. Enter the corresponding key to change the settings in snmptrapd.conf. Table 6-2 lists screen shot keys. Table 6-3 lists and describes snmpconfig keys.
Screen Shot
Table 6-2 describes the screen shot keys.
Keys
Table 6-3 describes snmpconfig keys.
Options
-? Show version information
Files
/etc/snmptrapd.conf, /tmp/RAMLog.log,
/etc/FlashLog.log
See Also
snmptrapd.conf
Bugs
•Additional comments are not saved in snmptrapd.conf.
•When changing the priority of events all events must be edited.
•There are problems with keys remaining in the keyboard buffer.
Posted: Tue Apr 26 05:59:26 PDT 2005
All contents are Copyright © 1992--2005 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.