Service Manual

Running Scripts with User Privileges.................................................................................................. 87
8 Smart Scripting CLI............................................................................................ 88
disable..................................................................................................................................................88
execute................................................................................................................................................88
mount nfs............................................................................................................................................ 89
package install.....................................................................................................................................90
package uninstall.................................................................................................................................91
script (run)........................................................................................................................................... 92
script (stop/resume/clear/kill/unschedule)........................................................................................94
script event-handler............................................................................................................................95
script execute (EXEC mode)............................................................................................................... 95
script execute (CONFIGURATION mode).......................................................................................... 97
script get..............................................................................................................................................99
script path......................................................................................................................................... 100
script remove.....................................................................................................................................101
script trigger-event............................................................................................................................101
show packages..................................................................................................................................104
show script........................................................................................................................................ 106
start shell............................................................................................................................................107
triggered-by...................................................................................................................................... 108
switch script limit.............................................................................................................................. 109
username (event handler)................................................................................................................. 110
username............................................................................................................................................111
9 REST API..............................................................................................................112
HTTP and HTTPS............................................................................................................................... 112
XML.....................................................................................................................................................112
Important Points to Remember........................................................................................................ 112
REST Authentication.......................................................................................................................... 113
Request Query Parameters............................................................................................................... 113
Sample BGP Configurations..............................................................................................................113
HTTP Status Error Codes...................................................................................................................118
REST API — Protocol Data Unit (PDU) Structure..............................................................................119
Configurations...................................................................................................................................120
BGP.............................................................................................................................................. 120
Global Configuration...................................................................................................................126
Interface....................................................................................................................................... 127
IPv6 Global Configurations.........................................................................................................130
Management-Route.................................................................................................................... 131
Policy Based Routing (PBR)......................................................................................................... 131
Port Mirroring...............................................................................................................................133
6