                        ============================
                          R E A D M E    N O T E S
                        ============================

                 Broadcom BACS command line interface utility
                                 for Windows
                         
                 Copyright (c) 2000-2011 Broadcom Corporation
                            All rights reserved.
                                June 17, 2011


Table of Contents
=================
    1. Introduction
    2. Requirements
    3. Scope 
    4. Limitation
    5. Installation
    6. Command Usage
    7. HowTo and Examples 
    8. Exit Codes
    9. Third Party Software License


1. Introduction:
================
This utility is a console application. Users could run it from a Windows 
command prompt. The application will use the console and can be run both
in the command line interface (CLI) mode as well as interactive mode.

In the non-interactive (CLI) mode, the utility can take a command 
as an input argument and run the command producing appropriate effect/output 
and return meaningful exit codes.

This module requires the appropriate BMAPI module and device driver in
order to work correctly.
This utility can also be used to manage NetXtreme I and NetXtreme II devices
on both local as well as remote computer systems.


2. Requirements:
================
    
    1. CIM provider is installed properly on the system that is to 
       be managed by this utility.
    2. appropriate device driver for the NIC is installed on the 
       system that is to be managed by this utility.


3. Scope:
=========
Supported Operating Systems
    - Windows 2000
    - Windows XP
    - Windows Vista
    - Windows Server 2003
    - Windows Server 2008
    - Windows 7


4. Limitation:
==============
    1. All WindowsPE systems are not supported.


5. Installation:
================
    1. On the system with NetXtreme I and NetXtreme II of NICs, install
       the appropriate driver package using the driver installer.
       
    2. On the system with NetXtreme I and NetXtreme II of NICs, install
       the CIM provider and its dependent components. 

    3. BACScli and all the required files can be installed automatically 
       by the BACS installer.

         
6. Command Usage:
=================
Usage:
6.1 POSIX-compliant commands:
    BACScli [-t <target type>] [-f <target ID format>] [-i <target ID>]
    [-r <IP address>] [-n <port>] [-a digest | basic] [-u <username>] [-p <password>]
    <command string>
    
    - The -t option is used to select the type of the target, it must be
      followed by the <target type> that can be VBD, NDIS, iSCSI, iSCSI Portal, iSCSI Target, 
      TEAM, VNIC, FCOE, FCoE Target, PhyAdapters, PhyPorts, HOST or system.
    - The -f option is used to select the format of the <target ID> used
      in the -i option.  The <target ID format> can be MAC, BDF, or NAME.
      The MAC and BDF are used to select a device of a <target type>.
      The NAME is used to select either a Team or a Virtual adapter.
    - The -i option is used to select the target identified by the <target ID>.
      The <target ID> can be the Ethernet MAC address (using the NDIS devices MAC address 
      for Ethernet and using the iSCSI devices MAC address for iSCSI Hardware Offload and 
      using the teaming MAC address for VDB), the PCI Bus/Device/Function number, or the 
      name of a Team/Virtual adapter.
    - The -r option is used to specify an IP address of a host to be accessed.
    - The -n option is used to select a port on a host to be accessed.
    - The -a option is used to select either digest or basic authentication mode.
      The default authentication mode is basic. 
    - The -u option is used to specify a user name.
    - The -p option is used to specify password.
    - The <command string> includes the command, its options,
      parameters, and values for the command. <command string> have to be 
      specified within the double quotes, but if the <command string> 
      contains only one command without any option or command argument, 
      the double quotes is optional.
    - If any name or parameter contains special character such as '^', '&'
      and so on, it needs to be specified in double quotes, "^" for example.

    Following is the list of available commands:
    add                    : add team configuration from a file
    adddiscoveryportal     : add a discovery portal to the host
    addhost                : add a remote host for management
    addisnsserver          : add the IP address or DNS name of an iSNS server to the list of iSNS servers
    addtarget              : manually configure a target and optionally persist that target
    bootcfg                : use this command to do MBA/FCoE/iSCSI boot configuration 
    cablediag              : run cable diagnostic tests on the selected PhyPort device
    cfg                    : configure parameter of the selected device
    createnpivport         : create an NPIV port
    diag                   : configure and conduct a diagnostic test
    discoverhost           : search and add remote hosts from a range of IP addresses
    fallback               : fallback to primary adapters from standby
    help                   : list available commands
    info                   : display adapter information of the selected NIC
    list                   : list target items in different views
    listisnsservers        : display the list of iSNS server addresses that are persisted by the iSCSI Initiator service.
    listdiscoveryportals   : display the list of persisted target portals 
    log                    : log all input and output into a file
    login                  : log in to an iscsi target
    logout                 : log out of an iscsi target
    networkdiag            : run network diagnostic test on the selected NDIS device
    q                      : exit the program
    refresh                : scan the system for hardware/configuration changes
    refreshall             : scan all systems for hardware/configuration changes
    refreshdiscoveryportal : perform a SendTargets operation to the target portal 
    refreshisnsserver      : refresh the list of targets discovered from the specified iSNS server
    remove                 : remove a team
    removediscoveryportal  : remove discovery portal from the host
    removeallhosts         : remove all hosts from the host management list
    removehost             : remove a host from the host management list
    removeisnsserver       : remove the IP address or DNS name of the iSNS server from the persisted list of iSNS servers
    removenpivport         : remove an NPIV port
    removepersistenttarget : remove a target from the list of persistent targets
    removetarget           : remove a target from the list of persisted targets
    resetsessionstats      : display session statistics for all or the selected session
    resetstats             : Reset the statistics
    restore                : restore team configuration from a file
    save                   : save team configuration to a file
    select                 : select an adapter or List available adapters
    sessions               : display list of iSCSI sessions on the selected iSCSI adapter.
    sessionstats           : display session statistics for all or the selected session
    showsel                : show the selected target item
    stats                  : display statistic information of the selected NIC
    unassigned             : display adapters that are not yet part of a team
    version                : display the version of this program

 6.1.1 Applicable commands for each item view:

    All:
        addhost 
        discoverhost
        help 
        list 
        log 
        q
        removeallhosts 
        removehost 
        select 
        showsel   
        version   
         
    FCoE:
        cfg
        createnpivport
        info 
        removenpivport
        resetstats
        stats

    FCoETarget:
        info 
  	
    FCPort:
        info 

    Host:
        adddiscoveryportal
        addisnsserver
        addtarget
        cfg
        info
        listdiscoveryportals
        listisnsservers
        login
        logout
        refresh
        refreshall
        refreshdiscoveryportal
        refreshisnsserver
        removediscoveryportal
        removeisnsserver
        removepersistenttarget
        removetarget

    iSCSI:
        cfg
        info 
        login
        logout
        pingtest
        resetsessionstats
        resetstats
        sessions
        sessionstats
        stats

    iSCSIPortal:
        info 
        resetsessionstats
        sessionstats

    iSCSITarget:
        info 
        login
        logout
        removepersistenttarget
        resetsessionstats
        sessionstats

    LUN:
        info 

    NDIS:
        cfg
        info 
        networkdiag
        resetstats
        stats

    PhyAdapter:
        cfg
        info 

    PhyPort:
        bootcfg
        cablediag
        cfg
        diag
        info 
        resetstats
        stats

    Teamview:
        add
        fallback
        info
        remove
        resetstats
        restore
        save
        stats
        unassigned

    VBD:
        cfg
        info 
        resetstats
        stats

    VNIC:
        info
        networkdiag
        resetstats
        stats
         
 
 6.1.2 Command Syntax:

    add [-h <host>] <file>
        - The 'add <file>' command will add team configuration from the
          specified <file>. Existing team configuration will be preserved and
          a new team(s) will be added to the system from the configuration file.
        - This command is only available if the active selection is a team
          and/or in the teamview view.
	    - '-h' option is needed if there is no team selected and application
          need to know which host the teams will be added to.
          
        Example:
        1) add "c:\test.txt"

    adddiscoveryportal  {-m <iSCSI HBA MAC Address>} {-i <TargetPortalAddress>} 
                        [-n <TargetPortalSocket>]
                        [-u <CHAP name>] [-p <CHAP secret>] [-mu]    
        - will add a static target portal to the list of target portals 
	  to which the iSCSI initiator service transmits SendTarget requests.
        - if a value was not specified for the -n option, the default 3260
          port number will be used.
        - If CHAP name and CHAP secret are both not empty, then CHAP
          authentication will be used for login.
        - '-mu' specifies Mutual CHAP Authentication type is used.
        - adddiscoveryportal command is available in the context of a host.

    addhost < [ < localhost | <local host name> | <local host IP> ] |
              [ -u <username> -p <password> <host name | IP address> ] >
              [-a <digest | basic>]  [-n <port>] [-protocol <wmi | cimxml | wsman | all>]
              [-scheme <http | https>] [-persist]
        -u <username> is used to specify a user name.
        -p <password> is used to specify password.
        [-a <digest | basic>] is used to select either digest or basic authentication mode.
           The default authentication mode is basic.
        [-n <port>] option is used to specify a port. 
        [-protocol <wmi | cimxml | wsman |all>] option is used to specify connection protocol.
            'wmi' is for Windows host, 'cimxml' is for Linux host,  wsman can be used for both
            window and linux host and 'all' is to try all protocol for unknown host types.
        'host name' is the name of a host to be connected.
        'IP address' is the IP address of a host to be connected.
        [-persist] option indicates the host information will be saved to the persistent hosts 
           file when user closes bacscli application with "-q" command. All the hosts in the saved
           file will be automatically connected when BACSCLI starts. Use Ctrl+break to break the 
           operation of connecting to the persistent remote hosts. 

    addisnsserver {-i <iSNS Server Address>}
        - will add the iSNS server as identified by the '-i' option
          input parameter.
        - addisnsserver command is available in the context of a host. 
        
    addtarget {-t <TargetName>} {-i <TargetPortalAddress>} {-n <TargetPortalSocket>}
        - adds the specified target to the list of static targets. 
        - addtarget command is available in the context of a host . 
            
    bootcfg [-t {iscsi | fcoe | mba}] 
            [-o show [General | Initiator | Target | MPIO]]
            [-o {save <filename.xml> | restore <filename.xml>}]
        
        - this command will only be available in the context of a physical port
        - this command displays the current iSCSI/FCoE/MBA boot configuration or one of 
          its sub-category boot configuration, 
          or saves the current iSCSI/FCoE/MBA boot configuration to a file,
          or restores the iSCSI/FCoE/MBA boot configuration from a file.
        - the format of the file is xml.

    cablediag
        - The 'cablediag' command will run cable diagnostic tests on the
          selected device.
        - This command is available on a Broadcom based NetXtremeI physical port device
          and/or NetXtremeII physical port device.
        - Ctrl+break to stop the test.

    cfg Advanced [[default]|[parameter]|[parameter=value]]
        - The 'cfg Advanced' command is to get/set advanced parameters 
          of the device.
        - The 'cfg Advanced default' command is to set all advanced parameters
          to their default values.
        - Both parameter and value are case insensitive and have to be 
          specified within the double quotes. If it doesn't has any space 
          or special characters inside, double quotes is optional. If 
          value has special character such as '&', a double quote can be 
          used around '&'.
        - No space is allowed around the '=' in the 'parameter=value'.
        - The 'cfg Advanced' command will display all advanced parameters
          and their current settings.
        - The 'cfg Advanced parameter' will display the current setting
          and all valid settings of the specified parameter.
        - The 'cfg Advanced parameter=value' will set the specified value
          to the specified parameter.
        - The parameter specified has to be one of those parameters that are
          displayed by the 'cfg Advanced' command.
        - The value specified has to be one of the valid settings of the
          parameters that are displayed by the 'cfg advanced parameter'.
        - This command is available if the actively selected device is a 
          NDIS device.
          
        Example:
        1) cfg Advanced "Flow Control"="Auto"
        2) cfg Advanced
        3) cfg Advanced "Flow Control"

    cfg Power [value]
        - The 'cfg Power' command is to get/set Power Management of the device.
        - The 'value' is case insensitive and has to be specified within the
          double quotes. If it doesn't have any space or special characters, 
          double quotes is optional.
        - The 'cfg Power' command will display the current setting of the Power
          Management.
        - The 'cfg Power value' will set the Power Management setting to the
          specified value.  The <value> can be either 'Enable' or 'Disable'.
        - This command is only available if the actively selected device is a 
          NDIS device and is Power Management capable.

    cfg Licenses
        - The 'cfg Licenses' command will display all Licenses parameters and
          their current settings.
        - This command is only available if the actively selected device is a 
          VBD device and belongs to NetxtremeII family of devices.

    cfg Resource [[key]|[key=value]]
        - The 'cfg Resource' command is to get/set Resource keys of the device.
        - Both key and value are case insensitive and have to be specified 
          within the double quotes. If it doesn't have any space or special 
          characters inside, double quotes is optional.
        - No space is allowed around the '=' in the 'key=value'.
        - The 'cfg Resource' command will display all Resource Reservation
          keys and their current settings.
        - This command is only available if the actively selected device is a 
          VBD device and belongs to NetxtremeII family of devices.

        The 'cfg Resource' use <key> and <value> to configure the Resource
        Reservation parameters.  The use of <key> and its valid <value> are
        listed as following:

        - The <key> 'CONFIGURABLE' is used to display all the configurable
          Resource Reservation parameters with their current setting and
          valid settings.  It does not require any <rsc_value>.
    
        - The <key> 'CONFIG' is to set the "Offload Configuration" to either
          "First Come First Served" or "Reserved Resources".
          It does require the <value> that can be either FCFS or RSVD.
    
        - The <key> 'NDIS' is to set the "Pre-Allocated Resources for NDIS"
          to either 'Enable' or 'Disable'.  It does require the <value>
          that can be either 'Enable' or 'Disable'.
    
        - The <key> 'TOE' is to set the "Pre-Allocated Resources for TOE" to
          either 'Enable' or 'Disable'.  It does require the <value> that can
          be either 'Enable' or 'Disable'.
    
        - The <key> 'iSCSI' is to set the "Pre-Allocated Resources for iSCSI"
          to either 'Enable' or 'Disable'.  It does require the <value> that
          can be either 'Enable' or 'Disable'.
    
        - The <key> 'FCOE' is to set the "Pre-Allocated Resources for FCOE"
          to either 'Enable' or 'Disable'.  It does require the <value> that
          can be either 'Enable' or 'Disable'.

        - The <key> 'TOECONN' is to set the "TOE Connections" to the number
          allowed in the range displayed in "cfg Resource CONFIGURABLE" 
          command. It does require the <value> that has to be a number.
    
        - The <key> 'iSCSICONN' is to set the "iSCSI Connections" to the number
          allowed in the range displayed in "cfg Resource CONFIGURABLE" 
          command. It does require the <value> that has to be a number.
    
        - The <key> 'iSCSIPT' is to set the "iSCSI Pending Task per Connection"
          to the valid numbers specified in "cfg Resource CONFIGURABLE" 
          command. It does require the <value> that has to be a number.
    
        - The <key> 'TOEPROTOCOL' is to set the "TOE Protocol Type" to the
          valid settings specified in 'cfg Resource CONFIGURABLE' command.
          It does require the <value> that has to be either 'Ipv4' or 'IPv6'.
    
        - The <key> 'iSCSIPROTOCOL' is to set the "iSCSI Protocol Type" to the
          valid settings specified in 'cfg Resource CONFIGURABLE' command.
          It does require the <value> that has to be either 'Ipv4' or 'Ipv6'.
          
        - The <key> 'MEMCONSUMPTION' is to set the "iSCSI Memory Consumption" to the
          valid settings specified in 'cfg Resource CONFIGURABLE' command.
          This command only applies to 57710/57711 adapter.
          It does require the <value> to be a percentage value from 25% - 100% 
          with the increment of 25%.
          
        - The <key> 'TOERSS' is to set the "TOE RSS" to either 'Enable'
          or 'Disable'.  This command only applies to 57710/57711 adapter.
          It does require the <value> that can be either 'Enable' or 'Disable'.

        Examples:
        1) cfg Resource Configurable
        2) cfg Resource TOE=Disable
        3) cfg Resource MEMCONSUMPTION=75

    cfg iSCSIMgmt [[key]|[key=value]]
        - The 'cfg iSCSIMgmt' command is to get/set iSCSIMgmt keys of 
          the device.
        - Both key and value are case insensitive and have to be specified 
          within the double quotes. If it doesn't have any space or special 
          characters inside, double quotes is optional.
        - No space is allowed around the '=' in the 'key=value'.
        - The 'cfg iSCSIMgmt' command will display all iSCSI Management keys
          and their current settings.
        - The 'cfg iSCSIMgmt key' will display the current setting and all
          valid settings of the specified key.
        - The 'cfg iSCSIMgmt key=value' will set the specified value to the
          specified key.
        - This command is only available if the actively selected device is a 
          iSCSI device and belongs to NetxtremeII family of devices.

        The 'cfg iSCSIMgmt' use <key> and <value> to configure the iSCSI
        Management parameters.  The use of <key> and its valid <value> are
        listed as following:

        - The <key> 'IPV4DHCP' is used to enable the DHCP of IPv4.  The <value>
          can only be 'Enable'.  To disable DHCP, use IPV4ADDR to set the
          static IPv4 address and the DHCP will automatically disable.

        - The <key> 'IPV4ADDR' is used to set the static IPv4 address.  The
          <value> is the IPv4 address.  It will automatically disable
          the DHCP of IPv4.

        - The <key> 'IPV4MASK' is used to set the IPv4 Subnet mask.  
          The <value> is the IPv4 Subnet mask.

        - The <key> 'IPV4GATEWAY' is used to set the default IPv4 gateway 
          address. The <value> is the IPv4 gateway address.

        - The <key> 'IPV6DHCP' is used to enable the DHCP of IPv6.  
          The <value> can only be 'Enable'.  To disable DHCP, use IPV6ADDR 
          to set the static IPv6 address and the DHCP will automatically 
          disable.

        - The <key> 'IPV6PRA' is used to set "Process Router Advertisement".
          The <value> can be either 'Enable' or 'Disable'.

        - The <key> 'IPV6ADDR' is used to set the static IPv6 address.
          The <value> is the IPv6 address.  It will automatically disable the
          DHCP of IPv6.

        - The <key> 'IPV6PL' is used to set the IPv6 address subnet prefix 
          length. The <value> is the IPv6 address subnet prefix length.

        - The <key> 'IPV6DG' is used to set the IPv6 default gateway 
          address. The <value> is the IPv6 default gateway address.

        - The <key> 'IPV6DGPL' is used to set the IPv6 default gateway 
          address subnet prefix length.  
          The <value> is the IPv6 default gateway subnet prefix length.
          
        - The <key> 'VLANID' is used to set the Vlan ID for the iSCSI
          The <value> is the range of 0 - 4094.

        - The <key> 'MTU' is used to set the MTU for the iSCSI
          The <value> is in the range of 1500 to 9600.

        Note:  
        * When system is booted up through iSCSI HBA with a IPv4 address,
          the above IPv4 related parameters will be non-configurable, and
          not available in 'cfg iSCSIMgmt' command.

        * When system is booted up through iSCSI HBA with a IPv6 address,
          the above IPv6 related parameters will be non-configurable, and
          not available in 'cfg iSCSIMgmt' command.
          
        Example:
        1) cfg iSCSIMgmt 
        2) cfg iSCSIMgmt VLANID=3
        3) cfg iSCSIMgmt IPV4ADDR=172.16.100.140

    cfg iSCSIBoot [[key]|[key=value]]
        - The 'cfg iSCSIBoot' command is to get/set iSCSIBoot keys of 
          the device.
        - Both key and value are case insensitive and have to be specified 
          within the double quotes. If it doesn't have any space or special 
          characters, double quotes is optional.
        - No space is allowed around the '=' in the 'key=value'.
        - The 'cfg iSCSIBoot' command will display all iSCSIBoot keys
          and their current settings.
        - The 'cfg iSCSIBoot key' will display the current setting
          and all valid settings of the specified key.
        - The 'cfg iSCSIBoot key=value' will set the specified value to
          the specified key.
        - This command is only available if the actively selected device is a 
          NDIS device and the system is on a iSCSI boot using the selected
          NDIS device.

        The 'cfg iSCSIBoot' use <key> and <value> to configure the iSCSI
        Management parameters.  The use of <key> and its valid <value> are
        listed as following:

        - The <key> 'CDUMP' is used to set the "iSCSI Crash Dump".  The <value>
          can be either 'Enable' or 'Disable'.
          
        Example:
        1) cfg iSCSIBoot CDUMP=Enable

    cfg OOBMgmt [-ipv4|ipv6|hostname] [[key]|[key=value]]
        - The 'cfg OOBMgmt' command is to get/set OOBMgmt keys of the 
          selected device.
        - Both key and value are case insensitive and have to be specified 
          within the double quotes. If it doesn't have any space or special 
          characters, double quotes is optional.
        - No space is allowed around the '=' in the 'key=value'.
        - This command is only available if the actively selected device is a 
          NDIS device and is out-of-band management capable.
        - The option '-ipv4|ipv6|hostname' is used to set the value of property
          'Management Console Address'. Among them,
             -ipv4     : verify the input value with IPv4 format
             -ipv6     : verify the input value with IPv6 format
             -hostname : verify the input value with hostname format
             When none of the above options is given, it will be treated as the
             option "-hostname" is given.
          In addition, it will be ignored when one these options is put with other
          parameter together, and no error occurs.

        Example:
        1) cfg OOBMgmt 
        2) cfg OOBMgmt "Heartbeat Retransmit Interval"
        3) cfg OOBMgmt "Heartbeat Retransmit Interval"=200
        4) cfg OOBMgmt "Management Console Address"=10.2.2.1
        5) cfg OOBMgmt -ipv4 "Management Console Address"=10.2.2.1

    cfg Systoe [value]
        - The 'cfg Systoe' command is to enable or disable TCP offload in
          chimney for the system. For Win7 kernel and later, user can also 
          set TCP offload to automatic.
        - The 'cfg Systoe' command will display the current TCP Offload
          Chimney State.
        - The 'cfg Systoe value' will enable or disable TCP offload in
          chimney for the system. For Win7 quotes are optional, command can 
          also set TCP offload to automatic. This command is only available 
          to the system target.
          
    cfg iSCSIInitiator [value]
        - The 'cfg iSCSIInitiator' command is to display the name of iSCSI
          Initiator of the system. 
        - The 'cfg iSCSIInitiator name' command is to set the name of iSCSI
          Initiator of the system. 

    cfg iSCSISecret <value>
        - The 'cfg iSCSISecret" command is to set the CHAP secret of iSCSI
          Initiator of the system. 

    cfg dcbx [ [-c <filename>] | [-s <filename>] ]
        - The 'cfg dcbx' command is to configure DCBX settings on the selected
          physical port device.
        - cfg dcbx will display the current configuration.
        - cfg dcbx -s filename will save the current configuration into a
          XML file.
        - cfg dcbx -c filename will configure the dcbx settings from the
          specified XML file. 
        - This command is only available if the actively selected device is a 
          physical port and dcbx configuration is allowed (like in 10G devices).
          
    cfg Advanced [[key]|[key=value]] under FCoE device level
        - The 'cfg Advanced' command is used to configure FCoE settings.
        - Both key and value are case insensitive and have to be specified 
          within the double quotes. If it doesn't have any space or special 
          characters, double quotes is optional.
        - No space is allowed around the '=' in the 'key=value'.
        - This command is only available if the actively selected device is a 
          FCoE device.

    cfg Multi-Function ["Multi-Function mode" | -s <filename> |
                         -c <filename> | -p port# [-f function#] key]
        - The 'cfg Multi-Function' command is used to configure physical adapter
          nic partition settings.
        - 'cfg Multi-Function' will display the current configuration.
        - 'cfg Multi-Function -s filename' will save the current configuration into 
          a XML file.
        - 'cfg Multi-Function -c filename' will configure the NIC settings 
          from the specified XML file. 
        - use 'cfg Multi-Function -c filename' to disable Multi-Function by setting 
          <MultiFunctionMode> to SingleFunction. Refer to 
          section 8.2.2 & 8.2.3.
        - cfg multi-function -p 0 -f 2 \"FCoE\" will display port0 function2 FCoE 
          configuration. The default function number is the first function of the
          specified port.
        - All keys are case insensitive.
          valid key:
            "Multi-Function mode", -p and -f options not required.
            "FlowControl"
            "Ethernet/Ndis"
            "iSCSI"
            "FCoE"
            "MaxBandwidth"
            "RelativeBandwidth"
            "AFEX VIF Profile"
            "AFEX VIF Profile List", -f option not required
          
    createnpivport {{-s <x:xx>} | {{-p <WWPN>} {-n <WWNN>}}}
        - '-s': save mode, only 3 digits(1-3) allow to change. 
                For example: 2x:xx:00:10:18:aa::bb::cc
                Other digits are from current WWPN/WWNN.
        - this command is available in the context of a FCoE HBA selection
        - creates a NPIV port
        
    diag {[-c REG ] [-c MII ] [-c EEP] [-c MEM] [-c CPU] [-c INT] [-c MACLB ]
          [-c PHYLB] [-c LED] | [-c ALL]} [-l <cnt> ] [ -v <LEDIntv> ]

        - The 'diag' command is to configure the parameters of the Diagnostic
          test and run the test.
        - The 'diag' command will display all the tests available for the 
          current selected target if no option is specified.
        - If '-l' is not specified, the default iteration will be 1.
        - If '-v' is not specified, the default LED interval will be 5.
        - This command is available on a Broadcom based NetXtremeI physical port device
          and/or NetXtremeII physical port device.
        - Ctrl+break to stop the test.
         
        Each individual test is indicated by the option as following:
        - The '-c REG' is to run Control Register test.
        - The '-c MII' is to run MII Register test.
        - The '-c EEP' is to run EEPROM test.
        - The '-c MEM' is to run Internal Memory test.
        - The '-c CPU' is to run OnChip CPU test.
        - The '-c INT' is to run Interrupt test.
        - The '-c MACLB' is to run MAC Loopback test.
        - The '-c PHYLB' is to run PHY Loopback test.
        - The '-c LED' is to run LED test with the LEDIntv value.
        - The '-c ALL' is to run all the above tests.
        
        Example:
        1) diag -c ALL -l 3 -v 5
        2) diag -c CPU -c LED -v 5

    discoverhost -s <start IP address> -e <end IP address>
                 -u <username> -p <password> 
                 [-a <digest | basic>] [-n <port>] [-protocol <wmi | cimxml | wsman | all>]
                 [-scheme <http | https> [-persist]
        -s <start IP address> is used to specify the starting IP address of searching range.
        -e <end IP address> is used to specify the ending IP address of searching range.
        -u <username> is used to specify a user name.
        -p <password> is used to specify password.
        [-a <digest | basic>] is used to select either digest or basic authentication mode.
           The default authentication mode is basic.
        [-n <port>] option is used to specify a port. 
        [-protocol <wmi | cimxml | wsman |all>] option is used to specify connection protocol.
            'wmi' is for Windows host, 'cimxml' is for Linux host,  wsman can be used for both
            window and linux host and 'all' is to try all protocol for unknown host types.
        'host name' is the name of a host to be connected.
        'IP address' is the IP address of a host to be connected.
        [-persist] option indicates the host information will be saved to the persistent hosts 
            file when user closes bacscli application with "q" command. All the hosts in the saved 
            file will be automatically connected when BACSCLI starts.
        Ctrl+break to stop the operation.
 
    fallback    
        - fallback to primary adapters from standby.
        - This command is only applicable for SLF-AFD team type.
        - This command is only available in teamview view listing.
        
    help
        list of available commands
        
    info [ all | vitalsigns | driver | hardware | resource | os | initiator | dcbx | nicpartition ]
        Display adapter information of the selected NIC.
        This version of the 'info' command is available 
        if the actively selected device is a NDIS device.
        - all       : display information of all categories
        - vitalsigns: display 'Vital Signs" information
        - driver    : display 'Driver' information
        - hardware  : display 'Hardware' information
        - resource  : display 'Resource' information
        - os        : display host OS information
        - initiator : display iscsi initiator information
        - dcbx      : display dcbx information
        - nicpartition : display nic partition information
        
        
        Example:
        1) info all
        2) info vitalsigns
        
    info [all | members | livelink | general]
        Display adapter information of the selected team in 
        either the "teamview" view.
        - all       : display all the information of a team.
        - members   : display member devices of a team.
        - livelink  : display livelink information of a team.
        - general   : display general information of a team.

    list [-f MAC|BDF] [-b] [-r] [-h <host>][<view>]
        Lists the target items in different views. 
        
        Note: 
        * If '-f MAC' option is used, devices will be identified using 
          the MAC address.
        * If '-f BDF' option is used, devices will be identified using 
          the bus/device/function numbers, the bus/device/function numbers 
          are in HEX format. 
        * If -f option is not specified, the default behavior is to 
          identify devices using MAC address.
        * '-f MAC' option is not applicable to hosts, phyadapters & phyports 
          devices because a single MAC address does not applicable to them.
        * If '-b' option is useful only in the 'teamview'. If specified,
          the view will only list the team names for selection. 
        * If -b option is not specified, the default behavior is to 
          list teams and the (physical/virtual) members that constitute the team.
        * The '-h' option is useful in most of the commands. If specified,
          the view will only reflect the target list corresponding to 
          the specified host.
        * The '-r' option forces to reconnect, it is only valid when 'hosts' is 
          used. This option is useful when users want to reconnect to a host which 
          is recovered from reboot or linkdown.
        * The 'list' command is available in all views.
        * Ctrl+break to stop the operation.
        
        The available views are defined as following:
        - devcon       : list devices by connection
        - teamview     : list of teams and the devices that participate in a team
        - ndis         : list NDIS devices
        - vbd          : list VBD devices
        - iscsi        : list iSCSI devices
        - fcoe         : list FCoE devices
        - iscsitargets : list iSCSI targets
        - fcoetargets  : list FCoE targets
        - phyadapters  : list physical adapters on the system
        - phyports     : list physical ports on the system
        - hosts        : list the connected hosts
        - luns         : list the LUNs
        - vnic         : list virtual adapters in the system
        - iscsiportal  : list iscsi portal devices
        - fcport       : list FC port devices
        
        Example:
        1) list -f MAC
        2) list

    listisnsservers
        - displays list of iSNS servers.
        - listisnsservers command is available in the context of a host.
        
    listdiscoveryportals {-h <host>}
        - will display the list of persisted target portals that the iSCSI 
          initiator service will use for discovery for the specified host.
        - listdiscoveryportals command is available in the context of a host.

    log [<file>]
        'file' is the log file name to save all the input and output.
        Without 'file', the current log file is closed. This command 
        is available in all views.

    login {-m <iSCSI HBA MAC Address>} {-t <TargetName>} 
          [-h <host>] [-i <TargetPortalAddress> ] [-n <TargetPortalSocket>]
          [-u <CHAP name>] [-p <CHAP secret>] [-b] [-e] [-d] [-o]
        - login command is available in the context of a host, in the
          context of a iSCSI device or in the context of a iSCSI Target. 
        - '-h' is only required when command is using on iSCSI target context,
          because a target might connect to HBA on different host.
        - '-i' is an optional parameter. If '-i' option was specified, it 
          mandatory to specify the '-n' option as well. That is, if the 
          target portal IP address was specified, it is mandatory to
          specify the target port number as well.
        - login operation will be performed using the HBA identified by
          the '-m' parameter and the target (identified by the '-t
          parameter) and the target portal address.
        - If CHAP name and CHAP secret are both not empty, then CHAP
          authentication will be used for login.
        - using '-b' option specify whether the connection should persist
          across reboot sessions.
        - using '-e' option specify use header digest for login.
        - using '-d' option specify use data digest for login.
        - using '-o' option specify enable MPIO.
        - using '-mu' option specify Mutual CHAP Authentication type.
          
    logout {-s <SessionId>} [-h <host>]
        - logout command is available in the context of a host or
          in the context of a iSCSI device or in the context of a iSCSI Target. 
        - '-h' is only required when command is using on iSCSI target context,
          because a target might connect to HBA on different host.
        - logout operation will be performed on the specified session.
          
    networkdiag [-p <ipaddr>]
        - The ''networkdiag' will run network diagnostic test on
          the selected device.
        - The '-p <ipAddr> is the IP address used for the test, if this option 
          is not specified, test will use the IP address found in the Gateway
          IP addresses list.
        - This command is available on all NDIS device selections.
        - Ctrl+break to stop the test.
        
        Example:
        1) networkdiag -p 10.10.10.10

    q
       exit the program
       
    refresh        
        - scans the system for hardware/configuration changes
        - This command is only available in host views.
        
    refreshall        
        - scans all systems for hardware/configuration changes
        - This command is only available in host views.
        - Ctrl+break to stop to the operation.

    refreshdiscoveryportal  {-m <iSCSI HBA MAC Address>} {-i <TargetPortalAddress>} 
                    [-n <TargetPortalSocket>]
        - will perform a SendTargets operation to the target portal and include 
          the discovered targets into the list of targets maintained by the service
        - refreshdiscoveryportal command is available in the context of a host.
        - if a value was not specified for the -n option, the default 3260
          port number will be used.

    refreshisnsserver {-i <iSNS Server Address>}
        - will refresh the list of targets discovered from the specified iSNS server
        - refreshisnsserver command is available in the context of a host. 
        
    remove {-c all | <team name>}
        - The 'remove' command will remove the specified team or all teams.
        - The 'remove -c all' will remove all the teams in the system.
        - The 'remove <team name>' will remove the specified team.
        - The 'remove' will remove the active/selected team.
        - This command is only available if the active selection is a team
          and/or in the teamview view.
          
        Example:
        1) remove -c all
        2) remove "Team1"
        
    removeallhosts
        Example:
        1) removeallhosts
     
    removediscoveryportal  {-m <iSCSI HBA MAC Address>} {-i <TargetPortalAddress>} 
                    [-n <TargetPortalSocket>]
        - will remove a portal from the list of portals that iSCSI initiator service 
          sends SendTargets request to discover targets.
        - removediscoveryportal command is available in the context of a host.
        - if a value was not specified for the -n option, the default 3260
          port number will be used.

    removehost  <host name | IP address>
        'host name' is the name of a host to be disconnected.
        'IP address' is the IP address of a host to be connected.

    removeisnsserver {-i <iSNS Server Address>}
        - will remove the iSNS server as identified by the '-i' option
          input parameter.
        - removeisnsserver command is available in the context of a host. 
    
    removenpivport  {-p <WWPN>}
        - this command is available in the context of a FCoE HBA selection
        - removes a NPIV port
          
    removepersistenttarget  {-t <TargetName>} [-h <host>]
        - removepersistenttarget command is available in the context of a host
          or in the context of a iSCSI Target. 
        - will remove a target from the list of persistent targets.
        - '-t' is only required when command is using on host context, in context
          of a iSCSI Target '-t' option must no exist.
        - '-h' is only required when command is using on iSCSI target context,
          because a target might connect to HBA on different host.
          
    removetarget {-t <TargetName>}
        - will remove the static target as identified by the '-t' option
          input parameter.
        - removetarget command is available in the context of a host. 
    
    resetsessionstats [<sessionid>]
        - reset statistics information of all sessions or 
          for a specified session.
        - If 'sessionid' was specified, the statistics for that session 
          will be reset
        - This command is only available if the active selection is a iSCSI
          device.

    resetstats
        - The 'resetstats' command will reset the statistics of the selected
          device.
        - This command is available in all context where the 'stats' command
          is applicable. 

    restore [-h <host>] <file>
        - The 'restore <file>' will restore team configuration from the 
          specified <file>. Existing team configurations will be lost.
        - This command is only available if the active selection is a team
          and/or in the teamview view.
	    - '-h' option is needed if there is no team selected and application
          need to know which host the teams will be restore to.
          
        Example:
        1) restore "c:\test.txt"

    save {-f MAC|BDF} <file>
        - The 'save' command will save the team configuration to the specified
          <file> in the specified format.
        - The 'save -f MAC <file>' will save the team configuration to the
          specified <file> in MAC format.
        - The 'save -f BDF <file>' will save the team configuration to the
          specified <file> in BDF format, bdf numbers are in HEX format.
        - This command is only available if the active selection is a team
          and/or in the teamview view.
          
        Example
        1) save -f MAC "c:\test.txt"
        2) save -f BDF "c:\test.txt"
   
    select [<index>]
        select a target from current view or display the selected
        target in the current view if <index> is not specified.
        This command is available in all views.

    sessions    
        - displays list of iSCSI sessions on the selected iSCSI adapter.
        - This command is only available if the actively selected device
          is an iSCSI device.
          
    sessionstats [<sessionid>]
        - display statistics information of all sessions or 
          for a specified session.
        - If 'sessionid' was specified, the statistics for that session 
          will be displayed
        - This command is only available if the active selection is a iSCSI
          device.

    showsel
        show the selected target item

    stats [all | general | IEEE | basp ]
        - The 'stats' command will display statistic information of the
          selected device.
        - This command is available on all NDIS device selections.
          
        Example:
        1) stats
        2) stats all
        3) stats basp
          
    stats [all | login | instance | custom]
        - If 'login' argument was specified, the stats command will
          display login statistics of the selected iSCSI adapter.
        - If 'instance' argument was specified, the stats command will
          display instance statistics of the selected iSCSI adapter.
        - If 'custom' argument was specified, the stats command will
          display the custom statistics of the selected iSCSI adapter.
        - If the 'all' option was specified, the stats command will
          display all the statistics information for the selected iSCSI adapter.
        - If the no parameter was specified, the stats command will
          display all the statistics information for the selected iSCSI adapter.
        - This command is available on all iSCSI device selections. 

    unassigned  [-h <host>]
        - display adapters that are not yet part of a team
        - This command is only available in teamview view listing.
        - '-h' option is needed if there is no team selected and application
          need to know which host the unassigned nics belong to.
        
    version                
        display the version of this program
        
          
6.2 Legacy commands: command used by BACScli v1.0.10 or earlier version.
    These commands are deprecated, and only supported to provide the 
    backward compatibility. It is recommended to use the new POSIX-compliant 
    commands listed above.

    BACScli [ -mac MAC | -bdf BDF ] [Command]

    Following is the list of available commands:
    help        : list of available commands
    q           : exit the program
    dev         : select an adapter or List available adapters
    bdf         : display the PCI Bus/Device/Function number of all devices
    log         : log all input and output into a file
    version     : display version of this program
    info        : display adapter information of the selected NIC
    stats       : display statistic information of the selected NIC
    cfg         : configure parameter of the selected device
    diag        : configure and conduct a diagnostic test


7. How-To and Examples:
=====================
    7.1 How to enter into Interactive mode?
    - Enter 'BACScli' without additional parameter will enter into Interactive
      mode of BACScli.

      Example:
      1. 'BACScli' will enter into interactive mode.

    7.2 How to exit from Interactive mode?
    - Enter 'q' command while in the Interactive mode of BACScli.

      Example:
      1. 'q' will exit from Interactive mode.

    7.3 How to list target adapters of different view in the Command Line
        Interface mode?
    - In Command Line Interface mode, use 'BACScli list <view>' command to list
      all the target adapters of the desired <view>.

      Examples:
      1. 'BACScli list NDIS' will list all NDIS adapters in the system.
      2. 'BACScli list devcon' will list all adapters by connection.
      
    7.4 How to obtain context help for each command?
    - In interactive mode, the keyword "help" or "?" is applicable to show
      help for its particular command. 
      
      Examples:
      1. 'cfg Advanced help' will display help text for the advanced configuration
         for the selected device
      2. 'info ?' will display help text for the information of the selected
         adapter
      
    - In the command line interface mode, use the following syntax to obtain the 
      help text for a specific operation
      
      Examples:
      1. 'BACScli -t NDIS -f mac -i 0010181a1b1c "info help"' will display all the
         help text for the information of the selected NDIS adapter.
      2. 'BACScli -t NDIS -f mac -i 0010181a1b1c "cfg Advanced help"' will 
         display help for the Advanced configuration of the selected NDIS adapter 
         and their current settings.

    7.5 How to switch between different view of target adapters in Interactive
        mode?
    - In Interactive mode, use the 'list [-f MAC|BDF] [<view>]' 
      command to switch between different view of target adapters.  
      The default view of the BACScli is 'devtype' in the Interactive mode.  
      All target adapters of the selected view are listed and the 
      selected default adapter is high-lighted.

      Examples:
      1. 'list -f MAC NDIS' will list all NDIS devices that are present 
         in the system with MAC address as identifiers.
      2. 'list -f BDF NDIS' will list all NDIS devices that are present 
         in the system with Bus/Device/Function numbers as identifiers,
         the Bus/Device/Function numbers are in HEX format.
      3. 'list -f MAC devcon' will list all adapters by the connection
         identifying devices using their MAC address.
      4. 'list -f BDF devcon' will list all adapters by the connection
         identifying devices using their Bus/Device/Function address,
         the Bus/Device/Function numbers are in HEX format.
         
   - In the command line interface mode, use the following syntax to 
     list devices in different views:
     'BACScli "list [-f MAC|BDF][<view>]"'
     
     Examples:
      1. BACScli "list -f MAC NDIS" will list all NDIS devices that are present 
         in the system with MAC address as identifiers.
      2. BACScli "list -f BDF NDIS" will list all NDIS devices that are present 
         in the system with Bus/Device/Function numbers as identifiers,
         the Bus/Device/Function numbers are in HEX format.
      3. BACScli "list -f MAC devcon" will list all adapters by the connection
         identifying devices using their MAC address.
      4. BACScli "list -f BDF devcon" will list all adapters by the connection
         identifying devices using their Bus/Device/Function address,
         the Bus/Device/Function numbers are in HEX format.

    7.6 How to select a target for the command to operate on in CLI mode?
    - In Command Line Interface mode, use the -t, -f, and -i option to uniquely
      select the target for the following <command string> to operate on it.

      Examples:
      1. 'BACScli -t NDIS -f mac -i 0010181a1b1c info' will display the adapter
         information of the selected NDIS adapter whose current MAC address
         is 00:10:18:1a:1b:1c.
      2. 'BACScli -t VBD -f mac -i 0010181a1b1d info' will display the adapter
         information of the selected VBD adapter whose current MAC address
         is 00:10:18:1a:1b:1d.
      3. 'BACScli -t iSCSI -f mac -i 0010181a1b1e info' will display the 
         adapter information of the selected iSCSI adapter whose current 
         MAC address is 00:10:18:1a:1b:1e.
      4. 'BACScli -t TEAM -f name -i Team1 "info"' will display the team
         information of the selected ('Team1') team.
      5. 'BACScli -t VNIC -f name -i VLAN1 "info"' will display the virtual
         adapter information which is identified by a VLAN name ('VLAN1').
      
      
    7.7 How to select a target in the Interactive mode?
    - In Interactive mode, use the 'select [<index>]' command to select 
      the target from the target adapters of current view.  
      Use the 'showsel' command to display the selected target adapter.  
      Any command entered at this point will apply to the selected target 
      adapter.

      Examples:
      1. 'list NDIS' and 'select 3' will select the 3rd adapter from the list 
         of all target adapters of NDIS view.
      2. 'list devcon' and 'select 5' will select the 5th adapter from the list 
         of all target adapters of devcon view.

    7.8 How to get information of a selected target?
    - In CLI mode, use 'BACScli -t <target type> -f <format> -i <target ID>
      info [ all | vitalsigns | driver | hardware | resource | members 
      | livelink | general ]' command to get information of the 
      selected target. This command is available for NDIS, VBD and team

      Examples:
      1. 'BACScli -t NDIS -f mac -i 0010181a1b1c "info"' will display all the
         information of the selected NDIS adapter.
      2. 'BACScli -t NDIS -f mac -i 0010181a1b1c "info vitalsigns"' will 
         display the 'Vital Signs' information of the selected NDIS adapter.
      3. 'BACScli -t NDIS -f mac -i 0010181a1b1c "info resource"' will display
          the 'Resources' information of the selected NDIS adapter.
      4. 'BACScli -t VBD -f mac -i 0010181a1b1d "info driver"' will display
          the 'driver' information of the selected VBD adapter.
      5. 'BACScli -t NDIS -f mac -i 0010181a1b1c "info hardware"' will display
          the 'hardware' information of the selected NDIS adapter.
      6. 'BACScli -t NDIS -f mac -i 0010181a1b1c "info all"' will display all 
         the information of the selected NDIS adapter.
      7. 'BACScli -t TEAM -f name -i team1 "info all"' will display all the
         information of the selected team.
      8. 'BACScli -t TEAM -f name -i team1 "info members"' will display all the
         information of the selected team.
      9. 'BACScli -t TEAM -f name -i team1 "info livelink"' will display 
         livelink settings of the selected team.
      10.'BACScli -t TEAM -f name -i team1 "info general"' will display the
         general information of the selected team.
      11.'BACScli -t TEAM -f name -i team1 "info"' will display all the
         information of the selected team.
      12. 'BACScli -t TEAM -f name -i "^"Team1 "info"' will display the team
         information of the selected ('^Team1') team. If team name contains
         special character, it needs to be specified inside double quotes.
      13. 'BACScli -t VNIC -f name -i "^"VLAN1 "info"' will display the virtual
         adapter information which is identified by a VLAN name ('^VLAN1').
         If VLAN name contains special character, it needs to be specified 
         inside double quotes.
      

    - In Interactive mode, use 'list <view>' and 'select <idx> commands to 
      select the desired target device.  
      Use 'info [ all | vitalsigns | driver | hardware | resource ]' 
      command to get information of the selected target.

      Examples:
      1. 'info' or 'info all' will display all the information about 
         the selected target.
      2. 'info vitalsigns' will display vitalsigns information of the 
         selected target.
      3. 'info resource' will display vitalsigns information of the 
         selected target.
      4. 'info driver' will display vitalsigns information of the 
         selected target.
      5. 'info hardware' will display vitalsigns information of the 
         selected target.
      6. 'info members' will display all the information of the selected team.
      7. 'info livelink' will display livelink settings of the selected team.
      8. 'info general' will display the general information of the 
         selected team.
      
    7.9 How to configure 'Advanced parameter' of a selected target?
    - In CLI mode, use 'BACScli -t <target type> -f <target format> 
      -i <target ID> cfg Advanced [param|param=value]' command to display 
      and configure the 'Advanced parameter' of the selected target.

      Examples:
      1. 'BACScli -t NDIS -f mac -i 0010181a1b1c "cfg Advanced"' will 
         display all Advanced parameters of the selected NDIS adapter 
         and their current settings.

      2. 'BACScli -t NDIS -f mac -i 0010181a1b1c "cfg Advanced \"802.1p QOS\""' 
         will display the current setting and all valid settings of the 
         specified Advanced parameter "802.1p QOS".

      3. 'BACScli -t NDIS -f mac -i 
         0010181a1b1c "cfg Advanced \"802.1p QOS\"=\"Enable\""'
         will set the Advanced parameter, '802.1p QOS', to 'Enable'.

      4. 'BACScli -t NDIS -f mac -i 
         0010181a1b1c "cfg advanced \"Flow Control\"=\"Rx "&" Tx enabled\""'
         will set the Advanced parameter, 'Flow Control', to 'Rx & Tx enabled'.


    - In Interactive mode, use 'list <view>' and 'select <idx> commands to 
      select the desired target device.  Use 'cfg Advanced [param|param=value] 
      to display and configure the 'Advanced parameter' of the selected target.

      Examples:
      1. 'cfg Advanced' will display all Advanced parameters of the selected
        adapter and their current settings.

      2. 'cfg Advanced "802.1p QOS"' will display the current setting and all
        valid settings of the "802.1p QOS" Advanced parameter.

      3. 'cfg Advanced "802.1p QOS"="Disable"' will set the "802.1p QOS"
       parameter to be "Disable".

    7.10 How to display 'Licenses' of a selected target?
    - In CLI mode, use 'BACScli -t <target type> -f <target format> 
      -i <target ID> cfg licenses' command to display the 'Licenses' of the 
      selected target.

      Examples:
      1. 'BACScli -t VBD -f mac -i 0010181a1b1d "cfg Licenses"' will display 
         all Licenses of the selected VBD adapter and their current settings.

     
    - In Interactive mode, use 'list <view>' and 'select <idx> commands to
      select the desired target device.  Use 'cfg Licenses' command to
      display the Licenses of the selected target.

      Examples:
      1. 'cfg Licenses' will display all Licenses parameters of the selected
         adapter and their current settings.

    7.11 How to configure 'iSCSI parameter' of a selected target?
    - In CLI mode, use 'BACScli -t <target type> -f <target format> 
      -i <target ID> cfg iSCSIMgmt [key|key=value]' command to display 
      and configure the 'iSCSI parameter' of the selected target.

      Examples:
      1. 'BACScli -t iSCSI -f mac -i 0010181a1b1e "cfg iSCSIMgmt"' will
        display all iSCSI Management keys of the selected iSCSI adapter
        and their current settings.

      2. 'BACScli -t iSCSI -f mac -i 0010181a1b1e 
         "cfg iSCSIMgmt \"IPV4DHCP\""' will display the 
         current setting and all valid settings of the IPV4DHCP key.

      3. 'BACScli -t iSCSI -f mac -i 0010181a1b1e 
         "cfg iSCSIMgmt \"IPV4DHCP\"=\"Enable\""' will set the 
         'IPV4DHCP' key to 'Enable'.

    - In Interactive mode, use 'list <view>' and 'select <idx> commands to
      select the desired target device.  Use 'cfg iSCSIMgmt [key|key=value]'
      command to display and configure the 'iSCSI parameter' of the selected
      target.

      Examples:
      1. 'cfg iSCSIMgmt' will display current settings of all iSCSI Management
         parameters of the selected adapter and their current settings.

      2. 'cfg iSCSIMgmt "IPV4DHCP"' will display the current setting
         and all valid settings of the IPV4DHCP key.

      3. 'cfg iSCSIMgmt "IPV4DHCP"="Enable"' will set the "IPV4DHCP" to
         be "Enable".

    7.12 How to configure 'Resource' of a selected target?
    - In CLI mode, use 'BACScli -t <target type> -f <target format> 
      -i <target ID> cfg Resource [key|key=value]' command to display 
      and configure the 'Resource parameter' of the selected target.

      Examples:
      1. 'BACScli -t VBD -f mac -i 0010181a1b1d "cfg Resource"' 
         will display all Resource Reservation keys and their current settings.

      2. 'BACScli -t VBD -f mac -i 0010181a1b1d 
         "cfg Resource \"CONFIGURABLE\""' will display all configurable 
         Resource Reservation keys with their current settings and 
         valid settings.

      3. 'BACScli -t VBD -f mac -i 0010181a1b1d 
         "cfg Resource \"CONFIG\"=\"RSVD\""' will set the 
         "Offload Configuration" to "Reserved Resources".

      4. 'BACScli -t VBD -f mac -i 0010181a1b1d 
         "cfg Resource \"TOECONN\"=\"50\""' will set the 
         "TOE Connections" to 50. The command is valid only 
         when the "Offload Configuration" is in "Reserved Resources".

      5. 'BACScli -t VBD -f mac -i 0010181a1b1d 
         "cfg Resource \"iSCSI\"=\"Disable\""' set the 
         "Pre-Allocated Resources for iSCSI" to Disable.
         All reserved resources for iSCSI is released.
         The command is valid only when the "Offload Configuration" 
         is in "Reserved Resources".

    - In Interactive mode, use 'list <view>' and 'select <idx>' 
      commands to select the desired target device.  
      Use 'cfg Resource [key|key=value]' command to display
      and configure the 'Resource parameter' of the selected target.

      Examples:
      1. 'cfg Resource' will display all Resource Reservation
         parameters of the selected adapter and their current settings.

      2. 'cfg Resource "CONFIGURABLE"' will display all configurable
         Resource Reservation parameters with their current settings
         and valid settings.

      3. 'cfg Resource "CONFIG"="FCFS"' set the "Offload Configuration"
         to "First Come First Served".

      4. 'cfg Resource "iSCSICONN"="20"' set the "iSCSI Connections" to 20.
         The command is valid only when the "Offload Configuration" is in
         "Reserved Resources".

      5. 'cfg Resource "TOE"="Disable"' set the "Pre-Allocated Resources
         for TOE" to Disable.  All reserved resources for TOE is released.
         The command is valid only when the "Offload Configuration" is in
         "Reserved Resources".

    7.13 How to configure 'OOBMgmt' of a selected target?
    - In CLI mode, use 'BACScli -t <target type> -f <target format> 
      -i <target ID> cfg iSCSIMgmt [key|key=value]' command to display 
      and configure the 'iSCSI parameter' of the selected target.
      
      Examples:
      1. 'BACScli -t NDIS -f mac -i 0010181a1b1c "cfg OOBMgmt"' will 
         display all OOB Management parameters and their current settings 
         or information
      
      2. 'BACScli -t NDIS -f mac -i 0010181a1b1c "cfg OOBMgmt 
         \"Heartbeat Transmit Interval\""' will display 
         "Heartbeat Transmit Interval" current settings and its valid input.
      
      3. 'BACScli -t NDIS -f mac -i 0010181a1b1c "cfg OOBMgmt 
         \"Heartbeat Transmit Interval\"=\"50\""' will set the 
         "Heartbeat Transmit Interval" to 50 seconds
         
    - In Interactive mode, use 'list <view>' and 'select <idx>' 
      commands to select the desired target device.  
      Use 'cfg OOBMgmt [key|key=value]' command to display and configure 
      the 'OOBMgmt parameter' of the selected target.

      Examples:
      1. 'cfg OOBMgmt' will display all OOB Management
         parameters of the selected adapter and their current settings.

      2. 'cfg OOBMgmt "Heartbeat Transmit Interval"' will display 
         "Heartbeat Transmit Interval" current settings and its valid input
         
      3. 'cfg OOBMgmt "Heartbeat Transmit Interval"="50"' will set the 
         "Heartbeat Transmit Interval" to 50 seconds
         
    7.14 How to configure 'Systoe' of the system?
    - In CLI mode, use 'BACScli -t System "cfg Systoe [value]" command to 
      display and configure the TCP Offload of system chimney.
      
      Examples:
      1. 'BACScli -t system "cfg Systoe"' will display current Chimney 
         Offload State.
      
      2. 'BACScli -t system "cfg Systoe Enabled"' will enable current Chimney 
         Offload State.
      
      3. 'BACScli -t system "cfg Systoe Disabled"' will disable current Chimney 
         Offload State.

      4. 'BACScli -t system "cfg Systoe Automatic"' will set current Chimney 
         Offload State to automatic (Win7 kernel and later).
         
    - In Interactive mode, use 'list System' and by default the system is 
      selected because there is only system.
      Use 'cfg Systoe [value]' command to display and configure 
      the TCP Offload of system chimney.

      Examples:
      1. 'cfg Systoe' will display current Chimney Offload State.

      2. 'cfg Systoe Enabled' will enable current Chimney Offload State.
         
      3. 'cfg Systoe Disabled' will disable current Chimney Offload State.

      4. 'cfg Systoe Automatic' will set current Chimney Offload State
         to automatic (Win7 kernel and later).

    7.15 How to get statistics for a selected target?
    - In CLI mode, use 'BACScli -t <target type> -f <target format> 
      -i <target ID> "stats <options>"'

      Examples:
      1. 'BACScli -t NDIS -f mac -i 0010181a1b1c "stats"' will display
         all statistics of the selected NDIS adapter.
         
      2. 'BACScli -t NDIS -f mac -i 0010181a1b1c "stats general"' will display
         general statistics of the selected NDIS adapter.
         
      3. 'BACScli -t NDIS -f mac -i 0010181a1b1c "stats IEEE"' will display
         IEEE statistics of the selected NDIS adapter.
         
      4. 'BACScli -t NDIS -f mac -i 0010181a1b1c "stats BASP"' will display
         BASP statistics of the selected NDIS adapter.

      5. 'BACScli -t NDIS -f mac -i 0010181a1b1c "stats all"' will display
         all the statistics information of the selected NDIS adapter.
         
      6. 'BACScli -t iSCSI -f mac -i 0010181a1b1e "stats login"' will display 
         login statistics information of the selected iSCSI device.
         
      7. 'BACScli -t iSCSI -f mac -i 0010181a1b1e "stats instance"' 
         will display instance statistics information of the selected 
         iSCSI device.
         
      8. 'BACScli -t iSCSI -f mac -i 0010181a1b1e "stats custom"' will display 
         custom statistics information of the selected iSCSI device.
         
      9. 'BACScli -t iSCSI -f mac -i 0010181a1b1e "stats all"' will display
         all the statistics information of the selected iSCSI device.
         
      10. 'BACScli -t iSCSI -f mac -i 0010181a1b1e "stats"' will display 
         all the statistics information of the selected iSCSI device.
         
      11. 'BACScli -t TEAM -f name -i asdf "stats"' will display 
         all the statistics information for the 'asdf' team.
         
      12. 'BACScli -t VNIC -f name -i asdf "stats"' will display 
         all the statistics information for the virtual adapter whose
         VLAN name is 'asdf'.

    - In Interactive mode, the target type and target identifiers need
      not be specified and the stats command will be based on the active
      target selection.
      
      Examples:
      1. 'stats' will display all statistics of the 
         selected NDIS adapter.
         
      2. 'stats general' will display general statistics of 
         the selected NDIS adapter.
         
      3. 'stats IEEE' will display IEEE statistics of the 
         selected NDIS adapter.
         
      4. 'stats BASP' will display BASP statistics of the selected 
         NDIS adapter.

      5. 'stats all' will display all the statistics information 
         of the selected NDIS adapter.
         
      6. 'stats login' will display login statistics information 
         of the selected iSCSI device.
         
      7. 'stats instance' will display instance statistics information 
         of the selected iSCSI device.
         
      8. 'stats custom' will display custom statistics information 
         of the selected iSCSI device.
         
      9. 'stats all' will display all the statistics information 
          of the selected iSCSI device.
         
      10. 'stats' will display all the statistics information 
          of the selected iSCSI device.
          
      11. 'stats' will display all the statistics information 
          for the selected team.
         
      12. 'stats' will display all the statistics information 
          for the selected virtual adapter. 

    7.16 How to reset statistics of a selected target?
    - This command is not applicable in the CLI mode.
    
    - In Interactive mode, type 'resetstats' to reset all statistical
      information for a selected/active NDIS/VNIC/iSCSI/team.

    7.17 How to run diagnostic tests of a selected target?
    - In CLI mode, use 'BACScli -t <target type> -f <target format> 
      -i <target ID> diag {[-c REG ] [-c MII ] [-c EEP] [-c MEM] 
      [-c CPU] [-c INT] [-c MACLB ] [-c PHYLB] [-c LED] | [-c ALL]} 
      [-l <cnt> ] [ -v <LEDIntv> ]' command to run NIC diagnostics 
      tests for the selected target. This command is available for 
      NDIS and VBD adapters

      Examples:
      1. 'BACScli -t NDIS -f mac -i 0010181a1b1c "diag"' will display all the
         diagnostics tests available for the current selected target.
      2. 'BACScli -t NDIS -f mac -i 0010181a1b1c "diag -c MII -c LED"' will 
         run MII and LED test for the selected NDIS adapter.
      3. 'BACScli -t VBD -f mac -i 0010181a1b1d "diag -c all -l 5 -v 8"' 
         will run all the tests for 5 times with LED test interval 8 
         milliseconds for the selected VBD adapter.

      - In Interactive mode, use 'list <view>' and 'select <idx>' commands 
        to select the desired target device.  
        Use 'diag {[-c REG ] [-c MII ] [-c EEP] [-c MEM] [-c CPU] 
        [-c INT] [-c MACLB ] [-c PHYLB] [-c LED] | [-c ALL]} 
        [-l <cnt> ] [ -v <LEDIntv> ]' command to run diagnostics 
        tests for the selected target.

      Examples:
      1. 'diag' will display all the diagnostics tests available for 
         the current selected target.
      2. 'diag -c MII -c LED' will run MII and LED test for the 
         selected NDIS adapter.
      3. 'diag -c all -l 5 -v 8' will run all the tests for 5 times 
         with LED test interval 8 milliseconds for the selected VBD adapter.

    7.18 How to run cable diagnostic test of a selected target?
    - In CLI mode, use 'BACScli -t <target type> -f <target format> 
      -i <target ID> cablediag' to run cable diagnostics test for 
      selected target. This command is available for NDIS and VBD adapters.

      Examples:
      1. 'BACScli -t NDIS -f mac -i 0010181a1b1c "cablediag"' will run 
         the cable diagnostics test for the current selected NDIS adapter.
      2. 'BACScli -t VBD -f mac -i 0010181a1b1d "cablediag"' will run the 
         cable diagnostics test for the current selected VBD adapter.

    - In Interactive mode, use 'list <view>' and 'select <idx>' commands 
      to select the desired target device.  Use 'cablediag' to run cable 
      diagnostics test for selected target.

      Examples:
      1. 'cablediag' will run the cable diagnostics test for the current 
          selected NDIS adapter.

    7.19 How to run network diagnostic test of a selected target?
    - In CLI mode, use 'BACScli -t <target type> -f <target format> 
      -i <target ID> networkdiag [-p <IP address>]' to run cable diagnostics 
      test for selected target. This command is available for NDIS and 
      virtual adapters.

      Examples:
      1. 'BACScli -t NDIS -f mac -i 0010181a1b1c "networkdiag -p 192.168.1.5"' 
         will run the network test for the current selected NDIS adapter.
      2. 'BACScli -t VNIC -f mac -i 0010181a1b1c "networkdiag"' will run the 
         network test for the current selected virtual adapter. Since there is 
         no ip address specified, BACScli will use gateway address for 
         the test.

    - In Interactive mode, use 'list <view>' and 'select <idx>' commands to 
      select the desired target device.  Use 'networkdiag [-p <IP address>]' 
      to run cable diagnostics test for selected target.

      Examples:
      1. 'networkdiag -p 192.168.1.5' will run the network test for the current 
         selected NDIS adapter.
      2. 'networkdiag' will run the network test for the current selected 
         virtual adapter.

    7.20 How to create Team configuration?
    - In CLI mode, use 'BACScli -t TEAM "add <config file name>"' to add a
      team using a configuration file.
      
      Examples:
      1. 'BACScli -t team "add o:\temp\asdf1.bcg"'
      
    - In the interactive mode, use 'add <config file name>' to add a
      team using a configuration file.
      
      Examples:
      1. 'add o:\temp\asdf1.bcg'

    7.21 How to restore Team configuration?
    - In CLI mode, use 'BACScli -t TEAM "restore <config file name>"' to 
      restore teams using a configuration file.
      
      Examples:
      1. 'BACScli -t team "restore o:\temp\asdf.bcg"'
      
    - In the interactive mode, use 'restore <config file name>' to restore 
      teams using a configuration file.
      
      Examples:
      1. 'restore o:\temp\asdf.bcg'

    7.22 How to save Team configuration?
    - In CLI mode, use 'BACScli -t TEAM "save {-f MAC|BDF} <file_path_name>"' 
      to save the current teaming configuration to a file.
      
      Examples:
      1. 'BACScli -t team "save -f MAC o:\temp\asdf.bcg"'.
         Saves the current teaming configuration to a file named
         'asdf.bcg' with adapters identified using the MAC address.
      
      2. 'BACScli -t team "save -f BDF o:\temp\asdf.bcg"'.
         Saves the current teaming configuration to a file named
         'asdf.bcg' with adapters identified using the 
         bus/device/function numbers, the Bus/Device/Function numbers
         are in HEX format.
      
    - In the interactive mode, use 'save {-f MAC|BDF} <file_path_name>' 
      to save the current teaming configuration to a file from within
      the teamview view listings.
      
      Examples:
      1. 'save -f MAC o:\temp\asdf.bcg'.
         Saves the current teaming configuration to a file named
         'asdf.bcg' with adapters identified using the MAC address.
      
      2. 'save -f BDF o:\temp\asdf.bcg'.
         Saves the current teaming configuration to a file named
         'asdf.bcg' with adapters identified using the 
         bus/device/function numbers, the Bus/Device/Function numbers
         are in HEX format.

    7.23 How to remove one or more teams?
    - In CLI mode, use 'BACScli -t team -f name -i <team name> "remove"' 
      to remove one or more teams from the system.
      
      Examples:
      1. 'BACScli -t team -f name -i asdf "remove"'.
         Removes a team named 'asdf' from the system.
      
      2. 'BACScli -t team "remove -c all"'.
         Removes all teams from the system.
         
    - In the interactive mode, use 'remove {-c all | <team_name>| }' 
      to remove one or more teams from the system.
      
      Examples:
      1. 'remove asdf' removes a team named 'asdf' from the system.
      
      2. 'remove -c all' removes all teams from the system.
         
      2. 'remove' Removes the active/selected team from the system.

    7.24 How to display the unassigned adapters?
    - In CLI mode, use 'BACScli -t TEAM unassigned' to display list of 
      unassigned adapters.
      
    - In the interactive mode, use 'unassigned' to restore 
      teams using a configuration file.
      
    7.25 How to switch between primary and standby adapter in a Team?
    - In CLI mode, use 'BACScli -t TEAM "unassigned"' to display list of 
      unassigned adapters.
      
    - In the interactive mode, use 'unassigned' to restore 
      teams using a configuration file.

    7.26 Examples of other commands?
      1. 'help' will display a list of available commands.
      
      2. 'version' will display the version of BACScli.
      
      3. 'log <file> will turn on the log and log all the information to <file>.
      
      4. 'log' will turn off the log.
      
      5. 'showsel' will show the current selected target.


8. Configuration File Usage:
=================
Usage:

8.1 Team Configuration File:

 8.1.1 Syntax:

    The syntax plain text file is defined as following. The team parameters 
    can be specified either using 'NO_LIVELINK_PARAMS' or using 
    'LIVELINK_PARAMS'. 

    TEAM_CFG
    [TEAM_CFG]
    ...

    1. Each 'TEAM_CFG' with NO_LIVELINK_PARAMS is defined as follows:

    name: team_name
    [type: team_type]
    pnic: MAC_address
    [pnic: MAC_address
    ...]
    [snic: MAC_address]
    [[ip: IP_address
    smask: subnetmask]
    |[vname: VLAN_name
    vid: VLAN_ID
    [ip: IP_address
    smask: subnetmask]]
    ...]

    2. Each 'TEAM_CFG' with LIVELINK_PARAMS is defined as follows:

    name: livelinkteam_name
    [type: livelink_team_type]
    target_ip: ip1 
    [target_ip: ip2 
    target_ip: ip3
    target_ip: ip4]
    [retry: 3]
    [freq: 2000]
    [retry_freq: 2000]
    [livelink_vid: 1234]
    [pnic: MAC_address|PCIINFO 
    livelink_ip: ll_ip
    livelink_ipv6: ll_ipv6
    pnic: MAC_address|PCIINFO 
    livelink_ip: ll_ip
    pnic:...]
    [snic: MAC_address|PCIINFO 
    livelink_ip: ll_ip]
    [[ip: IP_address
    smask: subnetmask]
    |[vname: VLAN_name
    vid: VLAN_ID
    [ip: IP_address
    smask: subnetmask]]
    ...]

    A configuration file MUST contain at least one team configuration. 
    'BACScli.exe' will recognize 'name' as starting point of a team 
    configuration section. All lines after 'name' will apply to the 
    'team_name' until another 'name' or end of file is encountered.
    Each team configuration MUST contain at least one physical network 
    adapter or the configuration of the team will be ignored.
    If 'type' is missing, the default is set to Smart Load Balancing (SLB).
    There are four team types, SLB = 0, GEC = 1, LACP = 2 and SLB-AFD = 4.
    If 'ip' is set, 'smask' must also be set or 'ip' will be ignored. 
    If 'ip' is not set, DHCP will be used.
    Team IP can be set if no VLAN are configured. If any VLAN is
    configured, the team IP will be ignored. Multiple VLAN 
    configurations are allowed. Each VLAN configuration allows an
    optional static IP information. Each IP MUST be couple with 
    'smask' or will be ignored.
    Please note that there must at least one white space or tab
    between the tag ('name', 'pnic', etc.) and the value pair 
    ('team_name', 'MAC_address', etc.) in each line.
    For the keywords before semicolons, they are case sensitive.

 8.1.2 Example:

    1. A sample of the TeamConfig.txt configuration file 
    with NO_LIVELINK_PARAMS:

    name: BRCMTeam
    type: 1
    pnic: 00101801794D
    pnic: 00:0B.2
    vname: VLAN2
    vid: 2
    vname: VLAN3
    vid: 3
    ip: 172.16.8.3
    smask: 255.255.255.0
    vname: VLAN4
    vid: 4
    ip: 172.16.8.4
    smask: 255.255.255.0
    vname: VLAN5
    vid: 5
    ip: 172.16.8.5
    smask: 255.255.255.0
    
    2. A sample of the TeamConfig.txt configuration file 
    with LIVELINK_PARAMS:

    name: LiveLinkTeam
    type: 0
    target_ip: 172.16.8.66 
    target_ip: 172.16.8.77
    target_ip: 172.16.8.88 
    target_ip: fc01::101
    livelink_vid: 1234
    pnic: 00101801794D 
    livelink_ip: 172.16.8.10
    livelink_ipv6: fc01::218
    pnic: 01:0D.0 
    livelink_ip: 172.16.8.11
    snic: 02:03.00   
    livelink_ip: 172.16.8.20
    vname: VLAN2
    vid: 2
    vname: VLAN3
    vid: 3
    ip: 172.16.8.3
    smask: 255.255.255.0
    vname: VLAN4
    vid: 4
    ip: 172.16.8.4
    smask: 255.255.255.0
    vname: VLAN5
    vid: 5
    ip: 172.16.8.5
    smask: 255.255.255.0

8.2 Boot configuration XML file:

  8.2.1 iSCSI Example:

    <?xml version="1.0" encoding="UTF-8"?>
     
    <iSCSIBootConfiguration>
        <BACScli><Version>v14.8.0</Version></BACScli>
        <iSCSIGeneral>
            <TCPIPviaDHCP>Disabled</TCPIPviaDHCP>
            <iSCSIPviaDHCP>Disabled</iSCSIPviaDHCP>
            <CHAPAuthentication>Enabled</CHAPAuthentication>
            <BoottoiSCSITarget>Disabled</BoottoiSCSITarget>
        </iSCSIGeneral>
        <IscsiInitiator>
            <IPAddress>10.13.241.147</IPAddress>
            <SubnetMask>255.255.254.0</SubnetMask>
            <DefaultGateWay>10.13.241.1</DefaultGateWay>
            <PrimaryDNS>10.10.10.10</PrimaryDNS>
            <SecondaryDNS>20.20.20.20</SecondaryDNS>
            <iSCSIName>iqn</iSCSIName>
            <CHAPID>user</CHAPID>
            <CHAPSecret>password</CHAPSecret>
        </IscsiInitiator>
        <IscsiTarget>
            <Connect>Enabled</Connect>
            <IPAddress>10.13.241.147</IPAddress>
            <TCPPort>26535</TCPPort>
            <BootLun>255</BootLun>
            <iSCSIName>iname</iSCSIName>
            <CHAPID>admin1</CHAPID>
            <CHAPSecret>password1</CHAPSecret>
        </IscsiTarget>
        <IscsiSecTarget>
            <Connect>Enabled</Connect>
            <IPAddress>192.168.145.112</IPAddress>
            <TCPPort>34589</TCPPort>
            <BootLun>2</BootLun>
            <iSCSIName>name</iSCSIName>
            <CHAPID>user</CHAPID>
            <CHAPSecret>passwd</CHAPSecret>
        </IscsiSecTarget>
        <IscsiMPIO>
            <EnableMPIO>Enabled</EnableMPIO>
            <SecondaryDevice>Adapter2 (57712A1) / Port2</SecondaryDevice>
            <UseIndependentTargetPortal>Enabled</UseIndependentTargetPortal>
            <UseIndependentTargetName>Enabled</UseIndependentTargetName>
        </IscsiMPIO>
    </iSCSIBootConfiguration>

  8.2.2 nic partition config Example:

  <?xml version="1.0" encoding="UTF-8" ?> 
    <MultiFunctionConfiguration>
      <Version>2</Version> 
      <MultiFunctionMode>NIC Partition</MultiFunctionMode> 
      <PortConfig>
        <Port>0</Port> 
        <FlowControl>Auto</FlowControl> 
        <FunctionConfig>
          <Function>0</Function> 
          <EthernetNdis>Enable</EthernetNdis> 
          <iSCSI>Enable</iSCSI> 
          <FCoE>Disable</FCoE> 
          <RelativeBandwidth>1</RelativeBandwidth> 
          <MaxBandwidth>0</MaxBandwidth> 
        </FunctionConfig>
        <FunctionConfig>
          <Function>2</Function> 
          <EthernetNdis>Enable</EthernetNdis> 
          <iSCSI>Disable</iSCSI> 
          <FCoE>Disable</FCoE> 
          <RelativeBandwidth>1</RelativeBandwidth> 
          <MaxBandwidth>0</MaxBandwidth> 
        </FunctionConfig>
        <FunctionConfig>
          <Function>4</Function> 
          <EthernetNdis>Enable</EthernetNdis> 
          <iSCSI>Disable</iSCSI> 
          <FCoE>Disable</FCoE> 
          <RelativeBandwidth>1</RelativeBandwidth> 
          <MaxBandwidth>0</MaxBandwidth> 
        </FunctionConfig>
        <FunctionConfig>
          <Function>6</Function> 
          <EthernetNdis>Enable</EthernetNdis> 
          <iSCSI>Disable</iSCSI> 
          <FCoE>Disable</FCoE> 
          <RelativeBandwidth>97</RelativeBandwidth> 
          <MaxBandwidth>0</MaxBandwidth> 
        </FunctionConfig>
      </PortConfig>
      <PortConfig>
        <Port>1</Port> 
        <FlowControl>Auto</FlowControl> 
        <FunctionConfig>
          <Function>1</Function> 
          <EthernetNdis>Enable</EthernetNdis> 
          <iSCSI>Disable</iSCSI> 
          <FCoE>Disable</FCoE> 
          <RelativeBandwidth>10</RelativeBandwidth> 
          <MaxBandwidth>0</MaxBandwidth> 
        </FunctionConfig>
        <FunctionConfig>
          <Function>3</Function> 
          <EthernetNdis>Enable</EthernetNdis> 
          <iSCSI>Enable</iSCSI> 
          <FCoE>Disable</FCoE> 
          <RelativeBandwidth>20</RelativeBandwidth> 
          <MaxBandwidth>0</MaxBandwidth> 
        </FunctionConfig>
        <FunctionConfig>
          <Function>5</Function> 
          <EthernetNdis>Enable</EthernetNdis> 
          <iSCSI>Disable</iSCSI> 
          <FCoE>Disable</FCoE> 
          <RelativeBandwidth>30</RelativeBandwidth> 
          <MaxBandwidth>0</MaxBandwidth> 
        </FunctionConfig>
        <FunctionConfig>
          <Function>7</Function> 
          <EthernetNdis>Enable</EthernetNdis> 
          <iSCSI>Disable</iSCSI> 
          <FCoE>Disable</FCoE> 
          <RelativeBandwidth>40</RelativeBandwidth> 
          <MaxBandwidth>0</MaxBandwidth> 
        </FunctionConfig>
      </PortConfig>
    </MultiFunctionConfiguration>

  <?xml version="1.0" encoding="UTF-8" ?> 
    <MultiFunctionConfiguration>
      <Version>2</Version> 
      <MultiFunctionMode>AFEX</MultiFunctionMode> 
      <PortConfig>
        <Port>0</Port> 
        <FlowControl>Auto</FlowControl> 
        <FunctionConfig>
          <Function>0</Function> 
          <EthernetNdis>Enable</EthernetNdis> 
          <iSCSI>Enable</iSCSI> 
          <FCoE>Disable</FCoE> 
          <RelativeBandwidth>1</RelativeBandwidth> 
          <MaxBandwidth>0</MaxBandwidth> 
          <AFEXVIFProfile>file_name</AFEXVIFProfile> 
        </FunctionConfig>
        ...
      </PortConfig>
      <PortConfig>
      ...
      </PortConfig>
    </MultiFunctionConfiguration>

  8.2.3 Disable nic partition through XML config file Example:

  <?xml version="1.0" encoding="UTF-8" ?> 
    <MultiFunctionConfiguration>
      <Version>2</Version> 
      <MultiFunctionMode>SingleFunction</MultiFunctionMode> 
    </MultiFunctionConfiguration>


9. Exit Codes:
==============
BACSCLI_OK                                  0       // Upgrade firmware OK
BACSCLI_QUIT                                1       // Quit program
BACSCLI_PARAM_ERROR                         2       // Not correct parameters
BACSCLI_ADAPTER_NOT_FOUND                   3       // Adapter not found
BACSCLI_CANNOT_LOCK_ADAPTER                 4       // Cannot lock adapter
BACSCLI_GET_CLOSE_EVENT                     5       // Get close event
BACSCLI_INIT_FAILED                         6       // Initialization failed
BACSCLI_UNSUPPORTED_BMAPI_VER               7       // BMAPI is too old
BACSCLI_UNKNOWN_COMMAND                     8       // Unknown command
BACSCLI_MALLOC_ERROR                        9       // memory allocation error
BACSCLI_BMAPI_ERROR                         10      // BMAPI call returns error
BACSCLI_OS_NOT_SUPPORTED                    11      // OS is not supported
BACSCLI_NO_ADVANCED_PARAMS                  12      // No Advanced Parameter for the NIC
BACSCLI_INVALID_ADVANCED_PARAM_DETECTED     13      // Invalid Advanced Parameter detected
BACSCLI_INVALID_ADVANCED_PARAM_SPECIFIED    14      // Invalid Advanced Parameter specified
BACSCLI_INVALID_ADVANCED_VALUE_SPECIFIED    15      // Invalid Advanced Value specified
BACSCLI_FEATURE_NOT_SUPPORTED_FOR_NIC       16      // Feature not supported for the NIC
BACSCLI_SET_ADVANCED_PARAM_ERROR            17      // Failed to set the Advanced Parameter with new value
BACSCLI_SYSTEM_REBOOT                       18      // System Reboot required
BACSCLI_UNSUPPORT_PLATFORM                  19      // System platform is not supported
BACSCLI_NOT_ENOUGH_PRIVILEGE                20      // Current user does not have enough privilege
BACSCLI_READ_LICENSE_FILE_ERROR             21      // Error in reading license file
BACSCLI_INVALID_LICENSE_KEY                 22      // Invalid license key
BACSCLI_INVALID_ISCSI_PARAM_SPECIFIED       23      // Invalid iSCSI Management Parameter specified
BACSCLI_INVALID_ISCSI_VALUE_SPECIFIED       24      // Invalid iSCSI Management Value specified
BACSCLI_INVALID_RSC_PARAM_SPECIFIED         25      // Invalid Resource Parameter specified
BACSCLI_INVALID_RSC_VALUE_SPECIFIED         26      // Invalid Resource Value specified
BACSCLI_FEATURE_NOT_SUPPORTED_IN_FCFS       27      // Feature not supported in FCFS mode
BACSCLI_PARAM_IS_READ_ONLY                  28      // This parameter can't be modified, Administrator authority required.
BACSCLI_NULL_IP_ADDRESS                     29      // The current IP address is NULL.
BACSCLI_CANNOT_UNLOCK_ADAPTER               30      // Failed to unlock adapter.
BACSCLI_INVALID_VALUE_SPECIFIED             31      // Invalid value specified
BACSCLI_NIC_IS_PART_OF_GEC_LACP_TEAM        32      // NIC is part of a GEC/LACP Team.
BACSCLI_REGISTRY_ACCESS_ERROR               33      // Error in accessing Registry.
BACSCLI_NOT_AN_ISCSI_BOOT_DEVICE            34      // This is not an iSCSI Boot device.
BACSCLI_INVALID_IP_ADDRESS                  35      // Invalid IP Address.
BACSCLI_DUPLICATE_IP_ADDRESS                36      // Duplicate IP Address.
BACSCLI_TEAM_DRIVER_NOT_LOAD                37      // nic( %s ) driver has to be loaded to make it a member of a team.
BACSCLI_NDIS6_DRIVER_REQUIRED				38      // Ndis6 driver is required for the NIC to join the Team in Windows Vista and later.
BACSCLI_TEAM_UNKNOW_NIC						39      // Unknown NIC ( %s ).
BACSCLI_INVALID_SUBNET_MASK                 40      // Invalid subnet mask.
BACSCLI_INVALID_CMD                         41      // Invalid command.

BACSCLI_NOT_YET_IMPL                        1000    // This functionality is not yet implemented.
BACSCLI_UNWIND                              1001    // Unwind to the parent processor
BACSCLI_NOT_APPLICABLE                      1002    // Command not applicable
BACSCLI_NO_TARGET_SEL                       1003    // No active target selection.
BACSCLI_INVALID_CONTEXT                     1004    // Not a valid context
BACSCLI_INVALID_FORMAT                      1005    // Invalid format selection
BACSCLI_INVALID_TARGET_ID                   1006    // Invalid target identifier
BACSCLI_FILE_DOES_NOT_EXIST                 1007    // File does not exist
BACSCLI_INVALID_TEAM_NAME                   1008    // Supplied team name is invalid
BACSCLI_TEAM_COMMIT_FAILED                  1009    // Failed to commit the team operation.
BACSCLI_TEAM_REMOVE_FAILED                  1010    // Failed to remove the team.
BACSCLI_CANNOT_OPEN_FILE                    1011    // Failed to open the file handle.
BACSCLI_ERR_CANNOT_SET_IPADDR               1012    // Failed to set ip address.
BACSCLI_ERR_CANNOT_GET_NIC_PCI_INFO         1013    // Failure retrieving NIC information
BACSCLI_ERR_RETRIEVE_IP_ADDR                1014    // Error retrieving IP address information
BACSCLI_FAILED_GET_INFO                     1015    // Failed to get info from the DataContainer
BACSCLI_WRONG_OPTION_FLAG                   1016    // General team config file parsing error.
BACSCLI_EXCEEDMAXVLAN                       1017    // Only a maximum of 64 VLANs are allowed.
BACSCLI_CANNOT_CREATE_LIVE_LINK             1018    // Live link support only applied to SLB team
BACSCLI_EXCEED_MAX_TARGET_IP                1019    // Live link support allows up to 4 link
BACSCLI_TOO_MANY_PHY_NIC                    1020    // Only up to a maximum of 8 nics are allowed in a team.
BACSCLI_CANNOT_CREATE_FECGEC_8023AD         1021    // Cannot create FECGEC or 802.3ad team with standby adapter.
BACSCLI_LL_IP_TARGET_IP_TYPE_MISMATCH       1022    // Invalid IPv6 Address
BACSCLI_INVALID_RANGE                       1023    // Value is out of range.
BACSCLI_INVALID_INTERVAL                    1024    // Invalid probe retry frequency
BACSCLI_DUPLICATE_OPTION                    1025    // The same option has been specified previously
BACSCLI_DUPLICATE_MAC_ADDRESS               1026    // Duplicate adapter physical MAC address
BACSCLI_DUPLICATE_VLANID                    1027    // Duplicate VLAN name
BACSCLI_TEAM_ALREADY_EXISTS                 1028    // Team with the specified name already exists
BACSCLI_CANNOT_MATCH_MAC_ADDR               1030    // Cannot find device using the specified MAC address.
BACSCLI_NO_TEAM_TO_CONFIG                   1031    // No team to configure.
BACSCLI_CANNOT_CREATE_TEAM                  1032    // Failure while creating team
BACSCLI_NO_LINK_FOR_IP_CFG                  1033    // No link is present in team to set ip address.
BACSCLI_ONE_OR_MORE_CREATE_FAILED           1034    // Creation of one or more teams failed.
BACSCLI_TEAM_NO_MEMBER                      1035    // A team is required to have at least one valid member
BACSCLI_NO_BRCM_NIC_IN_TEAM                 1036    // Team requires at least one Broadcom nic.
BACSCLI_ONLY_BROADCOM_NIC_FOR_VLAN          1037    // Only Broadcom certified adapters are supported in VLAN.
BACSCLI_CANNOT_SET_IPADDR                   1038    // Failed to assign ip address on the virtual adapter.
BACSCLI_INVALID_CFG                         1039    // Invalid configuration
BACSCLI_SET_ADVANCE_PARAM_FAILED            1040    // Failed to set advanced parameter
BACSCLI_INTERNAL_ERROR_INVALID_DATA         1041    // Invalid or NULL data found
BACSCLI_INVALID_PARAMETER                   1042    // Invalid Parameter. Parameter is too few
BACSCLI_NIC_NOT_SUPPORTED                   1043    // The current NIC is not supported for this operation
BACSCLI_SET_ASF_FAILED                      1044    // Failed to set the ASF Table
BACSCLI_SET_POWER_MGMT_FAILED               1045    // Failed to set Power Management configuration
BACSCLI_INVALID_TARGET_CMD                  1046    // command/target identifier is invalid
BACSCLI_NO_ISCSI_SESSIONS                   1047    // No iSCSI sessions exists on the system
BACSCLI_SET_MGMT_OBJ_FAILED                 1048    // Failed to set Management Object
BACSCLI_SHOW_USAGE							1049    // If we want to show usage
BACSCLI_CANNOT_CONNECT_WMI					1050    // Cannot connect WMI
BACSCLI_EXCEEDMAXTAGGEDVLAN                 1051    // Only a maximum of 63 tagged VLANs are allowed.
BACSCLI_NO_TEAM_AVALIABLE                   1052    // There is no team to save.
BACSCLI_NOT_CONFIGURABLE                    1053    // Not Configurable.
BACSCLI_CANNOT_SUSPEND_RESUME_DRIVER        1054    // Failed to suspend or resume the driver.
BACSCLI_CANNOT_RESTART_DRIVER				1055    // Failed to restart the driver.


9. Third Party Software License
===============================

Portions of this software contain third party code subject to the following conditions:

License of libxml2

/* Except where otherwise noted in the source code (e.g. the files hash.c,
 * list.c and the trio files, which are covered by a similar license but
 * with different Copyright notices) all the files are:
 * 
 *  Copyright (C) 1998-2003 Daniel Veillard.  All Rights Reserved.
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is fur-
 * nished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
 * NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 * DANIEL VEILLARD BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON-
 * NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * 
 * Except as contained in this notice, the name of Daniel Veillard shall not
 * be used in advertising or otherwise to promote the sale, use or other deal-
 * ings in this Software without prior written authorization from him.
 */
