request sc3 reset API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Palo Alto Networks Approved
Palo Alto Networks Approved
Community Expert Verified
Community Expert Verified

request sc3 reset API

L1 Bithead

Does anyone have the XML API syntax for the "request sc3 reset" commands on the local firewall.   

 

  1. request sc3 reset 
  2. debug software restart process management-server

 

If not I guess i will gather it with the debug cli on.  But was hoping someone could save me a step 🙂

1 accepted solution

Accepted Solutions

L5 Sessionator

At first, this doc is helpful.

https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-panorama-api/get-started-with-the-pan-os-xml-ap...

 

Here is my test result

1) Check API syntax

admin@PA-5410> debug cli on
admin@PA-5410> request sc3 reset
(container-tag: sc3 container-tag: reset pop-tag: pop-tag:)
((eol-matched: . #t) (confirmation-message: . WARNING: executing this command will reset SC3 state on this device. You will need to re-onboard the system (using an authkey). Do you want to continue?) (context-inserted-at-end-p: . #f))
WARNING: executing this command will reset SC3 state on this device. You will need to re-onboard the system (using an authkey). Do you want to continue? (y or n)


<request cmd="op" cookie="8284738022950153" uid="1001"><operations><request><sc3><reset/></sc3></request></operations></request>


2024-09-11 09:56:19
<response status="success"><msg>SC3 has been reset!
You need to restart mgmtsrvr to reinit SC3.</msg></response>

SC3 has been reset!
You need to restart mgmtsrvr to reinit SC3.

admin@PA-5410>


admin@PA-5410> debug software restart process management-server
(container-tag: sdebuoftware container-tag: restart leaf-tag: process value: management-server pop-tag: pop-tag:)
((eol-matched: . #t) (context-inserted-at-end-p: . #f))


<request cmd="op" cookie="1502434451239817" uid="1001"><operations><debug><software><restart><process>management-server</process></restart></software></debug></operations></request>


2024-09-11 09:53:22
#f

admin@PA-5410> 

 

2) Check same command by curl. Looks this worked on my platform (PA-5410 v11.1.4)

curl --insecure -X POST "https://<my firewall IP>/api/?type=op&cmd=<request><sc3><reset/></sc3></request>&key=<my api key>"

curl --insecure -X POST "https://<my firewall IP>/api/?type=op&cmd=<debug><software><restart><process>management-server</process></restart></software></debug>&key=<my api key>"

View solution in original post

4 REPLIES 4

Community Team Member

Hi @JasonRakersKSS ,

 

Have you had any luck with debug cli on? 

LIVEcommunity team member
Stay Secure,
Jay
Don't forget to Like items if a post is helpful to you!

Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

L5 Sessionator

At first, this doc is helpful.

https://docs.paloaltonetworks.com/pan-os/11-1/pan-os-panorama-api/get-started-with-the-pan-os-xml-ap...

 

Here is my test result

1) Check API syntax

admin@PA-5410> debug cli on
admin@PA-5410> request sc3 reset
(container-tag: sc3 container-tag: reset pop-tag: pop-tag:)
((eol-matched: . #t) (confirmation-message: . WARNING: executing this command will reset SC3 state on this device. You will need to re-onboard the system (using an authkey). Do you want to continue?) (context-inserted-at-end-p: . #f))
WARNING: executing this command will reset SC3 state on this device. You will need to re-onboard the system (using an authkey). Do you want to continue? (y or n)


<request cmd="op" cookie="8284738022950153" uid="1001"><operations><request><sc3><reset/></sc3></request></operations></request>


2024-09-11 09:56:19
<response status="success"><msg>SC3 has been reset!
You need to restart mgmtsrvr to reinit SC3.</msg></response>

SC3 has been reset!
You need to restart mgmtsrvr to reinit SC3.

admin@PA-5410>


admin@PA-5410> debug software restart process management-server
(container-tag: sdebuoftware container-tag: restart leaf-tag: process value: management-server pop-tag: pop-tag:)
((eol-matched: . #t) (context-inserted-at-end-p: . #f))


<request cmd="op" cookie="1502434451239817" uid="1001"><operations><debug><software><restart><process>management-server</process></restart></software></debug></operations></request>


2024-09-11 09:53:22
#f

admin@PA-5410> 

 

2) Check same command by curl. Looks this worked on my platform (PA-5410 v11.1.4)

curl --insecure -X POST "https://<my firewall IP>/api/?type=op&cmd=<request><sc3><reset/></sc3></request>&key=<my api key>"

curl --insecure -X POST "https://<my firewall IP>/api/?type=op&cmd=<debug><software><restart><process>management-server</process></restart></software></debug>&key=<my api key>"

thank you!  My hero.

L0 Member

Thank you so much for the help.

  • 1 accepted solution
  • 804 Views
  • 4 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!