Jautājums: Как сохранять и заливать конфигурацию на/с TFTP-сервер(а) и обновлять прошивку по SNMP на DES-3200 C1, DES-3810

Atbilde: 
Нужные OIDы находятся в файле  “AGENT-GENERAL-MIB” (Genmgmt.mib).
 
# agentBscFileSystemMgmt
 
# agentBscFileSystemServerAddr
 
# agentBscFileSystemServerIPv6Addr
 
# agentBscFileSystemServerFileName
 
# agentBscFileSystemDeviceFileName
 
# agentBscFileSystemLoadType
 
# agentBscFileSystemCtrl
 
# agentBscFileSystemSaveCfg
 
 
Залить конфигурацию на TFTP сервер
 
Src.File : des3810.cfg
 
DES-3810-28:admin#dir c:/   
Command: dir c:/
 
Directory of c:/:
 Idx Info    Attr Size     Update Time         Name
 --- ------- ---- -------- ------------------- ----
   1 RUN(*)  -rw- 5104548  2000/01/10 00:54:56 runtime.had
   2 CFG(b)  -rw- 26666    2000/06/20 09:15:26 des3810.cfg
   3 CFG(*)  -rw- 24977    2000/06/20 09:15:44 config.cfg
   4         d---          2000/06/20 09:16:20 system
30592 KB total (25460 KB free)
 
 (*) -with boot up info         (b) -with backup info
 
Dst.File : des3810backup.cfg
 
::Command ::
snmpset -v2c -c private 10.90.90.90 1.3.6.1.4.1.171.12.1.2.18.1.1.3.3 a
10.90.90.100 1.3.6.1.4.1.171.12.1.2.18.1.1.5.3 s des3810backup.cfg
1.3.6.1.4.1.171.12.1.2.18.1.1.7.3 s des3810.cfg
1.3.6.1.4.1.171.12.1.2.18.1.1.8.3 i 2 1.3.6.1.4.1.171.12.1.2.18.1.1.12.3 i 3
1 – файл прошивки.
2 – лог файл
3 – файл конфигурации.
 
 
Загрузить конфигурацию с TFTP сервера
 
Src.File : des3810backup.cfg
Dst.File : des3810.cfg
::Command::
 
snmpset -v2c -c private 10.90.90.90 1.3.6.1.4.1.171.12.1.2.18.1.1.3.3 a
10.90.90.100 1.3.6.1.4.1.171.12.1.2.18.1.1.5.3 s des3810backup.cfg
1.3.6.1.4.1.171.12.1.2.18.1.1.7.3 s des3810.cfg
1.3.6.1.4.1.171.12.1.2.18.1.1.8.3 i 3 1.3.6.1.4.1.171.12.1.2.18.1.1.12.3 i 3
1 – файл прошивки.
2 – лог файл
3 – файл конфигурации.
 
Загрузить прошивку с TFTP сервера
 
Src.File : DES-3810-28_A1_RunTime_v2.00.009.had
Dst.File : R2.00.009.had
::Command::
 
snmpset -v2c -c private 10.90.90.90 1.3.6.1.4.1.171.12.1.2.18.1.1.3.1 a
10.90.90.100 1.3.6.1.4.1.171.12.1.2.18.1.1.5.1 s DES-3810-
28_A1_RunTime_v2.00.009.had
1.3.6.1.4.1.171.12.1.2.18.1.1.7.1 s
R2.00.009.had 1.3.6.1.4.1.171.12.1.2.18.1.1.8.1 i 3
1.3.6.1.4.1.171.12.1.2.18.1.1.12.1 i 3
1 – файл прошивки.
2 – лог файл
3 – файл конфигурации.
 
Results:
 
DES-3810-28:admin#dir c:/   
Command: dir c:/
 
Directory of c:/:
 Idx Info    Attr Size     Update Time         Name
 --- ------- ---- -------- ------------------- ----
   1         -rw- 2795520  2000/06/20 09:49:04 R2.00.009.had
   2 RUN(*)  -rw- 5104548  2000/01/10 00:54:56 runtime.had
   3 CFG(*)  -rw- 24977    2000/06/20 09:15:44 config.cfg
   4         d---          2000/06/20 09:16:20 system
30592 KB total (22758 KB free)
 
 (*) -with boot up info         (b) -with backup info
 
Сохранить конфигурацию
 
::Command::
 
snmpset -v2c -c private 10.90.90.90 1.3.6.1.4.1.171.12.1.2.18.4.0 i 2