VADP & Networker : Cannot fetch 'NSR hypervisor' resource
If you have the following error message when trying to restore a VADP backup, using EMC Networker 8:
"nsrvadp_recover: Cannot fetch 'NSR hypervisor' resource".
Be sure you use the same hostname for the virtual center during your recovery than the one defined in networker configuration! I had the IP address for the recovery and the hostname in Networker configuration, even if the DNS resolution was correct...
Networker configuration = Configuration->Virtualization
See more detail on how to configure the virtual center in the "Networker VMware Integration Guide"
Send mail with attachement
# uuencode myfile myfile | mail Cet adresse mail est protégé contre les spambots. Vous avez d'activer le javascript pour la visualiser.
Rem: type twice the file name!
Trigger on file/directory
download the package and install it.
http://wiki.github.com/rvoicilas/inotify-tools/
./configure
make
make install
Reload all librairies :
ldconfig
Create the following script which will monitor a directory if you create or move something in it:
monitor.sh
#!/bin/sh
while inotifywait -e create -e move /appli/dns/input; do
/usr/bin/perl /appli/dns/traitement.pl
done
Just start this script to monitor the directory.
Now if you want this script to be run in background, at boot, or somewhere else, you can use the screen commands to achieve this :
screen -d -m /appli/dns/monitor.sh
t will start your script in an already "detached terminal"