Using Snmp To Save And Load Configuration Information - HP 9304m Installation And Getting Started Manual

Procurve routing switches
Table of Contents

Advertisement

Installation and Getting Started Guide
To determine the size of an HP device's running-config or startup-config file, copy it to a TFTP server, then use the
directory services on the server to list the size of the copied file. To copy the running-config or startup-config file to
a TFTP server, use one of the following commands.
Commands to copy the running-config to a TFTP server:
copy running-config tftp <ip-addr> <filename>
ncopy running-config tftp <ip-addr> <from-name>
Commands to copy the startup-config file to a TFTP server:
copy startup-config tftp <ip-addr> <filename>
ncopy startup-config tftp <ip-addr> <from-name>

Using SNMP to Save and Load Configuration Information

You can use an third-party SNMP management application such as HP OpenView to save and load an HP
device's configuration. To save and load configuration information using HP OpenView, use the following
procedure.
NOTE: The syntax shown in this section assumes that you have installed HP OpenView in the "/usr" directory.
1.
Configure a read-write community string on the HP device, if one is not already configured. To configure a
read-write community string, enter the following command from the global CONFIG level of the CLI:
snmp-server community <string> ro | rw
where <string> is the community string and can be up to 32 characters long.
2.
On the HP device, enter the following command from the global CONFIG level of the CLI:
no snmp-server pw-check
This command disables password checking for SNMP set requests. If a third-party SNMP management
application does not add a password to the password field when it sends SNMP set requests to an HP device,
by default the HP device rejects the request.
3.
From the command prompt in the UNIX shell, enter the following command:
/usr/OV/bin/snmpset -c <rw-community-string> <hp-ip-addr> 1.3.6.1.4.1.1991.1.1.2.1.5.0
ipaddress <tftp-ip-addr> 1.3.6.1.4.1.1991.1.1.2.1.8.0 octetstringascii <config-file-name>
1.3.6.1.4.1.1991.1.1.2.1.9.0 integer <command-integer>
where:
<rw-community-string> is a read-write community string configured on the HP device.
<hp-ip-addr> is the HP device's IP address.
<tftp-ip-addr> is the TFTP server's IP address.
<config-file-name> is the configuration file name.
<command-integer> is one of the following:
20 – Upload the startup-config file from the HP device's flash memory to the TFTP server.
21 – Download a startup-config file from a TFTP server to the HP device's flash memory.
22 – Upload the running-config from the HP device's flash memory to the TFTP server.
10 - 12

Advertisement

Table of Contents
loading

This manual is also suitable for:

9315m

Table of Contents