Veritas NetBackup™ Appliance 命令参考指南

Last Published:
Product(s): Appliances (5.3)
Platform: NetBackup Appliance OS
  1. 概述
    1.  
      关于 NetBackup Appliance 命令行操作界面
    2. 登录到 NetBackup Appliance 命令行操作界面
      1.  
        未配置设备上的命令限制
    3.  
      使用 NetBackup Appliance 命令行操作界面
    4. 关于 NetBackup Appliance 命令行操作界面命令视图
      1.  
        关于 Appliance 视图下的命令
      2.  
        关于 Manage 视图下的命令
      3.  
        关于 Monitor 视图下的命令
      4.  
        关于 Network 视图下的命令
      5.  
        关于 Reports 视图下的命令
      6.  
        关于 Settings 视图下的命令
      7.  
        关于 Support 视图下的命令
  2. 附录 A. Main > Appliance 命令
    1.  
      Appliance > Primary
    2.  
      Appliance > Media
    3.  
      Appliance > Management
    4.  
      Appliance > Remove
    5.  
      Appliance > ShowDedupPassword
    6.  
      Appliance > ShowIdentity
    7.  
      Appliance > Status
  3. 附录 B. Main > Manage > FibreChannel 命令
    1.  
      Manage > FibreChannel > Clean
    2.  
      Manage > FibreChannel > Configure
    3.  
      Manage > FibreChannel > Reset
    4.  
      Manage > FibreChannel > Scan
    5.  
      Manage > FibreChannel > Show
    6.  
      Manage > FibreChannel > Statistics
  4. 附录 C. Main > Manage > HighAvailability 命令
    1.  
      Manage > HighAvailability > AddNode
    2.  
      Manage > HighAvailability > AutoFix
    3.  
      Manage > HighAvailability > GetAssetTag
    4.  
      Manage > HighAvailability > RemoveNode
    5.  
      Manage > HighAvailability > Setup
    6.  
      Manage > HighAvailability > Status
    7.  
      Manage > HighAvailability > Switchover
  5. 附录 D. Main > Manage > Libraries 命令
    1.  
      Manage > Libraries > Configure
    2.  
      Manage > Libraries > Deny
    3.  
      Manage > Libraries > Down
    4.  
      Manage > Libraries > Inventory
    5.  
      Manage > Libraries > List
    6.  
      Manage > Libraries > Requests
    7.  
      Manage > Libraries > Reset
    8.  
      Manage > Libraries > Resubmit
    9.  
      Manage > Libraries > Up
  6. 附录 E. Main > Manage > Libraries > Advanced > ACS 命令
    1.  
      Manage > Libraries > Advanced > ACS > ACS_CSI_HOSTPORT
    2.  
      Manage > Libraries > Advanced > ACS > ACS_SEL_SOCKET
    3.  
      Manage > Libraries > Advanced > ACS > ACS_SSI_HOSTNAME
    4.  
      Manage > Libraries > Advanced > ACS > ACS_SSI_INET_PORT
    5.  
      Manage > Libraries > Advanced > ACS > ACS_SSI_SOCKET
    6.  
      Manage > Libraries > Advanced > ACS > ACS_TCP_RPCSERVICE
    7.  
      Manage > Libraries > Advanced > ACS > ACS_UDP_RPCSERVICE
    8.  
      Manage > Libraries > Advanced > ACS > API_BARCODE_RULES
    9.  
      Manage > Libraries > Advanced > ACS > TestACS
    10.  
      Manage > Libraries > Advanced > ACS > ViewVMconf
  7. 附录 F. Main > Manage > License 命令
    1.  
      Manage > License
  8. 附录 G. Main > Manage > MountPoints 命令
    1.  
      Manage > MountPoints > List
    2.  
      Manage > MountPoints > Mount
    3.  
      Manage > MountPoints > Unmount
  9. 附录 H. Main > Manage > NetBackup CLI 命令
    1.  
      Manage > NetBackupCLI > AllowSelfService
    2.  
      Manage > NetBackupCLI > Create
    3.  
      Manage > NetBackupCLI > Delete
    4.  
      Manage > NetBackupCLI > List
  10. 附录 I. Main > Manage > OpenStorage 命令
    1.  
      Manage > OpenStorage > Install
    2.  
      Manage > OpenStorage > List
    3.  
      Manage > OpenStorage > Readme
    4.  
      Manage > OpenStorage > Share
    5.  
      Manage > OpenStorage > Uninstall
  11. 附录 J. Main > Manage > Software 命令
    1.  
      Manage > Software > Cancel
    2.  
      Manage > Software > Delete
    3.  
      Manage > Software > Download
    4.  
      Manage > Software > DownloadAnalyzer
    5.  
      Manage > Software > DownloadProgress
    6.  
      Manage > Software > Firmware
    7.  
      Manage > Software > Install
    8.  
      Manage > Software > List
    9.  
      Manage > Software > Readme
    10.  
      Manage > Software > Rollback
    11.  
      Manage > Software > Share
    12.  
      Manage > Software > UpgradeReadinessCheck
    13.  
      Manage > Software > UpgradeStatus
    14.  
      Manage > Software > VxUpdate
  12. 附录 K. Main > Manage > Storage 命令
    1.  
      Manage > Storage > Add
    2.  
      Manage > Storage > Create
    3.  
      Manage > Storage > Delete
    4.  
      Manage > Storage > Edit
    5.  
      Manage > Storage > Monitor
    6.  
      Manage > Storage > Move
    7.  
      Manage > Storage > Remove
    8.  
      Manage > Storage > Resize
    9.  
      Manage > Storage > Scan
    10.  
      Manage > Storage > Show
  13. 附录 L. Main > Manage > Tapes 命令
    1.  
      Manage > Tapes > Cleaning
    2.  
      Manage > Tapes > Delete
    3.  
      Manage > Tapes > Eject
    4.  
      Manage > Tapes > Freeze
    5.  
      Manage > Tapes > Inventory
    6.  
      Manage > Tapes > List
    7.  
      Manage > Tapes > ListNetBackupMedia
    8.  
      Manage > Tapes > Suspend
    9.  
      Manage > Tapes > Unfreeze
    10.  
      Manage > Tapes > Unsuspend
  14. 附录 M. Main > Monitor 命令
    1.  
      Monitor > Beacon
    2.  
      监视 > 硬件
    3.  
      Monitor > MemoryStatus
    4.  
      Monitor > NetBackup
    5.  
      Monitor > NetworkStatus
    6.  
      Monitor > SDCS
    7.  
      Monitor > Top
    8.  
      Monitor > Uptime
    9.  
      Monitor > Who
  15. 附录 N. Main > Network 命令
    1.  
      Network > Configure
    2.  
      Network > Date
    3.  
      Network > DNS
    4.  
      Network > Gateway
    5.  
      Network > Hostname
    6.  
      Network > Hosts
    7.  
      Network > IPv4
    8.  
      Network > IPv6
    9.  
      Network > LinkAggregation
    10.  
      Network > NetStat
    11.  
      Network > NTPServer
    12.  
      Network > Ping
    13.  
      Network > SetProperty
    14.  
      Network > Show
    15.  
      Network > TimeZone
    16.  
      Network > TraceRoute
    17.  
      Network > Unconfigure
    18.  
      Network > VLAN
    19.  
      Network > WANOptimization
  16. 附录 O. Main > Network > Security 命令 (DeviceCert)
    1.  
      Network > Security > Export
    2.  
      Network > Security > Import
  17. 附录 P. Main > Reports 命令
    1.  
      Reports > Deduplication
    2.  
      Reports > Process
  18. 附录 Q. Main > Settings 命令
    1.  
      Settings > Deduplication
    2.  
      Settings > FibreTransport
    3.  
      Settings > iSCSI > Initiator
    4.  
      Settings > iSCSI > Interface
    5.  
      Settings > iSCSI > Target
    6.  
      Settings > LifeCycle
    7.  
      Settings > LogForwarding
    8.  
      Settings > NetBackup
    9.  
      Settings > NetBackup DNAT
    10.  
      Settings > NetBackup NATServers
    11.  
      设置 > 密码
    12.  
      Settings > Share
    13.  
      Settings > SNMP
    14.  
      Settings > Sysctl
    15.  
      Settings > SystemLocale
  19. 附录 R. Main > Settings > Alerts 命令
    1.  
      Settings > Alerts > CallHome
    2.  
      Settings > Alerts > Email
    3.  
      Settings > Alerts > Hardware
    4.  
      Settings > Alerts > SNMP
    5.  
      Settings > Alerts > Transmission
  20. 附录 S. Main > Settings > Notifications 视图命令
    1.  
      Settings > Notifications > LoginBanner
  21. 附录 T. Main > Settings > Security 命令
    1.  
      Settings > Security > Antimalware
    2.  
      Settings > Security > Authorization
    3.  
      Settings > Security > Authentication > AccountStatus
    4.  
      Settings > Security > Authentication > ActiveDirectory
    5.  
      Main > Settings > Security > Authentication > CIFSShare
    6.  
      Settings > Security > Authentication > LDAP
    7.  
      Settings > Security > Authentication > LocalUser
    8.  
      Settings > Security > Authentication > MFA
    9.  
      Settings > Security > Authentication > SingleSignOn
    10.  
      Settings > Security > Authentication > SmartCard > SSH
    11.  
      Settings > Security > Authentication > SmartCard
    12.  
      Main > Settings > Security > Certificate
    13.  
      Main > Settings > Security > Certificate > CertificateSigningRequest
    14.  
      Main > Settings > Security > FIPS
    15.  
      Settings > Security > NetworkAccessControl
    16.  
      Main > Settings > Security > PasswordAge
    17.  
      Main > Settings > Security > Ports
    18.  
      Main > Settings > Security > SecurityLevel
    19.  
      Main > Settings > Security > Sessions
    20.  
      Main > Settings > Security > STIG
  22. 附录 U. Main > Support 命令
    1.  
      Support > Checkpoint
    2.  
      Support > Cleanup > CleanMonInvData
    3.  
      Support > Cleanup > RemoveShelfEntries
    4.  
      Support > Cleanup > ResetDIMMErrors
    5.  
      Support > Collect
    6.  
      Support > DataCollect
    7.  
      Support > Disk
    8.  
      Support > Errors
    9.  
      Support > FactoryReset
    10.  
      Support > FibreTransport
    11.  
      Support > ImportISO
    12.  
      Support > InfraServices
    13.  
      Support > InstantAccess
    14.  
      Support > iostat
    15.  
      Support > IPMI
    16.  
      Support > KillRemoteCall
    17.  
      Support > LogBrowser
    18.  
      Support > Logs
    19.  
      Support > Maintenance
    20.  
      Support > Messages
    21.  
      Support > NBDNA
    22.  
      Support > Nbperfchk
    23.  
      Support > NBSU
    24.  
      Support > Processes
    25.  
      Support > RAID
    26.  
      Support > Reboot
    27.  
      Support > RecoverStorage
    28.  
      Support > Service
    29.  
      Support > ShelfOrdering
    30.  
      Support > SHMCLI
    31.  
      Support > Show
    32.  
      Support > Shutdown
    33.  
      Support > Storage ClearReservations
    34.  
      Support > Storage SanityCheck
    35.  
      Support > Storage Show
    36.  
      Support > System
    37.  
      Support > Test

名称

Main > Support > FactoryReset — 将设备重置为出厂默认设置。

大纲

FactoryReset

FactoryReset ResetAll

描述

使用此命令将设备重置为出厂默认设置。如果已更改出厂设置的默认密码,则此命令会将其重置回默认值。

注意:

从 NetBackup Appliance 5.0 版本开始,如果在保留存储的情况下执行恢复出厂设置,则只能将系统重置为当前版本。如果在不保留存储的情况下执行恢复出厂设置,则可以将设备重置为其他版本。重置完成后,原始网络配置将丢失,因此必须使用 IPMI 登录才能重新配置设备

对于高可用性 (HA) 设置中的设备节点,必须先从 HA 设置中移除节点,并在执行恢复出厂设置之前断开其以太网和光纤通道 (FC) 电缆。

对任意 HA 节点执行恢复出厂设置之前,按显示的顺序执行以下任务:

  • 在无需移除的节点上,运行以下命令以从 HA 设置中移除其他节点:

    Manage > High Availability > Remove Node HostName

    其中 HostName 是要移除的节点的主机名。

  • 移除两个节点之间的以太网电缆。

  • 移除节点和主存储扩展架之间的 FC 电缆。

  • 完成前面所述的任务后,可以运行 FactoryReset 命令。

    注意:

    如果不从 HA 设置中移除节点并在执行恢复出厂设置之前断开以太网和 FC 电缆,则命令失败。将显示一条错误消息,提醒您执行前面所述的任务,然后再次尝试执行恢复出厂设置。

选项

FactoryReset

使用此命令将设备重置为出厂默认设置。

FactoryReset ResetAll

使用此命令可在非交互模式下重置设备出厂安装的映像。

示例

从 Appliance 命令行操作界面开始恢复出厂设置

  1. 打开一个 SSH 会话,并以管理员身份登录到设备。
  2. 输入 Main_Menu > Support > FactoryReset。此命令将显示以下消息,并且在开始恢复出厂设置之前需要您回答以下问题:

    [信息] 禁用中断 (CTRL-C)、退出和暂停信号。

    [信息] IPMI sysadmin 用户及其关联的密码、状态和权限已重置为默认值。

    设备恢复出厂设置

    Appliance factory reset will reset the entire system to the factory 
    installed image. The appliance will have the following components
    reset to the factory restored settings/image:
    1) Appliance Operating System
    2) Appliance Software
    3) NetBackup Software 
    4) Tape device configuration and associated tape images(data) on 
    the primary server
    5) Networking configuration (optionally retain)
    6) Storage configuration and backup data (optionally retain)
    7) Fibre Transport Deduplication target port configuration
    - [Info] Successfully copied /usr/openv/netbackup/bp.conf to /cat/conf.
    - [Info] Running factory reset validation...please wait (approx 2 mins)
    - [Info] Factory reset validation successful.
    RESET NETWORK CONFIGURATION [Optional]
            -- Resets the IP and routing configuration.
            -- Resets the DNS configuration.
     >> Do you want to reset the network configuration? [yes/no] (yes) no
    RESET STORAGE CONFIGURATION and BACKUP DATA [Optional]
            -- Removes all the images on the AdvancedDisk, MSDP, Share partitions and 
    											associated tape images(data).
            -- Resets the storage partitions.
            -- Resets storage expansion units, if any.
    - [Warning] Performing a factory reset interrupts all share activity and removes and resets 
      all share data. Unmount all the shares on clients before continuing with this operation.
    - [Info] Performing a factory reset removes the current Fibre Transport Deduplication 
      target port configuration.
     >> Do you want to delete images and reset backup data? [yes/no] (yes) yes
     >> Resetting the storage configuration will remove all backup data on the storage 
        partitions and any connected expansion units. This is not reversible. 
    
        Are you sure you want to reset storage configuration? [yes/no] (yes) yes
  3. 回答这些问题之后,将显示以下摘要信息:
    FACTORY RESET SUMMARY
    ---------------------
    Reset Appliance OS, software configuration          : [YES]
    Reset Appliance network configuration               : [NO]
    Reset Appliance storage configuration (REMOVE DATA) : [YES]
    Appliance will make the following version changes:
    
    +------------------------------------------------------------------------------+
    | Appliance  | Version before factory reset   | Version after factory reset    |
    |------------+--------------------------------+--------------------------------|
    |n40-h129    | NetBackup 10.0 Appliance 5.0   | NetBackup 10.0 Appliance 5.0   |
    +------------------------------------------------------------------------------+
  4. 将显示以下警告。如果要开始恢复出厂设置操作,请输入 Yes
    WARNING: An appliance factory reset cannot be reversed! 
    The reset process takes about 90 minutes. The appliance 
    will be restarted to start the reset process. 
    Do you want to continue? (yes/no) yes

    继续恢复出厂设置时会显示以下摘要消息:

    Performing factory reset. This operation could take 15-20 mins.
    Please wait...
    - [Info] Skipping NetBackup configuration reset for primary server 'n40-h129'.
    - [Info] PERFORMING APPLIANCE RESET TO FACTORY STATE
    - [Info] Delete checkpoints (type: NON_FACT) succeeded
    - [Info] Successfully copied /usr/openv/netbackup/bp.conf to /cat/conf.
    - [Info] Reset of the appliance to FACTORY STATE successful.
    - [Info] Stopping NetBackup processes... (6 mins approx)
    - [Info] Moving NetBackup Appliance Directory to n40-h129...
    - [Info] Acquired lock on the storage.
    - [Info] Resetting the storage configuration...
    - [Info] Checking whether the 'MSDP' partition exists...
    - [Info] Initiating deletion of 'MSDP' storage partition...
    - [Info] Removing the mount point for the 'MSDP' partition '0'...
    - [Info] Deleting the 'MSDP' partition '0'...
    - [Info] Checking whether the 'NetBackup Catalog' partition exists...
    - [Info] Initiating deletion of 'NetBackup Catalog' storage partition...
    - [Info] Removing the mount point for the 'NetBackup Catalog' partition '0'...
    - [Info] Deleting the 'NetBackup Catalog' partition '0'...
    - [Info] Checking whether the 'Share' partition exists...
    - [Info] The 'Share' partition does not exist.
    - [Info] Checking whether the 'MSDP Catalog' partition exists...
    - [Info] Initiating deletion of 'MSDP Catalog' storage partition...
    - [Info] Removing the mount point for the 'MSDP Catalog' partition '0'...
    - [Info] Deleting the 'MSDP Catalog' partition '0'...
    - [Info] Checking whether the 'Configuration' partition exists...
    - [Info] Initiating deletion of 'Configuration' storage partition...
    - [Info] Removing the mount point for the 'Configuration' partition '0'...
    - [Info] Deleting the 'Configuration' partition '0'...
    - [Info] Checking whether the 'NetBackup VxUpdate Repository' partition exists...
    - [Info] Initiating deletion of 'NetBackup VxUpdate Repository' storage partition...
    - [Info] Removing the mount point for the 'NetBackup VxUpdate Repository' partition '0'...
    - [Info] Deleting the 'NetBackup VxUpdate Repository' partition '0'...
    - [Info] Checking whether the 'AdvancedDisk' partition exists...
    - [Info] Initiating deletion of 'AdvancedDisk' storage partition...
    - [Info] Removing the mount point for the 'AdvancedDisk' partition '0'...
    - [Info] Deleting the 'AdvancedDisk' partition '0'...
    - [Info] Checking whether the 'NetBackup Cloud Catalyst Cache' partition exists...
    - [Info] The 'NetBackup Cloud Catalyst Cache' partition does not exist.
    - [Info] Optimized Share Reserve does not exist.
    - [Info] Removing the storage configuration...
    - [Info] Starting NetBackup processes... (6 min approx)
    - [Info] Successfully started NetBackup services.
      Rebooting the appliance now...
    - [Info] Rebooting appliance to complete the reset. Please reconnect to the appliance
      shell menu to continue using this appliance.
    
    Broadcast message from root@n40-h129 (pts/1) (Sun Jan 12 17:55:22 2020):
    
    The system is going down for reboot NOW!