Configure driver options

Use the itential_driver_options attribute to configure advanced driver-specific settings for broker services. Driver options enable you to tune connection behavior, adjust timeouts, enable debugging, and optimize performance.

For information about broker services, see Device broker support.

When to use driver options

Use driver options to adjust timeouts for slow devices, optimize performance for fast connections, enable debugging and session logging, configure SSH parameters, or handle devices with non-standard behavior.

Most operations work without driver options. Use them only when default settings don’t meet your requirements.

How driver options work

Specify driver options in the itential_driver_options attribute within inventory node attributes. The system only uses options for the driver specified in itential_driver.

Basic structure

1{
2 "itential_driver_options": {
3 "netmiko": {
4 "timeout": 120,
5 "global_delay_factor": 2
6 }
7 }
8}

Example in inventory context

1{
2 "inventory": {
3 "inventoryNodes": [
4 {
5 "name": "slow-device",
6 "attributes": {
7 "itential_host": "10.1.1.1",
8 "itential_user": "admin",
9 "itential_password": "password",
10 "itential_platform": "cisco_ios",
11 "itential_driver": "netmiko",
12 "itential_driver_options": {
13 "netmiko": {
14 "timeout": 180,
15 "global_delay_factor": 3
16 }
17 }
18 }
19 }
20 ]
21 }
22}

Netmiko driver options

The netmiko driver supports the following options in itential_driver_options.netmiko.

Connection and timing

OptionTypeDefaultDescription
timeoutinteger100Overall connection timeout (seconds)
session_timeoutinteger60Session-level timeout (seconds)
auth_timeoutinteger-Authentication timeout (seconds)
banner_timeoutinteger15Login banner timeout (seconds)
conn_timeoutinteger10Initial TCP connection timeout (seconds)
blocking_timeoutinteger20Blocking operations timeout (seconds)

Performance and behavior

OptionTypeDefaultDescription
fast_clibooleanfalseDisable command echo verification for faster execution
global_delay_factorfloat1.0Multiplier for all delays (higher for slow devices)
delay_factor_compatfloat-Compatibility delay factor for specific platforms

fast_cli mode may miss errors or incomplete output. Test thoroughly before using in production.

Connection options

OptionTypeDefaultDescription
keepaliveinteger0SSH keepalive interval (seconds, 0=disabled)
allow_auto_changebooleanfalseAllow driver to auto-detect device type
encodingstring’utf-8’Character encoding for device communication
auto_connectbooleantrueAutomatically establish connection on creation

SSH configuration

OptionTypeDefaultDescription
disabled_algorithmsdict-SSH algorithms to disable (format: {"pubkeys": ["rsa-sha2-256"]})
allow_agentbooleanfalseUse SSH agent for authentication
system_host_keysbooleanfalseLoad system host keys
alt_host_keysbooleanfalseUse alternative host key file
alt_key_filestringPath to alternative host key file

Debugging and logging

OptionTypeDefaultDescription
verbosebooleanfalseEnable verbose output for debugging
session_logstring-Path to log file for session output
session_log_record_writesbooleanfalseRecord write operations in session log
session_log_file_modestring’write’File mode for session log (‘write’ or ‘append’)

Terminal settings

OptionTypeDefaultDescription
serial_settingsdict-Serial port settings (format: {"baudrate": 9600})
global_cmd_verifyboolean-Verify all commands succeed
read_timeout_overridefloat-Override default read timeout

Not all options work with all device platforms. See the netmiko documentation for platform-specific compatibility.

Scrapli driver options

The scrapli driver supports the following options in itential_driver_options.scrapli.

Connection and timing

OptionTypeDefaultDescription
timeout_socketfloat15.0Socket connection timeout (seconds)
timeout_transportfloat30.0Transport operations timeout (seconds)
timeout_opsfloat30.0Individual operations timeout (seconds)

Performance and behavior

OptionTypeDefaultDescription
comms_return_charstring’\n’Character to send after each command
comms_prompt_patternstring-Regex pattern for device prompt detection

SSH configuration

OptionTypeDefaultDescription
ssh_config_filestring-Path to SSH config file
ssh_known_hosts_filestring-Path to SSH known_hosts file
transportstring’system’SSH transport (‘system’, ‘paramiko’, ‘ssh2’, ‘telnet’)

Terminal settings

OptionTypeDefaultDescription
comms_ansibooleanfalseEnable ANSI escape sequence handling
auth_strict_keybooleantrueEnforce strict host key checking
auth_bypassbooleanfalseSkip authentication (test environments only)

Only use auth_bypass in test environments.