cc/td/doc/product/rtrmgmt/cw2000/me_1100
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Command Reference

Command Reference

This appendix summarizes the ME1100 Series CLI commands. When you make a configuration change using these commands, the system configuration is updated immediately.

This appendix contains the following sections:

CLI Conventions

The command-line interface (CLI) uses the following conventions:

For example, when setting an SNMP community string to "public," do not use quotation marks around the string, or the string will include the quotation marks.

Command Privileges

Access to CLI commands is controlled by your user account privilege level. Users with privilege-level 15 can use all commands. Users with privilege-level 0 can use only a subset of the commands. The command descriptions in this appendix are organized by privilege level. For more information about user accounts and privileges, refer to the "Administering User Accounts" section.

Checking Command Syntax

The user interface provides several types of responses to incorrect command entries:

In addition, some commands have command-specific error messages that notify you that a command is valid, but that it cannot run correctly.

Command History Feature

The CLI provides a command history feature. To display previously entered commands, press the up arrow key. After pressing the up arrow key, you can press the down arrow key to display the commands in reverse order. To run a command, press the Enter key while the command is displayed on the command line. You can also edit commands before pressing the Enter key.

System Help

You can obtain help using the following methods:

Command Summary

Table C-1 summarizes all commands available on the system. Refer to the full description of commands that you are not familiar with before using them.


Table C-1: ME1100 Command Summary
Command Privilege Level Summary Description Location of Full Description

clock

15

Set the system date and time.

"clock" section

hostname

151

Erase the configuration in FLASH memory and reload the device.

"hostname" section

erase services

15

Remove the management services from the system

"erase services" section

exit

0

Log out of the system.

"exit" section

fsck

N/A2

Check and repair the filesystem.

"fsck" section

hostname

15

Change the system hostname.

"hostname" section

interface

15

Configure the Ethernet 0 interface.

"interface" section

ip domain-name

15

Define a default domain name.

"ip domain-name" section

ip name-server

15

Specify the address of up to three name servers for name and address resolution.

"ip name-server" section

no

15

Undo a command.

"no" section

nslookup

15

Translate a DNS name to its IP address or an IP address to its DNS name

"nslookup" section

ntp server

15

Configure the Network Time Protocol (NTP) and allow the system clock to be synchronized by a time server.

"ntp server" section

ping

0

Send echo packets for diagnosing basic network connectivity.

"ping" section

reload

151

Reboot the system.

"reload" section

services

15

Start or stop the management services running on the system

"services" section

show ?

0

Displays help for the command show.

"show ?" section

show bootlog

0

Display the messages logged during the last system boot.

"show bootlog" section

show clock

0

Display the system date and time.

"show clock" section

show config

15

Display the system configuration.

"show config" section

show domain-name

0

Display the system domain name.

"show domain-name" section

show interfaces

0

Display information about the system network interfaces

"show interfaces" section

show process

0

Display information about processes running on the system.

"show process" section

show servicesconsole

15

Displays the servicesconsole.

"show servicesconsole" section

show serviceslog

15

Display log information about management services activity on the system.

"show serviceslog" section

show syslog

15

Display syslog information.

"show syslog" section

show tech

15

Display information necessary for TAC to assist you.

"show tech" section

show version

0

Display information about the current software on the system.

"show version" section

shutdown

15

Shut down the system in preparation for powering it off.

"shutdown" section

snmp-server ?

15

Display help for the command snmp-server.

"snmp-server ?" section

snmp-server community

15

Set up community strings that permit access to the SNMP on the system.

"snmp-server community" section

snmp-server contact

15

Set the system contact string.

"snmp-server contact" section

snmp-server location

15

Set the system location string.

"snmp-server location" section

snmp-server name

15

Set the system name string.

"snmp-server name" section

traceroute

0

Display the network route to a specified host and identify faulty gateways.

"traceroute" section

username

15

Create a new user account or change an account's properties.

"username" section

1This command is also available in the maintenance image.
2
This command is available only in the maintenance image.

Command Description Conventions

Command descriptions in this document and in the CLI help system use the following conventions:

Privilege Level 0 Commands

This section describes the commands that have a privilege level of 0. Any user can run them:

exit

To log out of the system, use the exit command.

exit

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use the exit command to log out of the system.

Example

The following command logs you out of the system:

# exit

help

To display online help for the command-line interface, use the help command.

help

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use the help command to display online help for the command-line interface. A list of the CLI commands and their syntax is displayed.

Example

The following command displays online help for the command-line interface:

# help

ping

To send echo packets for diagnosing basic network connectivity, use the ping command.

ping ? | [-c count] [-i wait] [-s packetsize] {hostname | ip-address}

Syntax Description

? Displays help for the command.

c Sets the number of echo packets to send.

count Number of echo packets to send.

i Sets the amount of time to wait between sending each packet.

wait Amount of time to wait between sending each packet, in seconds. The default is 1.

s Sets the size of each echo packet.

packetsize The size of each echo packet, in bytes. The default is 56.

hostname Host name of system to ping.

ip-address IP address of system to ping.

Usage Guidelines

To use this command with the hostname argument, DNS must be configured on the system. To force the timeout of a nonresponsive host or to eliminate a loop cycle, press Ctrl-c.

Example

This command sends 4 echo packets to the host otherhost with a wait time of 5 seconds between each packet:

#ping -c 4 -i 5 otherhost PING otherhost.cisco.com (10.1.1.2): 56 data bytes 64 bytes from 10.1.1.2: icmp_seq=0 ttl=252 time=1.3 ms 64 bytes from 10.1.1.2: icmp_seq=1 ttl=252 time=1.4 ms 64 bytes from 10.1.1.2: icmp_seq=2 ttl=252 time=1.4 ms 64 bytes from 10.1.1.2: icmp_seq=3 ttl=252 time=1.3 ms --- otherhost.cisco.com ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max = 1.3/1.3/1.4 ms

Related Commands

traceroute

show ?

To display help for the command show, use the show ? command.

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use the show ? command to display help for the command show. A list of the command's options and usage appears.

The show command major options are described separately in this appendix. See the "Related Commands" section for a list of these major options.

Example

This command displays help for the command show:

# show ? USAGE: show [option]        where [option] is one of:         bootlog [page]           -> Display bootup information         clock                    -> Display configuration         config                   -> Display configuration         domain-name              -> Display domain-name         interfaces               -> Interface information         proc [page]              -> Running Process Information         serviceslog         [page] | include MatchString [MatchString]]                                  -> Display services log         servicesconsole         [page | include MatchString [MatchString]]                                 -> Display services console log         syslog         [page] | include MatchString [MatchString]]                                  -> Display system log         tech [page]              -> Technical information         version                  -> Operating System Version

Related Commands

show config

show interfaces

show process

show tech

show version

show clock

To display the system date and time in Coordinated Universal Time (UTC), use the show clock command.

show clock

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use the show clock command to display the system date and time. The system uses UTC for keeping and displaying the time and date.

Example

This command displays the system date and time:

# show clock Mon Feb  7 23:55:41 UTC 2000

show domain-name

To display the system domain name, use the show domain-name command.

show domain-name

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use this command to display the system domain name.

Example

This command displays the system domain name:

# show domain-name cisco.com

show interfaces

To display information about the system network interface, use the show interfaces command.

show interfaces

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use this command to display information about system network interfaces.

Example

This command displays information about system network interfaces:

# show interfaces eth0      Link encap:Ethernet  HWaddr 00:D0:58:C2:9F:76           inet addr:10.1.1.2 Bcast:10.1.255.255           Mask:255.255.255.0           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:1643763 errors:0 dropped:0 overruns:0 frame:0           TX packets:1625878 errors:0 dropped:0 overruns:0 carrier:1           collisions:452 txqueuelen:100           Interrupt:11 Base address:0xfce0

Related Command

interface

show process

To display information about processes running on the system, use the show process command.

show process [page]

Syntax Description

page Displays command output one screen at a time. Press any key to display the next output screen. Press Ctrl-c to exit paged output and return to the command prompt.

Usage Guidelines

Use this command to display information about processes running on the system.

Example

This command displays information about processes running on the system:

# show process page PID    ELAPSED    SZ    STARTED                  TTY  COMMAND     1  40:14        274 Wed Feb  2 17:19:39 2000 ?    init     2  40:14          0 Wed Feb  2 17:19:39 2000 ?    kflushd     3  40:14          0 Wed Feb  2 17:19:39 2000 ?    kpiod     4  40:14          0 Wed Feb  2 17:19:39 2000 ?    kswapd     5  40:03          0 Wed Feb  2 17:19:50 2000 ?    mdrecoveryd   260  39:20        336 Wed Feb  2 17:20:33 2000 ?    syslogd   271  39:15        339 Wed Feb  2 17:20:38 2000 ?    klogd   285  39:14        281 Wed Feb  2 17:20:39 2000 ?    crond   299  39:14        309 Wed Feb  2 17:20:39 2000 ?    inetd   305  39:14       3915 Wed Feb  2 17:20:39 2000 ?    snmpd   345  39:12        265 Wed Feb  2 17:20:41 2000 1    mingetty   346  39:12        265 Wed Feb  2 17:20:41 2000 2    mingetty   347  39:12        265 Wed Feb  2 17:20:41 2000 3    mingetty   348  39:12        265 Wed Feb  2 17:20:41 2000 4    mingetty   349  39:12        265 Wed Feb  2 17:20:41 2000 5    mingetty   350  39:12        265 Wed Feb  2 17:20:41 2000 6    mingetty   353  39:12        263 Wed Feb  2 17:20:41 2000 ?    update  5956  17:00        276 Thu Feb  3 16:42:53 2000 S0   getty  3879  58:15      116064 Fri Feb  4 03:01:38 2000 ?   jre  3880  58:15      116064 Fri Feb  4 03:01:38 2000 ?   jre  3912  57:37      116064 Fri Feb  4 03:02:16 2000 ?   jre --More--

show version

To display information about the current software on the system, use the show version command.

show version

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use the show version command to display information about the current software on the system.

Example

This command displays the current software on the system:

# show version Copyright (c) 1999-2000 by Cisco Systems, Inc. Build Date: Wed Apr 19 21:10:12 PDT 2000 Cisco-ME BIOS Version x.xx Uptime: 5 days 23 hours 57 mins ME1110 Cisco Systems, Inc. Version 1.0-1 Cisco Maintenance Image Version 1.0-1 AMD-K6(tm) CPU at  366.611712 Mhz with 257908K bytes of memory. 2 Ethernet interfaces Services: ConnectionManagerService        1.1 HttpService     1.1 ThreadService   1.1 LogService      0.4.0 DBInterface     0.9.6 DateService     1.1 SyslogReader    0.4.0 Authenticator   0.3.0 Properties      0.3.0 SyslogWriter    0.4.0 8 Mb of Flash 8.097Gb on disk Next boot  SCSI disk

traceroute

To display the network route to a specified host and identify faulty gateways, use the traceroute command.

traceroute ? | [-f first_ttl] [-m max_ttl] [-w waittime] host [packetlength]

Syntax Description

? Displays help for the command.

-f (Optional) Sets the time-to-live used in the first outgoing probe packet.

first_ttl Time-to-live value of the first outgoing probe packet. The default is 1 hop.

-m (Optional) Sets the maximum time-to-live (maximum number of hops) used in outgoing probe packets.

max_ttl Maximum time-to-live for outgoing probe packets. The default is 30 hops.

-w (Optional) Sets the time to wait for a response to a probe, in seconds.

waittime Time to wait for a response to a probe, in seconds. The default is 5.

host Name or IP address of host to which to connect.

packetlength (Optional) The length of the packet to send, in bytes. The default and minimum value is 40.

Usage Guidelines

Use the traceroute command to trace the network route to a specified host and identify faulty gateways. The command displays a list of the hosts that receive probe packets as they travel to the destination host, in the order that the receiving hosts receive the packets. Asterisks (*) appear as the list entry for hosts that do not respond to probing correctly.

Example

This command displays the network route to the host otherhost with a packet time-to-live value of 2, a wait time of 5 seconds, and 50-byte packets:

# traceroute -m 20 -w 10 otherhost 50 traceroute to otherhost.company.com (10.1.1.1), 20 hops max, 50 byte packets 1  10.1.1.2 (10.1.1.3)  46.127 ms  0.753 ms  0.652 ms 2  * lab-rsm-1.company.com (10.1.1.4)  0.894 ms  0.780 ms 3  lab-rsm2.company.com (10.1.1.5)  1.486 ms  0.828 ms 0.768 ms 4  doc1.company.com (10.1.1.6)  0.917 ms *  0.827 ms

Related Commands

ping

Privilege Level 15 Commands

This section describes the commands that have a privilege level of 15. Only users with privilege level 15 can run them.

clock

To set the system date and time, use the clock command.

clock ? | set hh:mm:ss month day year

Syntax Description

? Displays help for the command.

set Sets the system clock.

hh:mm:ss Current time (for example, 13:32:00).

month Current month. You can enter full month names or abbreviations that include at least the first 3 characters of the month name (for example, jan, feb, mar).

day Day of the month (for example, 1 to 31).

year Current year (for example, 2000).

Usage Guidelines

To set the date and time, use the set option.

If you configure the system to use Network Time Protocol (NTP), you do not need to set the system clock manually using the clock command.

When setting the clock, enter the current time in Coordinated Universal Time (UTC). The system uses only UTC for keeping and displaying the time and date.

For more information about the system time, refer to the "Setting System Date and Time" section.

Example

This command sets the date and time:

# clock set 13:32:00 apr 22 2000

Related Commands

ntp

show clock

erase ?

To display help for the command erase, use the erase ? command.

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use the erase ? command to display help for the command erase. A list of the command's options and usage appears.

The erase command major options are described separately in this appendix.

Example

This command displays help for the command erase:

# erase ? erase configuration       services

Related Commands

erase config

erase services

erase config

To erase the configuration in Flash memory and reload the device, use the erase config command.

erase config

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use this command to erase the configuration in Flash memory and reload the device.

When you enter the command, you are prompted for confirmation. Enter yes to confirm, or press Enter to accept the default response no.


Caution When you confirm this command, the system configuration is erased and the system reboots automatically. The system will not operate until you reconfigure it.

When the system reboots, you must reconfigure it with the setup program. For information about using the setup program, refer to "Installing and Configuring the Management Engine 1100 Series."


Note When the system erases the configuration, it is disconnected from the network because the network interface configuration is erased. To continue working on the system you must use the system console.

Example

This command erases the system configuration:

# erase config This will erase your configuration, return device to factory defaults, and reload the device Do you want to continue?[no]: yes

erase services

To remove the management services from the system, use the erase services command.

erase services

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use the erase services command to remove the management services from the system.


Caution Removing management services stops the system from interacting with management applications that use it, causing serious errors in the applications.

This command stops the services before removing them and erases the logs that collect services information.

System services (services built into the system) are not removed. Only management services installed by external applications are removed.

For more information about management services, refer to the "Administering Management Services" section.

Example

This command removes management services from the system:

# erase services

hostname

To change the system hostname, use the hostname command.

hostname ? | name

Syntax Description

? Displays help for the command.

name New hostname for the ME1100 Series; the name is case sensitive and may be from 1 to 22 alphanumeric characters.

Usage Guidelines

Use this command to change the system hostname. The hostname appears in the command prompt.

Example

The following example changes the hostname to sandbox:

# hostname sandbox

interface

To configure the Ethernet 0 interface, use the interface command.

interface ? | name {[up | down] | ipaddress netmask [default-gateway address] [up | down]}

Syntax Description

? Displays help for the command.

name Name of the interface to configure. Acceptable values are e0, eth0, and ethernet0.

up Enables the interface (the default).

If you include the ipaddress parameter and want to enable the interface in the same command, either enter the up parameter after ipaddress and its required parameters, or do not specify the up or down parameters (up is the default).

down Disables the interface.

If you include the ipaddress parameter and want to disable the interface in the same command, enter the down parameter after ipaddress and its required parameters.

ipaddress The IP address of the interface.

netmask The netmask of the interface IP address.

default-gateway Changes the IP address of the default gateway that connects the ME1100 Series to the network.

address The gateway IP address.

Default

When you enter the interface command, the interface that you specify is enabled by default. If you want to disable an enabled interface or leave a disabled interface disabled, you must specify the down option.

Usage Guidelines

Use the interface command to configure the Ethernet 0 interface.

If you change the IP address or hostname, follow these steps to ensure that applications using the system can connect to it correctly:


Step 1 Stop and restart management services by entering:

# services stop # services start

Step 2 Verify that management applications that use the system can still connect to it.

Step 3 Reconnect any applications that cannot connect to it using the system's new IP address or hostname.


Example

This command disables the Ethernet 0 interface:

# interface e0 down

This command sets the Ethernet 0 IP address, netmask, and gateway IP address, and enables the interface:

# interface e0 10.11.12.13 255.255.255.196 default-gateway 10.12.13.14 up

ip domain-name

To define a default domain name, use the ip domain-name command. To remove the default domain name, use the no form of the command.

ip ? | domain-name name

no ip domain-name

Syntax Description

? Displays help for the ip command.

name Domain name.

Usage Guidelines

Use this command to define a default domain name.

A default domain name allows the system to resolve any unqualified host names. Any IP hostname that does not contain a domain name will have the configured domain name appended to it. This appended name is resolved by the DNS server and then added to the host table. A DNS server must be configured on the system for hostname resolution to work correctly. To do this, use the ip name-server command.

Example

This command defines the default domain name cisco.com:

# ip domain-name cisco.com

This command removes the default domain name:

# no ip domain-name

Related Commands

ip name-server

ip name-server

To specify the address of up to three name servers for name and address resolution, use the ip name-server command. To disable a name server, use the no form of the command.

ip ? | name-server ip-address

no ip name-server ip-address

Syntax Description

? Displays help for the ip command.

ip-address Name server IP address (maximum of 3).

Usage Guidelines

For proper resolution of hostname to IP address or IP address to hostname, the system uses DNS servers. Use the ip name-server command to point the system to a specific DNS server. You may configure up to three servers.

If you attempt to configure a fourth name server, the following error message appears:

# Name-server table is full.

The system must have a functional DNS server configured to function correctly. If it does not, in most cases it will not correctly process requests from management applications that use it. If the system cannot obtain DNS services from the network, Telnet connections to the system will fail or Telnet interaction with the system will become extremely slow. For more information, refer to the "Cannot Connect to System with Telnet or Telnet Interaction Is Slow" section.

Example

This command assigns a name server for the system to use for DNS name to address resolution:

# ip name-server 10.11.12.13

This command disables the name server; the system will not use it for name to address resolution:

# no ip name-server 10.11.12.13

Related Commands

ip domain-name

no

To undo a command, use its no form.

no ? | command

Syntax Description

? Displays help for the command.

command One of the following commands and its associated syntax:

ip---Internet Protocol configuration commands.

ntp server---NTP configuration commands.

snmp-server---Modifies SNMP parameters.

username---Creates a user account.

Usage Guidelines

Use the no form of a command to disable its functions or negate it.

Example

The following example defines an IP name server and then removes it.

# ip name-server 10.10.10.10 # no ip name-server 10.10.10.10

nslookup

To translate a DNS name to its IP address or an IP address to its DNS name, use the nslookup command.

nslookup {? | {dns-name | ip-address}}

Syntax Description

? Displays help for the command.

dns-name DNS name of a host on the network.

ip-address IP address of a host on the network.

Usage Guidelines

Use the nslookup command to translate a DNS name to its IP address or an IP address to its DNS name. The corresponding IP address or DNS name appears.

Example

The following command translates the DNS name hostname to its IP address:

# nslookup hostname

ntp server

To configure the Network Time Protocol (NTP) and allow the system clock to be synchronized by a time server, use the ntp server command. To disable this function, use the no form of this command.

ntp server ? | ip-address

no ntp server ip-address

Syntax Description

? Displays help for the command.

ip-address IP address of the NTP time server providing clock synchronization.

Usage Guidelines

Use the ntp server command to synchronize the system clock with the specified NTP server. If you configure multiple NTP servers, the system will synchronize with the first working NTP server it finds. There is no limit to the number of NTP servers that you can configure.

The ntp server command validates the NTP server that you specify. The possible results are:

    # 19 Jan 00:43:48 ntpdate[1437]: step time server 10.10.10.10 offset 999.257304
    # 19 Jan 00:43:40 ntpdate[1431]: no server suitable for synchronization found
In this case, remove the NTP server by using the no form of the command, then configure a valid NTP server.
    # 19 Jan 00:43:58 ntpdate[1265]: Can't adjust the time of day: Invalid argument.
In this case, the ntp server command is entered into the system configuration, but NTP will not function. Follow these steps to remove the command and configure NTP correctly:

Step 1 Remove the ntp server command from the configuration by entering the no form of the command. For example:

# no ntp server ip-address

where ip-address is the IP address of the NTP server.

Step 2 Set the system clock to a time that is behind the time on the NTP server using the clock set command. For more information about the clock command, refer to the "clock" section.

Step 3 Enter the ntp server command again to configure the NTP server on the system. For example:

# ntp server ip-address

Example

This command configures the system to use an NTP server:

# ntp server 172.16.22.44

This command configures the system to stop using the NTP server:

# no ntp server 172.16.22.44

Related Commands

clock

reload

To reboot the system, use the reload command.

reload [?]

Syntax Description

? Displays help for the command.

Usage Guidelines

Use the reload command to reboot the system.

You are prompted to verify the reload. Enter yes to confirm or no to cancel the reload.


Caution All processes running on the system stop when you run the reload command. The system will not respond to requests from applications while it is reloading.

Example

This command reboots the system:

# reload

Related Commands

shutdown

services

To list, start, or stop the management services running on the system, use the services command.

services [? | start | stop]

Syntax Description

? Displays help for the command.

start Starts the management services.

stop Stops the management services.

Usage Guidelines

Use this command to list, start, or stop the management services running on the system.

Management services are the software installed on the system by network management applications. Use this command to stop and restart the management services if the system is not responding correctly to a management application. This should cause the services to reset and function properly again.

Example

This command lists the installed management services:

# services Services: ConnectionManagerService        1.1 HttpService     1.1 ThreadService   1.1 LogService      0.4.0 DBInterface     0.9.6 DateService     1.1 SyslogReader    0.4.0 Authenticator   0.3.0 Properties      0.3.0 SyslogWriter    0.4.0

This command stops management services

# services stop

This command starts management services

# services start

Related Commands

show process

show serviceslog

show bootlog

To display the messages logged during the last system boot, use the show bootlog command.

show bootlog [page]

Syntax Description

page Displays command output one screen at a time. Press any key to display the next output screen. Press Ctrl-c to exit paged output and return to the command prompt.

Usage Guidelines

Use this command to display the messages logged during the last system boot.

Example

This command displays the messages logged during the last system boot:

# show bootlog page ME1100 System Image Version 1.0  Detected 366611712 Hz processor. Console: colour *CGA 80x25 Calibrating delay loop... 732.36 BogoMIPS Memory: 257844k/262144k available (952k kernel code, 408k reserved, 2876k data,) CPU: AMD AMD-K6(tm) 3D processor stepping 0c Checking 386/387 coupling... OK, FPU using exception 16 error reporting. Checking 'hlt' instruction... OK. POSIX conformance testing by UNIFIX PCI: PCI BIOS revision 2.10 entry at 0xfd8c4 PCI: Using configuration type 1 PCI: Probing PCI hardware PCI: Enabling I/O for device 00:68 PCI: Enabling memory for device 00:78 Linux NET4.0 for Linux 2.2 Based upon Swansea University Computer Society NET3.039 -----------more-----------

Related Commands

reload

Related Commands

clock

show config

To display the system configuration, use the show config command.

show config

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use this command to display the current running configuration.

Example

This command displays the system configuration:

# show config interface ethernet0 10.1.1.2 255.255.255.196 default-gateway 10.1.1.3 up interface ethernet1 down ip domain-name cisco.com ip name-server 10.1.1.4 snmp-server community private   RW snmp-server community public    RO username user password ***** privilege 15

Related Commands

erase config

show servicesconsole

To display the services console, use the show servicesconsole command.

show servicesconsole [page] [include matchstring1 [matchstring2]]

Syntax Description

page Displays command output one screen at a time. Press any key to display the next output screen. Press Ctrl-c to exit paged output and return to the command prompt.

include Filters the command output to display only the records that contain the specified string(s) of characters.

matchstring1 String of characters to search for in the command output.

matchstring2 (Optional) Another string of characters to search for in the command output.

Usage Guidelines

Use this command to display the services console.

The management services installed on the system send some messages to the services console that are not sent to the services log. To view all messages logged by the management services, you must examine the services log and services console.

To filter the command output to include only the records that contain the specified string(s) of characters, use the include option with one or two character strings for which to search. If you include two strings, the command outputs only those records that contain both character strings.

Example

This command displays the services console:

# show servicesconsole page slam-sj-m1100#show servicesconsole page ***** /opt/jes-cache/pck-7/cache/com/cisco/nm/appliance/jes/softPkgUpdator/RPMEr register servlet: http://172.20.99.7:80/getInstalledRPM register servlet: http://172.20.99.7:80/getInstalledJES_BUNDLE register servlet: http://172.20.99.7:80/getStartedPkgs register servlet: http://172.20.99.7:80/getStoppedPkgs register servlet: http://172.20.99.7:80/isInstalled register servlet: http://172.20.99.7:80/isStarted register servlet: http://172.20.99.7:80/isStopped register servlet: http://172.20.99.7:80/getSoftUpdateStatus register servlet: http://172.20.99.7:80/install export resource: http://172.20.99.7:80/dtdAlias com.sun.jes.service.http.HttpService.port does not exist; creating com.sun.jes.service.http.HttpService.threads does not exist; creating HTTP port property is 80 com.cisco.nm.appliance.jes.system.HttpServiceConfiguration.getPort(): 80 com.cisco.nm.appliance.jes.system.HttpServiceConfiguration.getPort(): 80 HTTP port is 80 HTTP alias occupied: com.sun.jes.service.http.HttpService.setRequestHandlerCount HTTP alias occupied: com.cisco.nm.device.Device.getDate ServiceSpace: ready ! -----------more-----------

show serviceslog

To display log information about management services activity on the system, use the show serviceslog command.

show serviceslog [page] [include matchstring1 [matchstring2]]

Syntax Description

page Displays command output one screen at a time. Press any key to display the next output screen. Press Ctrl-c to exit paged output and return to the command prompt.

include Filters the command output to display only the records that contain the specified string of characters.

matchstring String of characters to search for in the command output.

matchstring2 (Optional) Another string of characters to search for in the command output.

Usage Guidelines

Use this command to display log information about management services activity on the system.

To filter the command output to include only the records that contain the specified string(s) of characters, use the include option with one or two character strings for which to search. If you include two strings, the command outputs only those records that contain both character strings.

Example

This command displays log information about management services activity on the system:

# show serviceslog page 2000 Feb 02 17:20:52 GMT 172.20.99.7 : %SERVICE-7-com.sun.jes.service.thread.Th. 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: com.cisco.nm.appliance.jes.st 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: servlet com.cisco.nm.applian" 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: com.cisco.nm.appliance.jes.st 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: servlet com.cisco.nm.applian" 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: com.cisco.nm.appliance.jes.st 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: servlet com.cisco.nm.applian" 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: com.cisco.nm.appliance.jes.st 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: servlet com.cisco.nm.applian" 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: com.cisco.nm.appliance.jes.st 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: servlet com.cisco.nm.applian" 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: com.cisco.nm.appliance.jes.st 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: servlet com.cisco.nm.applian" 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: com.cisco.nm.appliance.jes.st 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: servlet com.cisco.nm.applian" 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: com.cisco.nm.appliance.jes.st 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: servlet com.cisco.nm.applian" 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: com.cisco.nm.appliance.jes.st 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: servlet com.cisco.nm.applian" 2000 Feb 02 17:20:53 GMT 172.20.99.7 : %SERVICE-7: com.cisco.nm.appliance.jes.st -----------more-----------

show syslog

To display syslog information, use the show syslog command.

show syslog [page] [include matchstring1 [matchstring2]]

Syntax Description

page Displays command output one screen at a time. Press any key to display the next output screen. Press Ctrl-c to exit paged output and return to the command prompt.

include Filters the command output to display only the records that contain the specified string of characters.

matchstring String of characters to search for in the command output.

matchstring2 (Optional) Another string of characters to search for in the command output.

Usage Guidelines

Use this command to display syslog information.

To filter the command output to include only the records that contain the specified string(s) of characters, use the include option with one or two character strings for which to search. If you include two strings, the command outputs only those records that contain both character strings.

Example

This command displays syslog information:

# show syslog Feb 6 04:02:00 slam-sj-m1100 syslogd 1.3-3: restart. Feb 6 04:02:00 slam-sj-m1100 syslogd 1.3-3: restart. Feb 6 04:02:00 slam-sj-m1100 syslogd 1.3-3: restart. Feb 6 04:02:00 slam-sj-m1100 syslogd 1.3-3: restart. Feb 7 05:56:16 slam-sj-m1100 PAM_pwdb[15768]: (login) session opened for user ) Feb 7 20:53:15 slam-sj-m1100 PAM_pwdb[17900]: (login) session opened for user ) Feb 7 23:12:12 slam-sj-m1100 PAM_pwdb[18241]: (login) session opened for user ) Feb 8 00:47:52 slam-sj-m1100 PAM_pwdb[18241]: (login) session closed for user r Feb 8 00:48:10 slam-sj-m1100 PAM_pwdb[17900]: (login) session closed for user o Feb 8 01:13:07 slam-sj-m1100 PAM_pwdb[18570]: (login) session opened for user ) Feb 8 01:18:44 slam-sj-m1100 PAM_pwdb[18590]: (login) session opened for user )

Related Command

interface

show tech

To display information necessary for TAC to assist you, use the show tech command.

show tech [page]

Syntax Description

page Displays command output one screen at a time. Press any key to display the next output screen. Press Ctrl-c to exit paged output and return to the command prompt.

Usage Guidelines

Use this command to display system information necessary for TAC to assist you.

Example

This command displays system information necessary for TAC to assist you.

# show tech page

shutdown

To shut down the system in preparation for powering it off, use the shutdown command.

shutdown [?]

Syntax Description

? Displays help for the command.

Usage Guidelines

Use this command to shut down the system in preparation for powering it off.


Caution Never power the system off without running the shutdown command first. Doing so can destroy data and prevent the system from booting.

You are prompted to verify the shutdown. Enter yes to continue, or no to cancel the shutdown.


Caution All processes running on the system stop when you run the shutdown command. The system will not respond to requests from applications until you power it off and back on and the system reboots.

Example

This command shuts down the system:

# shutdown

Related Commands

reload

snmp-server ?

To display help for the command snmp-server, use the snmp-server ? command.

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use the snmp-server ? command to display help for the command snmp-server. A list of command options and usage appears.

snmp-server command major options are described separately in this appendix. See the "Related Commands" section for a list of these major options.

Example

This command displays help for the snmp-server command:

# snmp-server ?

Related Commands

snmp-server community

snmp-server contact

snmp-server location

snmp-server name

snmp-server community

To set up community strings that permit access to the SNMP on the system, use the snmp-server community command. Use the no form of this command to remove a community string.

snmp-server community string {RW | RO}

no snmp-server community string

Syntax Description

RW Creates a read-write community string, which allows both reading and writing of SNMP data.

RO Creates a read-only community string, which allows only reading of SNMP data. This is the default if you do not specify the RW parameter.

string Community string that permits access to the SNMP.

Default

By default, an SNMP community string permits read-only access to all objects.

Usage Guidelines

Use the snmp-server community command to set up the community strings that permit access to the SNMP on the system.

Example

The following example creates the read-write community string comaccess:

# snmp-server community comaccess RW

The following example removes the community string.

# no snmp-server community comaccess

snmp-server contact

To set the system contact string, use the snmp-server contact command. Use the no form of this command to remove the system contact information.

snmp-server contact line

no snmp-server contact

Syntax Description

line String that describes the system contact information.

Default

No system contact string is set.

Usage Guidelines

The system contact string is the value stored in the MIB II system group sysContact object.

Example

This command sets an SNMP contact string:

# snmp-server contact Dial System Operator at beeper # 27345

This command removes the SNMP contact string:

# no snmp-server contact

Related Commands

snmp-server location

snmp-server location

To set the system location string, use the snmp-server location command. Use the no form of this command to remove the location string.

snmp-server location line

no snmp-server location

Syntax Description

line String that describes the physical location of this node.

Default

No system location string is set.

Usage Guidelines

The system location string is the value stored in the MIB II system group sysLocation object.

Example

This command sets a system location string:

# snmp-server location Building 3/Room 214

This command removes the system location string:

# no snmp-server location

Related Commands

snmp-server contact

snmp-server name

To set the system name string, use the snmp-server name command. Use the no form of this command to reset the name to the default, which is the system hostname.

snmp-server name line

no snmp-server name

Syntax Description

line String that describes the name of this node.

Default

The system hostname.

Usage Guidelines

The system location string is the value stored in the MIB II system group sysName object.

Example

This command sets a system name string:

# snmp-server name me1

This command removes the system name string:

# no snmp-server name

Related Commands

snmp-server contact

username

To create a new user account or change an account's properties, use the username command. Use the no form of the command to remove a user account.

username ? | name password password [privilege {0 | 15}]

no username name

Syntax Description

? Displays help for the command.

name Name of the user account to create or remove.

password Specifies a password for the account.

password The password for the account.

privilege (Optional) Specifies the account privilege level.

0 Gives the account level 0 privileges. This is the default.

15 Gives the account level 15 privileges.

Default

The default privilege level is 0 if you do not provide the privilege option.

Usage Guidelines

Use the username command to create or change the properties of a user account. Use the no form of the command to remove a user account.

For more information about managing user accounts and privilege levels, refer to the "Administering User Accounts" section.

Example

This command creates a user account named user1 with password password1 and privilege level 0:

# username user1 password password1 privilege 0

This command removes the user account:

# no username user1

Maintenance Image Commands

This section describes the commands that are available when the system is booted from the maintenance image. For more information about the maintenance image, refer to the "Using the Maintenance Image" section.

erase config

This command is identical to the level 15 erase config command. For a description, refer to the "hostname" section.

fsck

To check and repair the filesystem, use the fsck command.

fsck

Syntax Description

This command has no arguments or keywords.

Usage Guidelines

Use the fsck command to check and repair the filesystem. The command might prompt you for confirmation before making certain repairs.

Example

The following command checks and repairs the filesystem:

#fsck

reload

This command is identical to the level 15 reload command. For a description, refer to the "reload" section.


hometocprevnextglossaryfeedbacksearchhelp
Posted: Mon Jun 19 00:27:32 PDT 2000
Copyright 1989 - 2000©Cisco Systems Inc.