Data Backup and Recovery Discussions

Snap Creator/Snapdrive integration ERROR:At least one command is not allowed to be executed remotely

Thanks in advance. For Agent 4.1.1 - I have seen the resolution for agent 3.4 but it seems 4x has a different configuration. Can someone point me to the proper update in my config to allow remote commands?

78
########## Storage discovery finished successfully ! ##########
79
########## Pre Application Quiesce commands ##########
80
[<AgentIP>:9090 (4.1.1.1)] Executing Pre application quiesce command [/opt/netapp/appscript/orautil_prepost.sh oracle <dbinstance> pre SUCCESS] on <AgentIP>
81
[<AgentIP>:9090 (4.1.1.1)] At least one command is not allowed to be executed remotely
82
Task: preAppQuiesceCMD with config:<client>_np@np_bf_<jobname> failed
83
########## Application cleanup ##########
84
Performing cleanup on : oracle
85
########## Application cleanup finished successfully ##########
86
########## Agent Workflow Finalization ##########
87
Agent Workflow Finalization started
88
[<AgentIP>:9090 (4.1.1.1)] Finalized workflow with id 205
89
Agent Workflow Finalization finished successfully
90
########## Snap Creator Framework 4.1.1P3 failed ##########
91
########## PRE EXIT COMMANDS ##########
92
[<AgentIP>:9090 (4.1.1.1)] Executing Pre Exit command [/opt/netapp/appscript/orautil_prepost.sh oracle <dbinstance> post FAILED] on <AgentIP>
93
[<AgentIP>:9090 (4.1.1.1)] At least one command is not allowed to be executed remotely
94
Task: alertOnError with config:<client>_np@np_bf_<jobname> failed
4 REPLIES 4

Re: Snap Creator/Snapdrive integration ERROR:At least one command is not allowed to be executed remo

Hi,

 

Could you please check the following:

Update the allowed_commands.config file to contain commands in the following format:
command:/bin/su - oracle -c "/home/scripts/script.sh TEST PASS"

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: Snap Creator/Snapdrive integration ERROR:At least one command is not allowed to be executed remo

Chris,

Login to your agent via ssh.

Go to <snapcreator_install_path>/scAgent4.1.1/etc

vi allowed_commands.config file and insert your script name (full path)

command: "/opt/netapp/appscript/orautil_prepost.sh"    

Remember to include a space after command:

 

The commands entered in allowed_commands.config are case sensitive and must exactly match the commands as seen in the configuration file, including capitalization and quotaion marks.

 

 

Every time, you modify the allowed_commands.config, you must restart the agent.

<snapcreator_install_path>/scAgent4.1.1/bin/scAgent restart

 

Thanks,
Siva Ramanathan

 

Re: Snap Creator/Snapdrive integration ERROR:At least one command is not allowed to be executed remo

Thanks Siva. This fixed the issue (the space after the command!, who knew?? 😜 )


Chris

 

Re: Snap Creator/Snapdrive integration ERROR:At least one command is not allowed to be executed remo

Thanks for the response. Adding the space after the command (per Siva) resolved issue.

 

Chris

Review Banner
All Community Forums
Public