====== Trabalhando na flash ====== ===== Mostrando sistema de arquivos ===== nemesis#show file systems File Systems: Size(b) Free(b) Type Flags Prefixes * 7741440 4024832 flash rw flash: - - opaque ro bs: 32768 27583 nvram rw nvram: - - opaque rw null: - - opaque rw system: - - network rw tftp: - - opaque ro xmodem: - - opaque ro ymodem: - - network rw rcp: - - network rw ftp: - - opaque ro cns: nemesis# ===== Ver o tipo de arquivo ===== nemesis#show file information flash:c2950-i6k2l2q4-mz.121-22.EA9 flash:c2950-i6k2l2q4-mz.121-22.EA9: type is ebcdic text nemesis#show file information flash:vlan.dat flash:vlan.dat: type is ascii text nemesis#show file information flash:config.text flash:config.text: type is config nemesis# ===== Mostrar o diretorio atual ===== nemesis#pwd flash: nemesis# ===== Excluindo arquivo da flash ===== nemesis#dir Directory of flash:/ 2 -rwx 3708032 Jan 01 1970 01:26:15 +00:00 c2950-i6k2l2q4-mz.121-22.EA9 3 -rwx 736 Mar 01 1993 00:00:22 +00:00 vlan.dat 5 -rwx 41 Mar 01 1993 00:11:37 +00:00 env_vars 6 -rwx 3204 Mar 01 1993 00:41:24 +00:00 config.text 7 drwx 2688 Mar 22 1993 14:42:52 +00:00 html 89 -rwx 1929 Mar 01 1993 00:41:25 +00:00 private-config.text 7741440 bytes total (602112 bytes free) nemesis# nemesis# delete flash:vlan.dat Delete filename [vlan.dat]? nemesis# ===== Excluindo diretório da flash ===== Router# del flash:/arquivo Exemplo de listar o diretório html e excluindo recursivamente e forçado. nemesis#dir Directory of flash:/ 2 -rwx 3708032 Jan 01 1970 01:26:15 +00:00 c2950-i6k2l2q4-mz.121-22.EA9 3 -rwx 736 Mar 01 1993 00:00:22 +00:00 vlan.dat 5 -rwx 41 Mar 01 1993 00:11:37 +00:00 env_vars 6 -rwx 3204 Mar 01 1993 00:41:24 +00:00 config.text 7 drwx 2688 Mar 22 1993 14:42:52 +00:00 html 89 -rwx 1929 Mar 01 1993 00:41:25 +00:00 private-config.text 7741440 bytes total (602112 bytes free) nemesis# nemesis#del /force /recursive flash:html Delete filename [html]? nemesis#dir Directory of flash:/ 2 -rwx 3708032 Jan 01 1970 01:26:15 +00:00 c2950-i6k2l2q4-mz.121-22.EA9 3 -rwx 736 Mar 01 1993 00:00:22 +00:00 vlan.dat 5 -rwx 41 Mar 01 1993 00:11:37 +00:00 env_vars 6 -rwx 3204 Mar 01 1993 00:41:24 +00:00 config.text 89 -rwx 1929 Mar 01 1993 00:41:25 +00:00 private-config.text 7741440 bytes total (4024832 bytes free) nemesis# ===== Trabalhando com archive(arquivos de pacotes) ===== Os archives são como container de arquivos agrupamento de arquivos. * archive tar /create - Cria um arquivo e adiciona arquivos nele * archive tar /table - Mostra o conteudo do arquivo * archive tar /xtract - Extrai arquivos. switch# archive tar /create tftp://172.20.10.30/saved flash:/new-configs switch# archive tar /table flash:/new-configs switch# archive tar /xtract tftp://172.20.10.30/saved flash:/new-configs