{"id":410,"date":"2014-03-06T15:15:45","date_gmt":"2014-03-06T14:15:45","guid":{"rendered":"http:\/\/janscholten.de\/blog\/?p=410"},"modified":"2014-03-06T15:15:45","modified_gmt":"2014-03-06T14:15:45","slug":"datentransfer-in-einem-alcatel-omniswitch-6900-virtual-chassis","status":"publish","type":"post","link":"https:\/\/janscholten.de\/blog\/2014\/03\/datentransfer-in-einem-alcatel-omniswitch-6900-virtual-chassis\/","title":{"rendered":"Datentransfer in einem Alcatel Omniswitch 6900 Virtual Chassis"},"content":{"rendered":"<p>Will man Dateien von einem Virtual Chassis zu einem anderen transferieren kann man<\/p>\n<ul>\n<li>per console und USB Stick Daten kopieren<\/li>\n<li>per PC im EMP Netz mit FTP auf die einzelnen Chassis zugreifen.<\/li>\n<p>..\n<\/ul>\n<p>Aber was macht man, wenn man (per Remote) NICHT im EMP Netz ist? Oder die Variante Console+USB Stick nicht praktikabel ist?<\/p>\n<p>Bei Stacks gibt es Kommandos wie &#8222;rcp&#8220; oder &#8222;rrm&#8220; um Dateien auf anderen Stackmembern zu kopieren\/l\u00f6schen &#8211; in einem Virtual Chassis gibt es das nicht.<\/p>\n<p>Rettung naht!<\/p>\n<p>Man kopiert einfach die Daten zwischen den Chassis \u00fcber den EMP Port per FTP oder SFTP:<\/p>\n<p><strong>FTP\/SFTP zum Filetransfer zwischen zwei Chassis innerhalb VC <\/strong><br \/>\nMan muss entsprechend EMP-Interface angelegt haben, um eindeutig das jeweilige andere Chassis zu erreichen. Aber das ist ja in einem VC sowieso best practice.<br \/>\nExkurs:<br \/>\nHat man das vergessen geht es so (vom Master)<br \/>\n<code><br \/>\n ip interface local chassis-id X emp address 192.168.2.2\/24<br \/>\n<\/code><br \/>\nWobei X f\u00fcr das Chassis steht, dessen interface man \u00e4ndern will. Derzeit gibt es noch ein Software-Problem, wenn man die Adressen im laufenden Betrieb \u00e4ndert, als workaround l\u00f6scht man die Adressen zu erst (bitte dann nicht \u00fcber die EMP Adresse verbunden sein)<\/p>\n<p><code>no ip interface local chassis-id 2 emp<br \/>\nip interface local chassis-id 2 emp address 192.168.2.2\/24<\/code><\/p>\n<p>Abspeichern nicht vergessen!<\/p>\n<p><code>write memory flash-synchro<\/code><\/p>\n<p>Genug des Exkurses.. wir haben jetzt EMP Adressen.<\/p>\n<p>Nachfolgend verbinden wir uns z.B. per ssh auf dem Chassis 1 (VC-Master) und nutze eine der CHAS2-EMP-Adressen (10.255.255.32 oder 10.255.255.12) zum Zugriff auf Chassis 2. <\/p>\n<p>Lokale Verzeichnisse sind dann im Flash von Chassis 1 und Remote Verzeichnisse im Flash von Chassis 2.<br \/>\nMit Put wird also von Chassis 1 zu Chassis 2 \u00fcbertragen, mit Get in die andere Richtung.<br \/>\n<code>VC-Test> show ip interface<br \/>\nTotal 10 interfaces<br \/>\n            Name                 IP Address      Subnet Mask     Status Forward Device<br \/>\n--------------------------------+---------------+---------------+------+-------+--------<br \/>\nEMP-CHAS1                        10.255.255.31   255.255.255.0       UP      NO EMP<br \/>\nEMP-CHAS2                        10.255.255.32   255.255.255.0       UP      NO EMP<br \/>\nEMP-CMMA-CHAS1                   10.255.255.11   255.255.255.0       UP      NO EMP<br \/>\nEMP-CMMA-CHAS2                   10.255.255.12   255.255.255.0       UP      NO EMP<br \/>\nEMP-VC                           10.255.255.1    255.255.255.0       UP      NO EMP<br \/>\n<\/code><\/p>\n<p><strong>FTP-Verbindung <\/strong><\/p>\n<p><code>VC-Test> ftp 10.255.255.12<br \/>\nConnected to 10.255.255.12 (10.255.255.12).<br \/>\n220 (vsFTPd 2.0.7)<br \/>\nName (10.255.255.12:admin): admin<br \/>\n331 Please specify the password.<br \/>\nPassword:<br \/>\n230 Login successful.<br \/>\nRemote system type is UNIX.<br \/>\nUsing binary mode to transfer files.<br \/>\n<\/code><br \/>\nUmschalten zw. Text und binary-Mode (f\u00fcr Image-Transfer ist Binary Mode erforderlich)<br \/>\n<code>ftp> ascii<br \/>\n200 Switching to ASCII mode.<br \/>\nftp> binary<br \/>\n200 Switching to Binary mode.<\/code><br \/>\nBeispiel f\u00fcr Image-Transfer (inklusive Anlegen des Verzeichnisses auf dem Chassis 2):<br \/>\nmput &#8211; zur \u00dcbertragung mehrerer Files mit Wildcards (*)<br \/>\n<code>ftp> pwd<br \/>\n257 \"\/flash\"<\/p>\n<p>ftp> mkdir NEW-IMG<br \/>\n257 \"\/flash\/NEW-IMG\" created<\/p>\n<p>ftp> mput \/flash\/NEW-IMG\/* \/flash\/NEW-IMG\/*<br \/>\nmput \/flash\/NEW-IMG\/Tos.img? y<br \/>\n200 PORT command successful. Consider using PASV.<br \/>\n150 Ok to send data.<br \/>\n226 File receive OK.<br \/>\n155796964 bytes sent in 27.9 secs (5.5e+03 Kbytes\/sec)<br \/>\nmput \/flash\/NEW-IMG\/software.lsm? y<\/p>\n<p>ftp> cd NEW-IMG<br \/>\n250 Directory successfully changed.<\/p>\n<p>ftp> ls<br \/>\n200 PORT command successful. Consider using PASV.<br \/>\n150 Here comes the directory listing.<br \/>\n-rw-------    1 ftp      ftp      155796964 Dec 30 14:09 Tos.img<br \/>\n-rw-------    1 ftp      ftp           438 Dec 30 14:09 software.lsm<br \/>\n226 Directory send OK.<\/p>\n<p>ftp> bye<br \/>\n221 Goodbye.<br \/>\n<\/code><\/p>\n<p><strong>SFTP-Verbindung<\/strong><\/p>\n<p><code>VC-Test> sftp 10.255.255.12<br \/>\nConnecting to 10.255.255.12...<br \/>\nThe authenticity of host '10.255.255.12 (10.255.255.12)' can't be established.<br \/>\nRSA key fingerprint is 5e:c4:3a:37:fa:f6:90:5a:d8:71:98:1c:70:63:24:71.<br \/>\nAre you sure you want to continue connecting (yes\/no)? yes<br \/>\nWarning: Permanently added '10.255.255.12' (RSA) to the list of known hosts.<br \/>\nPassword:<\/code><br \/>\nM\u00f6gliche Befehle:<br \/>\n<code>sftp> ?<br \/>\nAvailable commands:<br \/>\ncd path                       Change remote directory to 'path'<br \/>\nlcd path                      Change local directory to 'path'<br \/>\nchgrp grp path                Change group of file 'path' to 'grp'<br \/>\nchmod mode path               Change permissions of file 'path' to 'mode'<br \/>\nchown own path                Change owner of file 'path' to 'own'<br \/>\nhelp                          Display this help text<br \/>\nget remote-path [local-path]  Download file<br \/>\nlls [ls-options [path]]       Display local directory listing<br \/>\nln oldpath newpath            Symlink remote file<br \/>\nlmkdir path                   Create local directory<br \/>\nlpwd                          Print local working directory<br \/>\nls [path]                     Display remote directory listing<br \/>\nlumask umask                  Set local umask to 'umask'<br \/>\nmkdir path                    Create remote directory<br \/>\nprogress                      Toggle display of progress meter<br \/>\nput local-path [remote-path]  Upload file<br \/>\npwd                           Display remote working directory<br \/>\nexit                          Quit sftp<br \/>\nquit                          Quit sftp<br \/>\nrename oldpath newpath        Rename remote file<br \/>\nrmdir path                    Remove remote directory<br \/>\nrm path                       Delete remote file<br \/>\nsymlink oldpath newpath       Symlink remote file<br \/>\nversion                       Show SFTP version<br \/>\n!command                      Execute 'command' in local shell<br \/>\n!                             Escape to local shell<br \/>\n?                             Synonym for help<\/code><\/p>\n<p>Beispiel f\u00fcr Image-Transfer (inklusive Anlegen des Verzeichnisses auf dem Chassis 2):<br \/>\n<code>sftp> mkdir NEW-IMG<\/p>\n<p>sftp>  mput \/flash\/NEW-IMG\/* \/flash\/NEW-IMG<br \/>\nUploading \/flash\/NEW-IMG\/Tos.img to \/flash\/NEW-IMG\/Tos.img<br \/>\n\/flash\/NEW-IMG\/Tos.img                                                100%  149MB   5.3MB\/s   00:28<br \/>\nUploading \/flash\/NEW-IMG\/software.lsm to \/flash\/NEW-IMG\/software.lsm<br \/>\n\/flash\/NEW-IMG\/software.lsm                                           100%  438     0.4KB\/s   00:00<br \/>\nsftp><\/p>\n<p>sftp> bye<br \/>\n<\/code><\/p>\n<p>Gro\u00dfe Teile dieses Posts hab ich schamlos von Silvio geklaut (aber er hat &#8222;du darfst&#8220; gesagt)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Will man Dateien von einem Virtual Chassis zu einem anderen transferieren kann man per console und USB Stick Daten kopieren per PC im EMP Netz mit FTP auf die einzelnen Chassis zugreifen. .. Aber was macht man, wenn man (per Remote) NICHT im EMP Netz ist? Oder die Variante Console+USB Stick nicht praktikabel ist? Bei &hellip; <a href=\"https:\/\/janscholten.de\/blog\/2014\/03\/datentransfer-in-einem-alcatel-omniswitch-6900-virtual-chassis\/\" class=\"more-link\"><span class=\"screen-reader-text\">Datentransfer in einem Alcatel Omniswitch 6900 Virtual Chassis<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,7,12],"tags":[37,31,36,44],"class_list":["post-410","post","type-post","status-publish","format-standard","hentry","category-alcatel","category-erfahrungen","category-job","tag-37","tag-alcatel","tag-omniswitch","tag-virtual-chassis"],"_links":{"self":[{"href":"https:\/\/janscholten.de\/blog\/wp-json\/wp\/v2\/posts\/410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/janscholten.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/janscholten.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/janscholten.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/janscholten.de\/blog\/wp-json\/wp\/v2\/comments?post=410"}],"version-history":[{"count":3,"href":"https:\/\/janscholten.de\/blog\/wp-json\/wp\/v2\/posts\/410\/revisions"}],"predecessor-version":[{"id":413,"href":"https:\/\/janscholten.de\/blog\/wp-json\/wp\/v2\/posts\/410\/revisions\/413"}],"wp:attachment":[{"href":"https:\/\/janscholten.de\/blog\/wp-json\/wp\/v2\/media?parent=410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/janscholten.de\/blog\/wp-json\/wp\/v2\/categories?post=410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/janscholten.de\/blog\/wp-json\/wp\/v2\/tags?post=410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}