Important

   

Starting version 8.9.03, BMC Network Automation is renamed to TrueSight Network Automation. This space contains information about BMC Network Automation 8.9.02 and previous versions. For TrueSight Network Automation 8.9.03 and later releases, see the TrueSight Network Automation documentation.

Adding devices using a script

You can use scripts to add devices. The following devices are currently supported:

  • Cisco ACE
  • Cisco FWSM/ASA/PIX

To add a device using a script

  1. Download the scripts available in the bcan-add-device-v.r.mm.zip file in the BCAN_HOME\public\bmc\bca-networks\extras directory.

  2. Unzip the file.
    The bin subdirectory contains the scripts.The lib subdirectory contains the libraries needed to run the scripts.
  3. Expand the file to create a bcan-add-device subdirectory structure.
    The utility scripts are as shown in the following table:

    Operating systemScript location

    Microsoft Windows

    bcan-add-device\bin\createACEcontext.bat
    bcan-add-device\bin\createFWSMcontext.bat

    Linux

    bcan-add-device/bin/createACEcontext.sh
    bcan-add-device/bin/createFWSMcontext.sh

  4. Before running the script, set the following arguments from the location from where the command would be executed:

    1. set BCAN_URL= <Webserver URL>
    2. set BCAN_USERNAME= <login username>
    3. set BCAN_PASSWORD= <login password>
  5. Use arguments on the command line without option flags, except for the -? and -v options, as shown in the following example:
    createACEcontext.bat [options]device-name hostname security-context-type security-context-name device-security-profile-name realm-name device-agent-name access-mode transfer-mode

The following table lists the arguments:

Note

The arguments after category are optional. However, you must specify all arguments in order up to the last optional argument that you specify.

Argument

Required or Optional

Description

-?

Optional

Display Help.

-v

Optional

Display verbose troubleshooting information.

device-name

Required

The name of the device to be added.

hostname

Required

The name of the host where the device is to be added.

category

Optional

The device category ID. If not provided, defaults to 99 for Unknown.

security-context-type

Optional

The security context type. If not provided, defaults to 0 for None.

security-context-name

Optional

The security context name if the context type is User-Defined.

device-security-profile-name

Optional

The device security profile name. If not provided, defaults to Auto.

realm-name

Optional

The realm name. If not provided, defaults to Default.

device-agent-name

Optional

The device agent name. If not provided, defaults to Local.

access-mode

Optional

The access mode. If not provided, defaults to 0 for Auto.

transfer-mode

Optional

The transfer mode. If not provided, defaults to 0 for Auto.

Was this page helpful? Yes No Submitting... Thank you

Comments