cc/td/doc/product/rtrmgmt/switprob
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Command-Line Mode

Command-Line Mode

You use command-line mode to customize a SwitchProbe device. SwitchProbe devices contain internal objects on which specific values are defined. These specific values are used as follows:

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. With these commands you can view, define, edit, and get help on customizing objects within the SwitchProbe device.

Using the Command Line

Command-line mode is an option that you select from the Remote Login screen or console port. To display information about available commands and current SwitchProbe objects, follow these steps:


Step 1   From the console screen, enter 11 and press Enter.

Step 2   At the prompt, enter help and press Enter.

The following screen is displayed:

% help Syntax: action object [arg,...] actions get: display the value of an object set: change the value of an object do: perform an agent operation help: display this help menu quit: exit command line-line mode objects access_list agent agent_contact agent_location agent_name agent_options data date dlc_proto dlc_offset dump eventlog gw_valid if_options interface ip_addr ip_valid mac_addr manage_mode max_captsize max_controlentry max_host max_log max_matrix memory min_pktsize modem monitor_mode mtu_size net_mask netmask_valid netflow_port nnetflow_speed nvram ping proute read_community reset ringid route secondary_ip_addr software_options speed server switch_info tftp tftp_timeout time write_community

Command-Line Overview Screen

The command-line overview screen displays the name and description of each available command, and a list of all currently available objects that you can customize. There are five commands: get, set, do, help, and quit.

After you attach a local or remote console to the SwitchProbe device, the following Agent Configuration Utility menu is displayed:

***** SwitchProbe Ethernet Rev 4.5 ***** [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 #:

Command-Line Operations

Commands are often followed by an object name and several parameters. For effective use of these commands, follow these guidelines:


Note If the parameter is an on or off state, sometimes 1 indicates on, and 0 indicates off.

get Command

Use the get command 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

Use the set command 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 use the get command to check the results:

% set agent_location "San Jose" % get agent_location San Jose

do Command and ping

Use the do command to instruct the agent to execute the code named by the object. (You cannot use all objects with the do command.) The following example shows how to use 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.

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

help Command

Use the help command to access online help for specific objects. To access online help, enter help followed by the object name and press Enter. The following example 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 given parameters: get agent_location set agent_location new_value

quit Command

Use the quit command to return to the Agent Configuration Utility menu. The quit command requires no additional objects or parameters.

Command-line Objects

The following list describes the command-line objects. For more detailed information about the commands and their uses for each object, enter help followed by the object name, and press Enter.

  The ATM interface can decode ATM Permanent Virtual Channel (PVC) addresses to a 10-bit resolution. By default, all ten bits are used to specify the Virtual Channel Identifier (VCI) portion of the PVC, and no bits are reserved to specify the VPI portion of the PVC. This default setting is sufficient in a UNI signaling Switched Virtual Circuit (SVC) environment where the VPI is usually 0.
  However, in other environments, PVCs usually use a non-zero VPI. In that case, use the set atm_maxvpibits command to specify the maximum number of bits used for specifying the VPI. The number of bits used for VCI will then be (10 minus maxvpibits).
  For example, if you set the maxvpibits to 3, three bits will be used for VPI, and seven bits for VCI. The total number of bits used for VPI and VCI is 10.
   do ping 45.20.0.80.
  The ping is sent from the agent to the specified IP destination, not from the management station to the destination. The agent displays the result of the ping.
  For example, to channel IP traffic from ports 100 through 110 to proxy port 99, you would enter the following command:
  set proxyapport add IP 99, 100, 110 "name of port"
  The set tracksession command-line object allows you to establish the frequency (in seconds) at which the tracksession table will be purged (minimum is 300 seconds, maximum is 72000 seconds, default is 30 seconds), and the total number of alternative tracksession ports allowed on the SwitchProbe device (minimum is 100, maximum is 65535, default is 2000).
  For example, set tracksession 120 500 purges the tracksession table every 120 seconds, and will allow up to 500 alternative ports on the SwitchProbe device.

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

hometocprevnextglossaryfeedbacksearchhelp
Posted: Wed Oct 2 08:31:31 PDT 2002
All contents are Copyright © 1992--2002 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.