华为9312交换机log信息下载操作指引通过displaylogbuffer命令可以查询到华为9312交换机上的log信息,但是由于logbuffer的大小有限,往往只能看到很短时间内的日志信息,历史的log信息就无法通过该命令进行查看;需要查询历史log信息,需要通过FTP方式登陆9312交换机,下载历史log信息,具体操作步骤如下1、开启9312交换机的FTP访问权限,在全局模式下输入命令:[GDGZ-MA-IPMAN-FC-SW01-S9312]ftpserverenable2、登陆账号FTP访问权限放通。在service-type中增加ftp,另外需要配置ftp-directory,没有配置ftp-directory,则无法成功FTP登陆[GDGZ-MA-IPMAN-FC-SW01-S9312-aaa]local-userhjy13922200004service-typeftptelnet[GDGZ-MA-IPMAN-FC-SW01-S9312-aaa]local-userhjy13922200004ftp-directorycfcard:/3、在全局模式下查看9312交换机的历史log文件,历史log文件存放位置在cfcard:/logfileGDGZ-MA-IPMAN-FC-SW01-S9312dirDirectoryofcfcard:/IdxAttrSize(Byte)DateTimeFileName0drw--Jan28201108:00:56logfile1-rw-198Jan05201117:14:40$_patchstate_a2-rw-4Jan28201113:40:20snmpnotilog.txt3-rw-8,882Jan15201110:04:30private-data.txt4-rw-6,693Jan28201114:25:16vrpcfg.zip5-rw-1,730,668Jan05201116:20:56s9300v100r001sph017.pat6-rw-22,313,196Dec05200913:44:16s9300v100r001c02b125.cc7-rw-140,708Jan05201117:14:40patchhistory8-rw-0Dec17200908:36:46stickymac.txt9-rw-1,217,429Mar09201015:36:22s9300v100r001sph012.pat500,192KBtotal(415,904KBfree)GDGZ-MA-IPMAN-FC-SW01-S9312cdlogfileGDGZ-MA-IPMAN-FC-SW01-S9312dirDirectoryofcfcard:/logfile/IdxAttrSize(Byte)DateTimeFileName0-rw-7,150,374Jan28201114:17:00log.txt1-rw-204,765Jan14201118:18:582011-01-14.18-18-52.diag.zip2-rw-237,550Jan14201117:59:482011-01-14.17-59-41.diag.zip3-rw-5,512,736Jan28201113:45:54diag.txt4-rw-251,281Jan05201121:30:122011-01-05.21-30-08.log.zip5-rw-264,187Jan14201118:01:142011-01-14.18-01-09.log.zip6-rw-230,136Jan14201118:21:342011-01-14.18-21-29.log.zip7-rw-205,445Jan14201118:38:142011-01-14.18-38-08.diag.zip8-rw-231,180Jan14201118:41:522011-01-14.18-41-46.log.zip9-rw-204,397Jan14201118:57:142011-01-14.18-57-07.diag.zip10-rw-230,535Jan14201119:02:042011-01-14.19-02-00.log.zip11-rw-205,018Jan14201119:16:242011-01-14.19-16-19.diag.zip12-rw-245,137Jan14201119:22:282011-01-14.19-22-23.log.zip13-rw-206,074Jan14201119:35:362011-01-14.19-35-32.diag.zip14-rw-231,134Jan14201119:42:342011-01-14.19-42-28.log.zip(省略N行)500,192KBtotal(415,904KBfree)GDGZ-MA-IPMAN-FC-SW01-S93124、登陆城域网网管服务器,将9312交换机上的历史log文件先FTP下载到城域网网管服务器上。在输入get命令前在输入bin是改变文件传送格式,避免下载后加压缩失败。[root@CISCONMSGZ~]#ftpfc-sw01ConnectedtoFC-SW01.220FTPserviceready.530PleaseloginwithUSERandPASS.530PleaseloginwithUSERandPASS.KERBEROS_V4rejectedasanauthenticationtypeName(fc-sw01:root):hjy13922200004331Passwordrequiredforhjy13922200004.Password:230Userloggedin.RemotesystemtypeisVRP.ftpls227EnteringPassiveMode(192,168,27,43,200,52).125ASCIImodedataconnectionalreadyopen,transferstartingfor*.drwxrwxrwx1noonenogroup0Jan2808:00logfile-rwxrwxrwx1noonenogroup198Jan0517:14$_patchstate_a-rwxrwxrwx1noonenogroup4Jan2813:40snmpnotilog.txt-rwxrwxrwx1noonenogroup8882Jan1510:04private-data.txt-rwxrwxrwx1noonenogroup6693Jan2814:25vrpcfg.zip-rwxrwxrwx1noonenogroup1730668Jan0516:20s9300v100r001sph017.pat-rwxrwxrwx1noonenogroup22313196Dec052009s9300v100r001c02b125.cc-rwxrwxrwx1noonenogroup140708Jan0517:14patchhistory-rwxrwxrwx1noonenogroup0Dec172009stickymac.txt-rwxrwxrwx1noonenogroup1217429Mar092010s9300v100r001sph012.pat226Transfercomplete.ftpcdlogfile250CWDcommandsuccessful.ftpls227EnteringPassiveMode(192,168,27,43,202,227).125ASCIImodedataconnectionalreadyopen,transferstartingfor*.drwxrwxrwx1noonenogroup0Jan2808:00.drwxrwxrwx1noonenogroup0Jan2814:25..-rwxrwxrwx1noonenogroup7150374Jan2814:17log.txt-rwxrwxrwx1noonenogroup204765Jan1418:182011-01-14.18-18-52.diag.zip-rwxrwxrwx1noonenogroup237550Jan1417:592011-01-14.17-59-41.diag.zip-rwxrwxrwx1noonenogroup5512736Jan2813:45diag.txt-rwxrwxrwx1noonenogroup251281Jan0521:302011-01-05.21-30-08.log.zip-rwxrwxrwx1noonenogroup264187Jan1418:012011-01-14.18-01-09.log.zip-rwxrwxrwx1noonenogroup230136Jan1418:212011-01-14.18-21-29.log.zip-rwxrwxrwx1noonenogroup205445Jan1418:382011-01-14.18-38-08.diag.zip-rwxrwxrwx1noonenogroup231180Jan1418:412011-01-14.18-41-46.log.zip-rwxrwxrwx1noonenogroup204397Jan1418:572011-01-14.18-57-07.diag.zip-rwxrwxrwx1noonenogroup230535Jan1419:022011-01-14.19-02-00.log.zip-rwxrwxrwx1noonenogroup205018Jan1419:162011-01-14.19-16-19.diag.zip-rwxrwxrwx1noonenogroup245137Jan1419:222011-01-14.19-22-23.log.zip-rwxrwxrwx1noonenogroup206074Jan1419:352011-01-14.19-35-32.diag.zip-rwxrwxrwx1noonenogroup231134Jan1419:422011-01-14.19-42-28.log.zip(省略N行)226Transfercomplete.ftpbin200TypesettoI.ftpget2011-01-02.09-58-00.log.ziplocal:2011-01-02.09-58-00.log.zipremote:2011-01-02.09-58-00.log.zip227EnteringPassiveMode(192,168,27,43,200,162).125BINARYmodedataconnectionalreadyopen,transferstartingfor2011-01-02.09-58-00.log.zip.226Transfercomplete.258483bytesreceivedin1.1seconds(2.4e+02Kbytes/s)ftpbye221Serverclosing.[root@CISCONMSGZ~]#ls-ltotal27548-rw-r--r--1rootroot190954Oct2008:532010-10-13.15-35-11.log.zip-rw-r--r--1rootroot200062Oct2008:562010-10-14.07-57-19.log.zip-rw-r--r--1rootroot258483Jan2813:542011-01-02.09-58-00.log.zip-rw-r--r--1rootroot273550Jan2722:212011-01-27.13-01-46.log.zip-rw-r--r--1rootroot290309Jan2722:252011-01-27.20-01-08.log.z