Home > HP > Printer > HP 5500 Ei 5500 Si Switch Series Configuration Guide

HP 5500 Ei 5500 Si Switch Series Configuration Guide

    Download as PDF Print this page Share this page

    Have a look at the manual HP 5500 Ei 5500 Si Switch Series Configuration Guide online for free. It’s possible to download the document as PDF or print. UserManuals.tech offer 1114 HP manuals and user’s guides for free. Share the user manual or guide on Facebook, Twitter or Google+.

    Page
    of 2513
    							 79 
    # Create a local user account abc, set its password to  abc and the user privilege level to level 3 (the 
    manage level), specify the Flash root directory of  the master device as the authorized directory, 
    and specify the service type as FTP. 
     system-view 
    [Sysname] local-user abc 
    [Sysname-luser-abc] password simple abc 
    [Sysname-luser-abc] authorization-attribute level 3 
    [Sysname-luser-abc] authorization-attribute work-directory flash:/ 
    [Sysname-luser-abc] service-type ftp 
    [Sysname-luser-abc] quit 
    To access the Flash root directory of the subo rdinate device (with the member ID 2), replace  flash:/ 
    in the command  authorization-attribute work-directory flash:/  with slot2#flash:/ . 
    # Enable the FTP server. 
    [Sysname] ftp server enable 
    [Sysname] quit 
    2.  Perform FTP operations from the FTP client: 
    # Log in to the FTP server at 1.1.1.1 by using the username  abc and password abc. 
    c:\> ftp 1.1.1.1 
    Connected to 1.1.1.1. 
    220 FTP service ready. 
    User(1.1.1.1:(none)):abc 
    331 Password required for abc. 
    Password: 
    230 User logged in. 
    # Download the configuration file  config.cfg from the FTP server to the PC for backup. 
    ftp> get config.cfg back-config.cfg 
    # Upload the file  newest.bin to the Flash root directory of the master. 
    ftp> put newest.bin 
    ftp> bye 
    This FTP procedure also applies to upgrading configuration files. 
    After you finish upgrading the Boot ROM image through FTP, execute the  bootrom update 
    command to upgrade Boot ROM. 
    3.  Upgrade the FTP server: 
    # Copy the system software image file  newest.bin to the Flash root directory of the subordinate 
    device (with the member ID 2). 
     copy newest.bin slot2#flash:/ 
    # Specify  newest.bin  as the main system software image file for the next startup of all member 
    devices. 
     boot-loader file newest.bin slot all main 
      This command will set the boot file of the specified board. Continue? \
    [Y/N]:y 
      The specified file will be used as the main boot file at the next reboot on slot 
    1! 
      The specified file will be used as the main boot file at the next reboot on slot 
    2! 
      
    						
    							 80 
     IMPORTANT: 
    The system software image file used for the next star
    tup and the startup configuration file must be saved in
    the Flash root directory. You can copy or  move a file to the Flash root directory. 
     
    # Reboot the IRF fabric and the system software image file is updated at the system reboot. 
     reboot 
    Displaying and maintaining FTP 
     
    Task Command Remarks 
    Display the source IP address configuration 
    of the FTP client.  display ftp client configuration [ 
    | 
    {  begin |  exclude  | include  } 
    regular-expression  ]  Available in any view 
    Display the FTP server configuration. 
    display ftp-server [ 
    | { begin | exclude  | 
    include  } regular-expression  ] Available in any view 
    Display online FTP 
    user information.  display ftp-user 
    [ | { begin  | exclude  | 
    include  } regular-expression  ] Available in any view 
      
    						
    							 81 
    Configuring TFTP 
    Trivial File Transfer Protocol (TFTP) is a simplified version of FTP for file transfer over secure reliable 
    networks. TFTP uses UDP port 69 for data transmission. In contrast to TCP-based FTP, TFTP requires no 
    authentication or complex message exchanges, and is easier to deploy. 
    TFTP supports the following transfer modes: 
    •   Binary mode —Used to transfer image files, such as  .app and .bin .btm  files. 
    •   ASCII mode —Used to transfer text files, such as  .txt, .bat , and  .cfg files. 
    The device can operate only as a TFTP client (see  Figure 40) to upload or download files. 
    Figure 40  TFTP applicati
    
    on scenario 
     
     
    Prerequisites 
    Run a TFTP server program on the file host and set a TFTP working directory. 
    Configure IP addresses and routes to make sure that the device and the TFTP server can reach each other.   
    Using the device as a TFTP client 
    The device provides the following modes for downloading a new file from a TFTP server:  
    •  Normal download —The new file is written directly to Flas h and overwrites the old file that has the 
    same name as it. If file download is interrupted, both old and new files are lost.  
    •   Secure download—The new file is downloaded to memory an d will not be written to Flash until the 
    whole file is obtained. A download failure does not af fect the old file that has the same name as the 
    old file.  
    To avoid undesired file loss, use the secure download mode. If you use the normal download mode 
    because of insufficient memory, assign the new file a file name unique in Flash.  
    You can use the  tftp client source command to specify a source IP address or source interface for the 
    TFTP packets sent by the device. If a source interfac e (typically, a loopback interface) is specified, its 
    primary IP address is used as the source IP address for the TFTP packets. The source interface setting and 
    the source IP address setting overwrite each other.  
    The  tftp client source  command setting applies to all TFTP sessio ns. When you set up a TFTP session with 
    the  tftp command, you can also specify a different  source IP address for the TFTP session.  
     
     IMPORTANT: 
    To avoid TFTP connection failures, when you specify a source interface for TFTP packets, make sure the 
    interface has a primary IP address.  
      
    						
    							 82 
    To configure the TFTP client:  
    Step Command Remarks 
    1.  Enter system view. 
    system-view  N/A 
    2.  Use an ACL to control the 
    clients access to TFTP servers.  tftp-server 
    [ ipv6 ] acl  acl-number  Optional. 
    By default, no ACL is used for 
    access control. 
    3.
      Specify a source IP address 
    for outgoing TFTP packets.  tftp client source
     { interface 
    interface-type interface-number  | ip 
    source-ip-address }   Optional. 
    By default, the primary IP 
    address of the output interface is 
    used as the source IP address.  
    4.
      Set the DSCP value for IP to 
    use for outgoing TFTP packets. 
    • For IPv4: 
    tftp client dscp  dscp-value 
    • For IPv6: 
    tftp client ipv6 dscp  dscp-value Optional 
    The default is 0, whether the 
    TFTP client is running IPv4 or 
    IPv6. 
    5.
      Return to user view. 
    quit  N/A 
    6.  Download or upload a file. 
    • For IPv4:  
    tftp  server-address  {  get  | put  | 
    sget  } source-filename 
    [ destination-filename  ] 
    [ vpn-instance  
    vpn-instance-name  ] [ source 
    {  interface  interface-type 
    interface-number |  ip 
    source-ip-address  } ] 
    • For IPv6:  
    tftp ipv6 tftp-ipv6-server  [ -i 
    interface-type interface-number  ] 
    {  get  | put } source-filename  
    [ destination-filename  ] 
    [ vpn-instance  
    vpn-instance-name  ]  Optional. 
    Only HP 5500-EI switches 
    support the 
    vpn-instance  
    vpn-instance-name  option. 
     
    Displaying and maintaining the TFTP client 
     
    Task Command Remarks 
    Display the source IP address configuration 
    of the TFTP client.  display tftp client configuration
     [ | 
    {  begin |  exclude  | include  } 
    regular-expression  ]  Available in any view 
     
    TFTP client configuration example 
    Network requirements 
    Configure the PC in 
    Figure 41 as a TFTP server, and use TFTP to download the system software image file 
    newest.bin  from the TFTP server to the client and upload the configuration file config.cfg  from the TFTP 
    client to the server for backup.  
    						
    							 83 
    Figure 41 Network diagram 
     
     
    Configuration procedure 
    This configuration procedure assumes that the PC and the IRF fabric can reach each other. 
    1. Configure the PC (TFTP server): 
    {  Enable the TFTP server. (Details not shown.) 
    { Configure a TFTP working directory. (Details not shown.) 
    2. Configure the IRF fabric (TFTP client): 
    # Examine the storage medium of the device for insufficiency or impairment. If no sufficient free 
    space is available, use the  delete/unreserved file -url  command to delete unused files. (Details not 
    shown.) 
    # Download system software image file  newest.bin from the PC to the master and subordinate 
    devices. 
    {  Download system software image file  newest.bin from the PC to the root director y of the Flash 
    on the master. 
     tftp 1.2.1.1 get newest.bin 
    {  Download system software image file  newest.bin from the PC to the root director y of the Flash 
    on a subordinate device (with the member ID 2). 
     tftp 1.2.1.1 get newest.bin slot2#flash:/newest.bin 
    # Upload a configuration file  config.cfg to the TFTP server. 
     tftp 1.2.1.1 put config.cfg configback.cfg 
    # Specify newest.bin  as the main system software image file for the next startup for all member 
    devices. 
     boot-loader file newest.bin slot all main 
      This command will set the boot file of the specified board. Continue? \
    [Y/N]:y 
      The specified file will be used as the main boot file at the next reboot on slot 
    1! 
      The specified file will be used as the main boot file at the next reboot on slot 
    2! 
     
      IMPORTANT: 
    The system software image file used for the next startu
    p must be saved in the Flash root directory. You can
    copy or move a file to the Flash root directory. 
     
    # Reboot the IRF fabric and the software is upgraded. 
     reboot  
    						
    							 84 
    Managing the file system 
    This chapter describes how to manage the devices file system, including the storage media, directories 
    and files. 
    Managing files 
     
      CAUTION: 
    To avoid file system corruption, do not plug or
     unplug storage media or perform active/standby 
    switchover while the system is  processing a file operation. 
     
    You can display directory or file information; displa y file contents; rename, copy, move, remove, restore, 
    and delete files. 
    The copy operation enables you to create a file. You  can also create a file by performing the download 
    operation or using the  save command. 
    When you specify a file, enter the file name in one of the formats shown in,  Tabl e  18 . 
     
    Table 18 File name formats  
    Format Descri
    ption Length Example 
    file-name   Specifies a file in the current 
    working directory.  1 to 91 
    characters a.cfg indicates a file named 
    a.cfg 
    in the current working directory. 
    This working directory might be on 
    the master device or a subordinate 
    device. 
    path /file-name  Specifies a file in a specific folder 
    in the current working directory.  
    The 
    path  argument represents the 
    path to the file. If the file is in a 
    single-level folder, specify the 
    folder name for the argument. If the 
    file is in a nested folder, separate 
    each folder name by a forward 
    slash (/).  1 to 135 
    characters 
    test/a.cfg indicates a file named 
    a.cfg
     in the  test folder in the current 
    working directory.  
    						
    							 85 
    Format Description Length Example 
    drive:/[path]/file-
    name   Specifies a file in a specific storage 
    medium on the device.  
    The 
    drive argument represents the 
    storage medium name.  
    The storage medium on the master 
    is typically flash.  
    The storage medium on a 
    subordinate device is typically 
    slotX#flash, where X represents the 
    member ID of the subordinate 
    device, for example, slot2#flash. 
     
    To view the correspondence 
    between a device and its member 
    ID, use the  display irf command.  1 to 135 
    characters 
    flash:/test/a.cfg indicates a file 
    named 
    a.cfg in the test  folder in the 
    root directory of the Flash memory 
    on the master. 
    To access the file a.cfg  in the root 
    directory of the Flash on the 
    subordinate device with member 
    ID 2, enter  slot2#flash:/a.cfg  for 
    the file name. 
     
    Displaying file information 
    Perform this task in user view.   
    Task Command 
    Display file or directory information.  dir [ /all  ] [ file -url | / all-filesystems  ] 
     
    Displaying file contents 
    Perform this task in user view.   
    Task Command Remarks 
    Display the contents of a file.  more file-url   Only text files can be displayed. 
     
    Renaming a file 
    Perform this task in user view.   
    Task Command 
    Rename a file.  rename fileurl-source fileurl-dest  
     
    Copying a file 
    Perform this task in user view.   
    Task Command 
    Copy a file.  copy fileurl-source fileurl-dest  
      
    						
    							 86 
    Moving a file 
    Perform this task in user view.   
    Task Command 
    Move a file. move fileurl-source fileurl-dest  
     
    Deleting/restoring a file 
    You can delete a file permanently or just move it to the recycle bin. A file moved to the recycle bin can 
    be restored, but a file pe rmanently deleted cannot. 
    A file in the recycle bin occupies storage space. To release the occupied space, execute the  reset 
    recycle-bin  command in the directory that holds the file. To save storage space, periodically empty the 
    recycle bin with the  reset recycle-bin command. 
    Perform the following tasks in user view: 
     
    Task Command 
    Delete a file by moving it to the recycle bin.  delete file-url 
    Restore a file from the recycle bin.  undelete file-url  
    Delete a file permanently.  delete /unreserved file-url  
     
    Emptying the recycle bin  
    Step Command Remarks 
    1.  Enter the original working 
    directory of the file to be 
    deleted in user view.  cd
     { directory  | .. |  / }  Skip this step if the original 
    directory of the file to be deleted is 
    the current working directory. 
    2.
      Empty the recycle bin.  reset recycle-bin [ /force ]  N/A 
     
    Managing directories 
    You can create or remove a directory, display or  change the current working directory, and display a 
    specific directory. 
    Displaying directory information 
    Perform this task in user view.   
    Task Command 
    Display directory or  file information.  dir [ /all  ] [ file -url | / all-filesystems  ] 
      
    						
    							 87 
    Displaying the current working directory 
    Perform this task in user view.   
    Task Command 
    Display the current working directory. pwd 
     
    Changing the current working directory 
    Perform this task in user view.   
    Task Command 
    Change the current working directory. cd { directory  | .. |  / }  
     
    Creating a directory 
    Perform this task in user view.   
    Task Command 
    Create a directory.  mkdir directory  
     
    Removing a directory 
    Before you remove a directory, you must delete all files and subdirectories in this directory. To delete a file, 
    use the delete command; to delete a subdirectory, use the  rmdir command. 
    The  rmdir  command automatically deletes the files in the recycle bin in the current directory. 
    Perform this task in user view.  
     
    Task Command 
    Remove a directory.  rmdir directory  
     
    Managing storage media 
    Storage media management includes space assign ment. A storage medium is named based on the 
    following rules: 
    If a storage medium is the only storage medium of its type on the device, it is named by its type. For 
    example, if the device has only one Flash, the name of the Flash is  flash. 
    Managing storage medium space 
    When the space of a storage medium becomes inaccessible, you can use the  fixdisk command to 
    examine the medium for damage and repair any damage.  
    The  format  command formats the storage medium, and all data on the storage medium is deleted. 
      
    						
    							 88 
     CAUTION:  
    After a storage medium is formatted, all files on it
     are erased and cannot be restored. If a startup 
    configuration file exists on the stor age medium, formatting the storage me dium results in loss of the startup
    configuration file. 
     
    To manage the space of a storage medium,  perform the following tasks in user view:  
    Task Command Remarks 
    Repair a storage medium. fixdisk device  N/A 
    Format a storage medium.  format device   N/A  
     
    Performing batch operations 
    A batch file comprises a set of executable commands. Executing a batch file is the same as executing the 
    commands one by one. However, execution of a batch  file does not guarantee successful execution of 
    every command in the batch file. If a command has er ror settings or the conditions for executing the 
    command are not satisfied, the system skips this command. 
    You can edit a batch file on your PC, and then upload  or download it to the device. If the extension of 
    the file is not  .bat, use the rename  command to change it to  .bat. 
    To execute a batch file: 
     
    Step Command 
    1.   Enter system view. 
    system-view 
    2.  Execute a batch file. 
    execute filename  
     
    Setting the file system operation mode 
    The file systems support the following operation modes: 
    •  alert —The system warns you about operations that might cause problems such as file corruption 
    and data loss. To prevent incorrect operations, use the  alert mode. 
    •   quiet —The system does not prompt for any operation confirmation. 
    To set the file system operation mode: 
     
    Step Command Remarks 
    1.   Enter system view. 
    system-view  N/A 
    2.  Set the file system operation 
    mode.  file prompt
     { alert | quiet  }  Optional. 
    The default is 
    alert. 
     
    File system management examples 
    # Display the files and the subdirectories in the current directory. 
     dir  
    						
    All HP manuals Comments (0)

    Related Manuals for HP 5500 Ei 5500 Si Switch Series Configuration Guide