Cisco Cisco NSS322 2-Bay Smart Storage Referencia técnica

Descargar
Página de 4
How to Add Items to crontab 
 
© 2010 Cisco Systems, Inc. All rights reserved. 
Page 2 of 4 
Before You Begin 
 
This application note describes advanced features for Linux administrators.    
 
All command line changes are only for advanced users.  Beware that improper 
configuration using the command line may disable your Smart Storage device and could 
possibly result in lost data. 
 
Command line configuration is an unsupported feature intended for advanced 
administrators only.   
 
Cisco Small Business Support Center will not be able to help debug command line 
configuration issues. 
 
For assistance, utilize the resources listed in the For More Information section.  
View Content of the Crontab 
 
Login to your NAS using telnet. 
 
Type crontab 
–l 
 
You will see a small list of crontab entries. 
 
Edit Crontab 
 
Type crontab 
–e 
 
The crontab will be shown inside a vi session.  Edit the crontab as you wish. 
 
Once you have edited the crontab, execute the following command to activate it. 
/etc/init.d/crond.sh restart 
 
Save Changes So After Restart, Changes Are Still There 
 
If you restart your NAS without following the steps below, you will find that all your custom 
entries will not exist on the crontab. 
 
To prevent loss of your work, use autorun.sh or autorunmaster and a custom script for 
changing the crontab.