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
Download the scripts available in the bcan-add-device-v.r.mm.zip file in the BCAN_HOME\public\bmc\bca-networks\extras directory.
- Unzip the file.
The bin subdirectory contains the scripts.The lib subdirectory contains the libraries needed to run the scripts. Expand the file to create a bcan-add-device subdirectory structure.
The utility scripts are as shown in the following table:Operating system Script location Microsoft Windows
bcan-add-device\bin\createACEcontext.bat
bcan-add-device\bin\createFWSMcontext.batLinux
bcan-add-device/bin/createACEcontext.sh
bcan-add-device/bin/createFWSMcontext.shBefore running the script, set the following arguments from the location from where the command would be executed:
set BCAN_URL= <Webserver URL>
set BCAN_USERNAME= <login username>
set BCAN_PASSWORD= <login password>
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. |
| Optional | Display verbose troubleshooting information. |
| Required | The name of the device to be added. |
| Required | The name of the host where the device is to be added. |
| Optional | The device category ID. If not provided, defaults to 99 for Unknown. |
| Optional | The security context type. If not provided, defaults to 0 for None. |
| Optional | The security context name if the context type is User-Defined. |
| Optional | The device security profile name. If not provided, defaults to Auto. |
| Optional | The realm name. If not provided, defaults to Default. |
| Optional | The device agent name. If not provided, defaults to Local. |
| Optional | The access mode. If not provided, defaults to 0 for Auto. |
| Optional | The transfer mode. If not provided, defaults to 0 for Auto. |
Comments
Log in or register to comment.