Install the third party RPM files to use the required debug and monitoring python scripts.
Example:
This is an example xr_script_scheduler.json file. Customize this file as per your requirements.
[
{
"name": "__template_entry__.py",
"description": ["**This is a template entry for documentation purpose. This entry will be ignored**",
"name : Name of the python script to be executed",
" [string][mandatory]",
"description: Description of the script",
" [string or list of strings][optional: default empty string]",
"cmd_line_parameters: Script command line parameters" ,
" [list of strings][optional: default Null][Example: ",
"env_variables: Enviromental variables to be set in script run shell",
" [list of key value pairs][optional: default Null][Example: [['INT_NAME': 'hu0/1/0/1']]",
"run_policy: Script restart policy when script exits",
" [string: one of always/once/stop][optional: default 'always']",
" always: restart the script every time it exits",
" once: do not restart the script if it exits",
" stop: stop an existing script run "
],
"cmd_line_parameters": [],
"env_variables": [],
"run_policy": "always"
},
{
"name": "monitor_int_rx_cntr.py",
"description": "Monitoring mgmt interface for Rx threshold of 100 ",
"cmd_line_parameters": ["MgmtEth0/RP0/CPU0/0", "200", "-log", "debug"],
"env_variables": [["INT_NAME", "FourHundredGigE0/9/0/0"], ["INT_NAME2", "FourHundredGigE0/10/0/0"]],
"run_policy": "always"
},
{
"name": "monitor_int_rx_cntr.py",
"description": "Monitoring Fo0/0/0/0 interface for Rx threshold of 1000000 ",
"cmd_line_parameters": ["FourHundredGigE0/0/0/0", "1000000"],
"run_policy": "once"
},
{
"name": "monitor_int_rx_cntr2.py",
"description": "Monitoring Fo0/0/0/1 interface for Rx threshold of 5000000 ",
"cmd_line_parameters": ["FourHundredGigE0/0/0/1", "5000000"],
"run_policy": "always"
},
{
"name": "monitor_int_rx_cntr2.py",
"description": "Monitoring Fo0/0/0/2 interface for Rx threshold of 5000000 ",
"cmd_line_parameters": ["FourHundredGigE0/0/0/2", "8000000"],
"run_policy": "stop"
}
]