3Com 3500 User Manual

Page 125

Advertising
background image

script

125

Example Script (3500)

This example scripts these tasks to initially configure your system:

■

Changes the modem port baud

■

Sets the system name

■

Assigns an IP address for management

■

Verifies the IP connection by pinging the system

■

Enables Spanning Tree

■

Sets up SNMP trap reporting

# This script performs some start-up configurations.
#
# Set the modem serial port baud.
#
system serialPort modemSpeed
4800

# modem serial port baud

#
# Set the system name
#
system name
Eng_CoreBuilder_4
#
# Assign an IP address to the system.
#
ip interface define
158.101.112.99 # IP address for the system
255.255.0.0 # subnet mask
1 # VLAN interface index

ip interface summary all
#
# Validate access to management workstation
#
ip ping
158.101.112.26 # management workstation address
#
# Enable the Spanning Tree Protocol
#
bridge stpState enabled
#
# Configure my node as an SNMP trap destination
#
snmp trap add
158.101.112.26 # management workstation address
all

# turn on all traps

q

# no more trap destinations

#
snmp trap display
#

Advertising