Password for SSH authentication (optional if using key-based auth).
identity_file
string
No
Path to private key file for SSH authentication.
timeout
string
No
30s
Timeout for SSH connection (e.g., ’30s’, ‘5m’).
Ping Expect Options
Attribute
Type
Required
Default
Description
should_fail
boolean
No
false
Expect the port to stay closed for the whole step timeout. The step fails at the first connection that the port accepts. Through a proxy that is never reachable, the state of the port is unknown, so the step fails.
Ping Examples
Basic Ping
cmd: pingname: Wait for the device to become online.options:
timeout: 4mparameters:
host: "[[attributes.Host]]"
Port stays closed
options.timeout sets how long the port must stay closed:
- cmd: pingname: The raw VNC port is closed to the networkoptions:
timeout: 30sparameters:
host: "[[attributes.BMC]]"port: 5900expect:
should_fail: true
The log reads Port 5900 on '...' stayed closed for 30s.
Ping with SSH Proxy
- cmd: pingname: Wait for the device to become online.options:
timeout: 4mparameters:
host: "[[attributes.host]]"port: 22proxy:
type: sshhost: "[[attributes.dutctl]]"port: 22ssh:
user: oscaridentity_file: "[[ssh-keys.proxy_key]]"# Or omit for auto-discovery