Data Backup and Recovery

SnapCreator 3.4.0 Pre & Post Clone

cferbrache
6,736 Views

When trying to run a pre & post clone command I get the following error:

########## PRE CLONE COMMANDS ##########
[Fri Jul 15 22:15:10 2011] INFO: Running pre clone command PRE_CLONE_CREATE_CMD01 [/usr/local/scAgent3.4.0/config/preclone_cmd_v2.sh]
[Fri Jul 15 22:15:10 2011] DEBUG: Executing command [/usr/local/scAgent3.4.0/config/preclone_cmd_v2.sh]
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Command [/usr/local/scAgent3.4.0/config/preclone_cmd_v2.sh] finished with
exit code: [1]
stdout: []
stderr: [At least one command is not allowed to be executed remotely]
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Reloading configuration from /usr/local/scAgent3.4.0/config/agent.conf
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Reloading configuration finished with
exit code: [0]
stdout: []
stderr: []
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Adding [/bin/echo] to the allowed regex pattern
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Adding [/bin/date] to the allowed regex pattern
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Adding [/etc/init.d/iscsi] to the allowed regex pattern
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Adding [/bin/sleep] to the allowed regex pattern
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Adding [/sbin/pvscan] to the allowed regex pattern
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Adding [/sbin/vgscan] to the allowed regex pattern
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Adding [/sbin/vgchange] to the allowed regex pattern
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Adding [/usr/sbin/lvscan] to the allowed regex pattern
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Adding [/bin/mount] to the allowed regex pattern
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Adding [/bin/service] to the allowed regex pattern
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Adding [/usr/local/scAgent3.4.0/config/postclone_cmd_v2.sh] to the allowed regex pattern
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Adding [*] to the allowed regex pattern
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Wildcard "*" found, allowing all commands
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] DEBUG: Validating command/sequence [/usr/local/scAgent3.4.0/config/preclone_cmd_v2.sh]
[Fri Jul 15 22:15:10 2011] [leo:9090(3.4.0.1)] ERROR: [agt-00011] Command [/usr/local/scAgent3.4.0/config/preclone_cmd_v2.sh] is not allowed
[Fri Jul 15 22:15:10 2011] ERROR: [scf-00103] Running pre clone command [/usr/local/scAgent3.4.0/config/preclone_cmd_v2.sh] failed with exit code [1] and message [At least one command is not allowed to be executed remotely]

########## PRE CLONE COMMANDS FINISHED WITH FAILURES ##########

########## PRE EXIT COMMANDS ##########
[Fri Jul 15 22:15:10 2011] INFO: No commands defined

########## PRE EXIT COMMANDS FINISHED SUCCESSFULLY ##########

1 ACCEPTED SOLUTION

ktenzer
6,734 Views

Can you please try moving your script to temp

/usr/local/scAgent3.4.0/config/postclone_cmd_v2.sh

so

/tmp/postclone_cmd_v2.sh

Then updating config file to go to /tmp/postclone_cmd_v2.sh and tryining again? I think we dont allow anything to run under scAgent3.4.0 directory for security reasons.

This does work believe me, just need to find out what is issue in your env

Also if you could send me agent.conf that would be helpful, the way it is now and Snap Creator config file?

Keith

View solution in original post

12 REPLIES 12
Public