Welcome › Forums › Restricted content › Support and Demo Commands
- This topic has 0 replies, 1 voice, and was last updated 5 years, 7 months ago by Charles Herring.
- AuthorPosts
- March 9, 2019 at 4:23 pm #1946Charles HerringKeymaster
To erase all data on a deployment:
sudo docker exec -i ui php /var/www/html/laravel/artisan migrate:refresh --force
To create general demo data:sudo docker exec -i ui /bin/bash /var/www/html/laravel/demodata.sh
To create Cisco focused demo data:sudo docker exec -i ui /bin/bash /var/www/html/laravel/demodatacisco.bash
To backup the Users and Settings in a deployment/usr/bin/mysql -u witfooadmin --password=H8lazy#s -P 33060 -h mysqldactive.witfoo witfoodb users settings > backup.sql
To backup all data in a deployment/usr/bin/mysql -u witfooadmin --password=H8lazy#s -P 33060 -h mysqldactive.witfoo witfoodb > backup-full.sql
To restore Users and settings:/usr/bin/mysql -u witfooadmin --password=H8lazy#s -P 33060 -h mysqldactive.witfoo witfoodb < backup.sql
To reboot:sudo reboot now
To clear out docker cache:sudo service superintendent stop ; sudo service docker stop ; sudo rm -rf /data/docker/* ; sudo service docker start ; sudo service superintendent start
To check start statustail -f /var/log/witfoo-superintendent/status.log
To shutdown WitFoo Services:sudo service superintendent stop
To start WitFoo Services:sudo service superintendent start
To restart WitFoo Services:sudo service superintendent restart
To disable WitFoo automatic startssudo systemctl disable superintendent.service
To enable WitFoo automatic startssudo systemctl enable superintendent.service
To reset Admin password:mysql -u witfooadmin --password=H8lazy#s -P33060 -h mysqldactive.witfoo witfoodb -e "delete from users where id > 1;"
- AuthorPosts
- You must be logged in to reply to this topic.