Difference between revisions of "F5 backup"

From UVOO Tech Wiki
Jump to navigation Jump to search
Line 29: Line 29:
 
or  
 
or  
 
util.bash.exec_cmd
 
util.bash.exec_cmd
 +
 +
 +
## API Timeout
 +
- https://my.f5.com/manage/s/article/K94602685
 +
 +
### Increase timeout values:
 +
```
 +
tmsh modify sys db icrd.timeout value 180
 +
 +
tmsh modify sys db restjavad.timeout value 180
 +
 +
tmsh modify sys db restnoded.timeout value 180
 +
```
 +
 +
### Save changes and restart related services:
 +
```
 +
tmsh save sys config
 +
 +
tmsh restart sys service restjavad
 +
 +
tmsh restart sys service restnoded
 +
```

Revision as of 14:48, 31 August 2023

https://github.com/sebastien6/f5-backup

https://support.f5.com/csp/article/K13132

https://my.f5.com/manage/s/article/K13132

tmsh save sys ucs $(echo $HOSTNAME | cut -d'.' -f1)-$(date +%H%M-%m%d%y)

restore

tmsh load /sys ucs <path/to/UCS> no-license

simple script

file=$HOSTNAME.$(date +%Y-%m-%dT%H-%M-%S)
tmsh save /sys ucs $file passphrase changeme
tmsh list /sys ucs
sftp foo@example.com <<< "put /var/local/ucs/$file"
tmsh delete sys ucs $file

no private keys

tmsh save /sys ucs $file passphrase changeme no-private-key

or util.bash.exec_cmd

API Timeout

Increase timeout values:

tmsh modify sys db icrd.timeout value 180

tmsh modify sys db restjavad.timeout value 180

tmsh modify sys db restnoded.timeout value 180

Save changes and restart related services:

tmsh save sys config

tmsh restart sys service restjavad

tmsh restart sys service restnoded