02.10.2013 Views

FTOS Configuration Guide for the C-Series - Force10 Networks

FTOS Configuration Guide for the C-Series - Force10 Networks

FTOS Configuration Guide for the C-Series - Force10 Networks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Note: In Unix, enter <strong>the</strong> command snmpset <strong>for</strong> help using this command. Place <strong>the</strong> file<br />

f10-copy-config.mib <strong>the</strong> directory from which you are executing <strong>the</strong> snmpset command or in <strong>the</strong> snmpset<br />

tool path.<br />

Table 7 Copying <strong>Configuration</strong> Files via SNMP<br />

Task<br />

Copy <strong>the</strong> running-config to <strong>the</strong> startup-config using <strong>the</strong> following command from <strong>the</strong> Unix server:<br />

snmpset -v 2c -c public -m ./f10-copy-config.mib <strong>for</strong>ce10system-ip-address copySrcFileType.index i 2<br />

copyDestFileType.index i 3<br />

Figure 39 show <strong>the</strong> command syntax using MIB object names, and Figure 40 shows <strong>the</strong> same command using<br />

<strong>the</strong> object OIDs. In both cases, <strong>the</strong> object is followed by a unique index number.<br />

Figure 39 Copying <strong>Configuration</strong> Files via SNMP using Object-Name Syntax<br />

> snmpset -v 2c -r 0 -t 60 -c private -m ./f10-copy-config.mib 10.10.10.10 copySrcFileType.101<br />

i 2 copyDestFileType.101 i 3<br />

FORCE10-COPY-CONFIG-MIB::copySrcFileType.101 = INTEGER: runningConfig(2)<br />

FORCE10-COPY-CONFIG-MIB::copyDestFileType.101 = INTEGER: startupConfig(3)<br />

Figure 40 Copying <strong>Configuration</strong> Files via SNMP using OID Syntax<br />

> snmpset -v 2c -c private -m ./f10-copy-config.mib 10.10.10.10<br />

.1.3.6.1.4.1.6027.3.5.1.1.1.1.2.100 i 2 .1.3.6.1.4.1.6027.3.5.1.1.1.1.5.100 i 3<br />

FORCE10-COPY-CONFIG-MIB::copySrcFileType.100 = INTEGER: runningConfig(2)<br />

FORCE10-COPY-CONFIG-MIB::copyDestFileType.100 = INTEGER: startupConfig(3)<br />

Copy <strong>the</strong> startup-config to <strong>the</strong> server via FTP using <strong>the</strong> following command from <strong>the</strong> Unix server:<br />

snmpset -v 2c -c public -m ./f10-copy-config.mib <strong>for</strong>ce10system-ip-address copySrcFileType.index i 2<br />

copyDestFileName.index s filepath/filename copyDestFileLocation.index i 4 copyServerAddress.index a<br />

server-ip-address copyUserName.index s server-login-id copyUserPassword.index s server-login-password<br />

• server-ip-address must be preceded by <strong>the</strong> keyword a.<br />

• values <strong>for</strong> copyUsername and copyUserPassword must be preceded by <strong>the</strong> keyword s.<br />

Figure 41 Copying <strong>Configuration</strong> Files via SNMP and FTP to a Remote Server<br />

> snmpset -v 2c -c private -m ./f10-copy-config.mib 10.10.10.10 copySrcFileType.110 i 2<br />

copyDestFileName.110 s /home/startup-config copyDestFileLocation.110 i 4 copyServerAddress.110<br />

a 11.11.11.11 copyUserName.110 s mylogin copyUserPassword.110 s mypass<br />

FORCE10-COPY-CONFIG-MIB::copySrcFileType.110 = INTEGER: runningConfig(2)<br />

FORCE10-COPY-CONFIG-MIB::copyDestFileName.110 = STRING: /home/startup-config<br />

FORCE10-COPY-CONFIG-MIB::copyDestFileLocation.110 = INTEGER: ftp(4)<br />

FORCE10-COPY-CONFIG-MIB::copyServerAddress.110 = IpAddress: 11.11.11.11<br />

FORCE10-COPY-CONFIG-MIB::copyUserName.110 = STRING: mylogin<br />

FORCE10-COPY-CONFIG-MIB::copyUserPassword.110 = STRING: mypass<br />

Copy <strong>the</strong> startup-config to <strong>the</strong> server via TFTP using <strong>the</strong> following command from <strong>the</strong> Unix server:<br />

Note: Verify that <strong>the</strong> file exists and its permissions are set to 777, and specify <strong>the</strong> relative path to <strong>the</strong> TFTP root<br />

directory.<br />

96 Simple Network Management Protocol (SNMP)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!