Cisco Switch Filesystems: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Thomas (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Thomas (Diskussion | Beiträge)
 
(30 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 26: Zeile 26:
</pre>
</pre>


=Flash anzeigen=
*c3750#show flash
<pre>
Directory of flash:/
    2  -rwx        1048  Jan 28 2016 13:23:15 +00:00  multiple-fs
    4  -rwx        616  Mar 1 1993 00:10:52 +00:00  vlan.dat
    5  -rwx        3179  Jan 28 2016 13:23:15 +00:00  config.text
  395  drwx        192  Oct 21 2008 12:41:15 +00:00  c3750-advipservicesk9-mz.122-46.SE
  394  -rwx          24  Jan 28 2016 13:23:15 +00:00  private-config.text
</pre>


=Inhalt von einer Datei anzeigen=
=Inhalt von einer Datei anzeigen=
*c3750g#more config.text
*c3750#more flash:/config.text
 
<pre>
=Anzeige Flash=
!
*Switch#show flash
! Last configuration change at 13:23:06 UTC Thu Jan 28 2016
Directory of flash:/
! NVRAM config last updated at 13:23:13 UTC Thu Jan 28 2016
!
    2  -rwx        3096  Jan 26 2016 15:22:16 +00:00  multiple-fs
version 12.2
    3  -rwx        1590  Mar 1 1993 00:44:44 +00:00  config.old
no service pad
  457  drwx        192  Mar 1 1993 00:35:33 +00:00  c3750-ipbasek9-mz.122-55.SE6
service timestamps debug datetime msec
    84  -rwx        1940  Jan 26 2016 15:22:16 +00:00  private-config.text
service timestamps log datetime msec
    85  -rwx        3021  Jan 26 2016 15:22:16 +00:00  config.text
service password-encryption
...
</pre>


=Anzeige Flash mit dir=
=Anzeige Flash mit dir=
*Switch#dir flash:
*c3750#dir flash:/
<pre>
<pre>
Directory of flash:/
Directory of flash:/


     2  -rwx        3096 Jan 26 2016 15:22:16 +00:00  multiple-fs
     2  -rwx        1048 Jan 28 2016 13:23:15 +00:00  multiple-fs
     3 -rwx       1590   Mar 1 1993 00:44:44 +00:00  config.old
     4 -rwx         616   Mar 1 1993 00:10:52 +00:00  vlan.dat
   457 drwx        192   Mar 1 1993 00:35:33 +00:00  c3750-ipbasek9-mz.122-55.SE6
    5  -rwx        3179  Jan 28 2016 13:23:15 +00:00  config.text
  84 -rwx       1940 Jan 26 2016 15:22:16 +00:00  private-config.text
   395 drwx        192 Oct 21 2008 12:41:15 +00:00  c3750-advipservicesk9-mz.122-46.SE
  85  -rwx        3021  Jan 26 2016 15:22:16 +00:00  config.text
  394 -rwx         24 Jan 28 2016 13:23:15 +00:00  private-config.text
 
15998976 bytes total (2386944 bytes free)
</pre>
</pre>


=Anzeige Directory=
=Anzeige Directory=
*Switch#dir c3750-ipbasek9-mz.122-55.SE6 
*c3750#dir flash:/c3750-advipservicesk9-mz.122-46.SE
<pre>  
<pre>
Directory of flash:/c3750-ipbasek9-mz.122-55.SE6/
Directory of flash:/c3750-advipservicesk9-mz.122-46.SE/


     4  drwx        1792  Mar 1 1993 00:28:51 +00:00  html
     6 -rwx    11135796  Oct 21 2008 12:40:01 +00:00  c3750-advipservicesk9-mz.122-46.SE.bin
  82 -rwx    12098384  Mar 1 1993 00:35:33 +00:00  c3750-ipbasek9-mz.122-55.SE6.bin
    7  drwx        4544  Oct 21 2008 12:40:51 +00:00  html
  83 -rwx        681  Mar 1 1993 00:35:33 +00:00  info
  396 -rwx        638  Oct 21 2008 12:41:15 +00:00  info
</pre>
</pre>


=Ios sichern=
=Ios sichern=
*Switch#copy flash:/c3750-ipbasek9-mz.122-55.SE6/c3750-ipbasek9-mz.122-55.SE6.bin tftp://192.168.240.200/cisco/
*c3750#$copy flash:/c3750-advipservicesk9-mz.122-46.SE/c3750-advipservicesk9-mz.122-46.SE.bin tftp://192.168.240.200/cisco/    
  Address or name of remote host [192.168.240.200]?  
  Address or name of remote host [192.168.240.200]?  
  Destination filename [cisco/c3750-ipbasek9-mz.122-55.SE6.bin]?  
  Destination filename [cisco/c3750-advipservicesk9-mz.122-46.SE.bin]?  
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11135796 bytes copied in 25.988 secs (428498 bytes/sec)
 
=Konfig sichern=
=Konfig sichern=
*Switch#copy running-config tftp://192.168.240.200/cisco/c3750g.conf
*c3750# copy running-config tftp://192.168.240.200/cisco/c3750g2.conf        
  Address or name of remote host [192.168.240.200]?  
  Address or name of remote host [192.168.240.200]?  
  Destination filename [cisco/c3750g.conf]?  
  Destination filename [cisco/c3750g2.conf]?  
  !!
  !!
  4356 bytes copied in 1.409 secs (3092 bytes/sec
  3179 bytes copied in 3.070 secs (1036 bytes/sec)
=Verzeichnis anlegen=
*c3750#mkdir flash:/old
Create directory filename [old]?
Created dir flash:/old
=Kopieren vom tftp=
*c3750# copy tftp://192.168.240.200/cisco/c3750g2.conf  flash:/old
Destination filename [/old/c3750g2.conf]?
Accessing tftp://192.168.240.200/cisco/c3750g2.conf...
Loading cisco/c3750g2.conf from 192.168.240.200 (via Vlan1): !
[OK - 3179 bytes]
3179 bytes copied in 0.067 secs (47448 bytes/sec)
=cd, pwd, copy und =
*c3750#pwd
flash:/
*c3750#dir
Directory of flash:/
    2  -rwx        1048  Jan 28 2016 13:23:15 +00:00  multiple-fs
    3  drwx          64  Jan 28 2016 14:38:52 +00:00  old
    4  -rwx        616  Mar 1 1993 00:10:52 +00:00  vlan.dat
    5  -rwx        3179  Jan 28 2016 13:23:15 +00:00  config.text
  395  drwx        192  Oct 21 2008 12:41:15 +00:00  c3750-advipservicesk9-mz.122-46.SE
  394  -rwx          24  Jan 28 2016 13:23:15 +00:00  private-config.text
15998976 bytes total (2383360 bytes free)
 
*c3750#cd old
*c3750#pwd
flash:/old/
 
*c3750#copy c3750g2.conf c3750g2.conf.backup
Destination filename [/old/c3750g2.conf.backup]?
Copy in progress...C
3179 bytes copied in 0.058 secs (54810 bytes/sec)
 
*c3750#delete c3750g2.conf
Delete filename [/old/c3750g2.conf]?
Delete flash:/old/c3750g2.conf? [confirm]
 
 
 
Character
Description
=Copy Character Descriptions=
*[[Copy Character Descriptions]]
=Verzeichnis löschen=
*c3750# delete /recursive /force flash:c3750-ipbasek9-mz.122-50.SE1
 
=Komplettes Verzeichnis sichern=
*c3750# archive tar /create tftp://192.168.240.200/cisco/c3750g48.tar flash://
 
=Komplettes Verzeichnis einspielen=
*c3750# archive tar /xtract tftp://192.168.240.200/cisco/c3750-ipservicesk9-tar.150-1.SE2.tar flash:
 
=Show boot=
*c3750#show boot
<pre>
BOOT path-list      : flash:c3750-advipservicesk9-mz.122-46.SE/c3750-advipservicesk9-mz.122-46.SE.bin
Config file        : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot        : no
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path  :
Timeout for Config
          Download:    0 seconds
Config Download
      via DHCP:      disabled (next boot: disabled)
</pre>
 
 
 
=Md5 verifizieren=
*c3750#verify /md5 flash:/c3750-ipbasek9-mz.122-55.SE6/c3750-ipbasek9-mz.122-55.SE6.bin
 
=Modify Switch Boot path-list testen=
*c3750#boot system switch all flash:/c3750-ipbasek9-mz.122-55.SE6/c3750-ipbasek9-mz.122-55.SE6.bin

Aktuelle Version vom 26. Oktober 2017, 10:55 Uhr

Dateisystem anzeigen

  • c3750#show file systems
File Systems:

     Size(b)     Free(b)      Type  Flags  Prefixes
*   15998976     2386944     flash     rw   flash: flash1:
           -           -    opaque     rw   vb:
           -           -    opaque     ro   bs:
           -           -    opaque     rw   system:
           -           -    opaque     rw   tmpsys:
      524288      520009     nvram     rw   nvram:
           -           -    opaque     ro   xmodem:
           -           -    opaque     ro   ymodem:
           -           -    opaque     rw   null:
           -           -    opaque     ro   tar:
           -           -   network     rw   tftp:
           -           -    opaque     wo   syslog:
           -           -   network     rw   rcp:
           -           -   network     rw   http:
           -           -   network     rw   ftp:
           -           -   network     rw   scp:
           -           -   network     rw   https:
           -           -    opaque     ro   cns:

Flash anzeigen

  • c3750#show flash

Directory of flash:/

    2  -rwx        1048  Jan 28 2016 13:23:15 +00:00  multiple-fs
    4  -rwx         616   Mar 1 1993 00:10:52 +00:00  vlan.dat
    5  -rwx        3179  Jan 28 2016 13:23:15 +00:00  config.text
  395  drwx         192  Oct 21 2008 12:41:15 +00:00  c3750-advipservicesk9-mz.122-46.SE
  394  -rwx          24  Jan 28 2016 13:23:15 +00:00  private-config.text

Inhalt von einer Datei anzeigen

  • c3750#more flash:/config.text
!
! Last configuration change at 13:23:06 UTC Thu Jan 28 2016
! NVRAM config last updated at 13:23:13 UTC Thu Jan 28 2016
!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
...

Anzeige Flash mit dir

  • c3750#dir flash:/
Directory of flash:/

    2  -rwx        1048  Jan 28 2016 13:23:15 +00:00  multiple-fs
    4  -rwx         616   Mar 1 1993 00:10:52 +00:00  vlan.dat
    5  -rwx        3179  Jan 28 2016 13:23:15 +00:00  config.text
  395  drwx         192  Oct 21 2008 12:41:15 +00:00  c3750-advipservicesk9-mz.122-46.SE
  394  -rwx          24  Jan 28 2016 13:23:15 +00:00  private-config.text

15998976 bytes total (2386944 bytes free)

Anzeige Directory

  • c3750#dir flash:/c3750-advipservicesk9-mz.122-46.SE
Directory of flash:/c3750-advipservicesk9-mz.122-46.SE/

    6  -rwx    11135796  Oct 21 2008 12:40:01 +00:00  c3750-advipservicesk9-mz.122-46.SE.bin
    7  drwx        4544  Oct 21 2008 12:40:51 +00:00  html
  396  -rwx         638  Oct 21 2008 12:41:15 +00:00  info

Ios sichern

  • c3750#$copy flash:/c3750-advipservicesk9-mz.122-46.SE/c3750-advipservicesk9-mz.122-46.SE.bin tftp://192.168.240.200/cisco/
Address or name of remote host [192.168.240.200]? 
Destination filename [cisco/c3750-advipservicesk9-mz.122-46.SE.bin]? 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11135796 bytes copied in 25.988 secs (428498 bytes/sec)

Konfig sichern

  • c3750# copy running-config tftp://192.168.240.200/cisco/c3750g2.conf
Address or name of remote host [192.168.240.200]? 
Destination filename [cisco/c3750g2.conf]? 
!!
3179 bytes copied in 3.070 secs (1036 bytes/sec)

Verzeichnis anlegen

  • c3750#mkdir flash:/old
Create directory filename [old]? 
Created dir flash:/old

Kopieren vom tftp

  • c3750# copy tftp://192.168.240.200/cisco/c3750g2.conf flash:/old
Destination filename [/old/c3750g2.conf]? 
Accessing tftp://192.168.240.200/cisco/c3750g2.conf...
Loading cisco/c3750g2.conf from 192.168.240.200 (via Vlan1): !
[OK - 3179 bytes] 

3179 bytes copied in 0.067 secs (47448 bytes/sec)

cd, pwd, copy und

  • c3750#pwd
flash:/
  • c3750#dir
Directory of flash:/

   2  -rwx        1048  Jan 28 2016 13:23:15 +00:00  multiple-fs
   3  drwx          64  Jan 28 2016 14:38:52 +00:00  old
   4  -rwx         616   Mar 1 1993 00:10:52 +00:00  vlan.dat
   5  -rwx        3179  Jan 28 2016 13:23:15 +00:00  config.text
 395  drwx         192  Oct 21 2008 12:41:15 +00:00  c3750-advipservicesk9-mz.122-46.SE
 394  -rwx          24  Jan 28 2016 13:23:15 +00:00  private-config.text

15998976 bytes total (2383360 bytes free)
  • c3750#cd old
  • c3750#pwd
flash:/old/
  • c3750#copy c3750g2.conf c3750g2.conf.backup
Destination filename [/old/c3750g2.conf.backup]? 
Copy in progress...C
3179 bytes copied in 0.058 secs (54810 bytes/sec)
  • c3750#delete c3750g2.conf
Delete filename [/old/c3750g2.conf]? 
Delete flash:/old/c3750g2.conf? [confirm]


Character

Description

Copy Character Descriptions

Verzeichnis löschen

  • c3750# delete /recursive /force flash:c3750-ipbasek9-mz.122-50.SE1

Komplettes Verzeichnis sichern

  • c3750# archive tar /create tftp://192.168.240.200/cisco/c3750g48.tar flash://

Komplettes Verzeichnis einspielen

  • c3750# archive tar /xtract tftp://192.168.240.200/cisco/c3750-ipservicesk9-tar.150-1.SE2.tar flash:

Show boot

  • c3750#show boot
BOOT path-list      : flash:c3750-advipservicesk9-mz.122-46.SE/c3750-advipservicesk9-mz.122-46.SE.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    : 
Auto upgrade        : yes
Auto upgrade path   : 
Timeout for Config
          Download:    0 seconds
Config Download 
       via DHCP:       disabled (next boot: disabled)


Md5 verifizieren

  • c3750#verify /md5 flash:/c3750-ipbasek9-mz.122-55.SE6/c3750-ipbasek9-mz.122-55.SE6.bin

Modify Switch Boot path-list testen

  • c3750#boot system switch all flash:/c3750-ipbasek9-mz.122-55.SE6/c3750-ipbasek9-mz.122-55.SE6.bin