AVX::CMD

AVX::CMD('device_name' +':@'+ 'command',interactive='None|command|input',seq_no=0,properties={'sleep':0,'wait':0})
‘device name’ Name of the device on which the command needs to be executed
‘command’ Actual command to be executed on the device
‘interactive’
  • Used if the command needs to be executed where devices require interactive prompts (such as A10)
  • Similar to providing a password for SSH
‘Seq_no’
  • Provision to define sequence numbers/tags against configurations (Implementation, Rollback, Prevalidation, Postvalidation, Cleanup)
  • Sequence number ensures a one on one mapping of the Implementation versus Rollback configurations
  • Used as a provision to rollback ONLY specific configuration(s) that get implemented
‘Sleep’
  • Provision to define command specific properties
  • Specifying ‘sleep duration’ will ensure an explicit wait (for the specified time) after a specific command is executed
‘Wait’
  • Provision to define command specific properties
  • Wait for the specified time to get the response for the implemented command
  • Should there be no response, it will timeout
Syntax to define Sequence number/Tags for SSH and REST:



Script with Sequence number/Tags - Implementation Config:



Script with Sequence number/Tags - Rollback Config:



Work order Review pane with option to edit command and properties:



Execution Report - Rollback completion for Partial Implementation:





Execution Report for Commands:



Execution Report - REST: