|
|
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.
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
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 #:
Commands are often followed by an object name and several parameters. For effective use of these commands, follow these guidelines:
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."
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
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.
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
Use the quit command to return to the Agent Configuration Utility menu. The quit command requires no additional objects or parameters.
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.
|
|