cc/td/doc/product/rtrmgmt/sw_ntman/sprob
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Command-Line Mode

Command-Line Mode

Command-line mode provides a way for you to customize a SwitchProbe. SwitchProbe devices contain internal objects that have specific values defined. The specific values are used in many ways:

Available as an option from the Agent Configuration Utility, command-line mode offers a way for you to work with specific commands: get, set, do, help, and quit. These commands make it easy to view, define, edit, and get help on customizing objects within the SwitchProbe device.

Working with the Command Line

Command-line mode is an option that you can select from the Remote Login Screen or console port. To display information about the available commands and most current SwitchProbe objects, use the following procedure.

Step 1 From the console screen, select 11 Enter Command-line mode and then press Enter.

Step 2 At the prompt, enter help.

The following screen is displayed:


Command-Line Overview Screen

The command-line overview screen displays the name and description of each available command, as well as a list of all currently available objects that you can customize. There are only five available commands: get, set, do, help, and quit. Because commands and object names are case-sensitive, you must enter them in lowercase.

Once a local or remote console is attached to the SwitchProbe device, the following Configuration Utility menu is displayed:

***** SwitchProbe Token Ring Rev 4.1 ***** 
[1] Change IP Address	45.20.1.2
[2] Change Net Mask	255.255.252.0
[3] Change Default Gateway Address	45.20.0.94
[4] Change Read Community	public
[5] Change Write Community	public
[8] Select Interface	ETHERNET
[9] Change Server Address	204.240.143.7
[10] Upgrade Software
[11] Enter Command-line mode
[12] Reset Agent
Enter your response or Enter "exit" to logout
Selection #:

Operation

Commands are often followed by an object name and a number of parameters. Separate the object and each parameter with a space. If the parameter is a string and it contains spaces, always enclose it in quotation marks. If the parameter is an "on" or "off" state, sometimes 1 indicates on and 0 indicates off.

get Command

The get command is used to view the current value of objects. The following example shows the use of the get command to view the contents of the agent_location object:

% get agent_location 
Agent Location Here

The default value of agent_location is "Agent Location Here."

set Command

The set command is used to set the value of an object. The following example shows the use of the set command to change the contents of the agent_location object, and then the get command to check the results:

% set agent_location "The grassy knoll"
% get agent_location
The grassy knoll

do Command and Ping

The do command causes the agent to execute the code named by the object. Not all objects can be used with the do command. The following example shows the use of the do command with the ping object:

% do ping 45.20.0.101
Reply from 45.20.0.101 seq=0, time=40 msec

The ping object can be very useful when troubleshooting because ping is executed from the agent to the specified address, not from the management software to the specified address.

The Resource Manager software option can automate pings and SNMP queries from the agent to any IP device and set alarms on user-specified thresholds.

help Command

Online help is available for specific objects by entering help followed by the object name. For example, help agent_location displays the command options and the syntax of entries that are available for the agent_location object.

% help agent_location
command to display or change nvram parameters:
get agent_location 
set agent_location new_value

quit Command

The quit command returns you to the Configuration Utility menu. There are no additional objects or parameters.

Objects

Objects are defined in the following list. For more detailed information on the commands and usage for each object, enter help followed by the object name.

Arguments are typically decimal values that specify the limit value of an object. Arguments can also be ASCII text strings. When a text string containing spaces is entered, the entire text must be enclosed in quotes ("text string").

Examples

The following example shows how to retrieve the agent information:

% get agent
model	Token Ring
agent_number	71299
software_version	4.1
link time	Apr 04 07:09:07 1997
nvram_version	30
agent_location	Agent Location Here
agent_contact	Your Contact Here
agent_name	Your System Name Here
read_community	public
write_community	public
max_host	256
max_matrix	1024
max_log	128
max_captsize	8192
max_controlentry	256
server	204.240.143.22
tftp_filename	ns6060.hex
tftp_timeout	10 

The following example shows how to check and change variables, such as max_host and max_matrix:

% get max_host 	256
% set max_host 	105
% get agent 
model	Token Ring
agent_number	XXXX
software_version	4.1
nvram_version	20
agent_location	Agent Location Here
agent_contact	Your Contact Here
agent_name	Your System Name Here
read_community	public
write_community	public
max_host	128
max_matrix	512
max_log	128
max_captsize	8192
tftp_server	204.240.143.7
tftp_filename	ns6060.hex
tftp_timeout	10

The following example shows how to retrieve the interface information:

% get interface
interface_number	1
ip_addr	204.240.143.156
gw_addr	0.0.0.0
net_mask	255.255.255.0
secondary_ip_addr	0.0.0.0
MAC addr	00-80-8c-01-16-83
local MAC addr	00-00-00-00-00-00

The following example shows how to check the available memory:

% get dump free_mem
Free memory available=6292432

The following example shows how to check the event log:

% get eventlog
---------------------- Event/Error Log ------------------------ 
<12:19:48> ----------New Boot---------- 
<12:19:48> Booting from flash 
<12:19:48> IFN 1 MAC Addr: 00-80-8c-01-01-25 
<12:19:48> IFN 3 MAC Addr: 00-80-8c-81-01-25 
<12:19:48> Free memory after boot = mmmmmmm Bytes 
<12:19:51> SwitchProbe CDDI [Ifn 1: Ethernet, Ifn 2: CDDI] 
<12:19:51> Number of consoles initialized = X 
<12:19:51> Opening port 2 for SLIP 
<12:19:51> MIBMGR: Collector activated for interface 1 
<12:19:51> MIBMGR: Collector activated for interface 2 
<12:19:51> MIBMGR: Collector activated for interface 3 
<12:19:51> AGENT Version 2.3.1 <12:19:51> NVRAM Version 2.0 
<12:19:51> Link time Month; Day; hh:mm:ss Year 
<12:19:51> Interface	[1] IP Addr: 45.20.1.2 
<12:19:52> 	net mask: 255.255.252.0 
<12:19:52> 	GW Addr: 45.20.0.94 
<12:19:52> Interface 	[2] IP Addr: Not configured 
<12:19:52> 	net mask: Not configured 
<12:19:52> 	GW Addr: Not configured 
<12:19:52> Agent Ready 
<12:19:52> Free Memory after init = mmmmmmm Bytes
%

hometocprevnextglossaryfeedbacksearchhelp
Copyright 1989-1997 © Cisco Systems Inc.