Listing 3 Getlogs
#!/bin/ksh # # Tom Kranz - [email protected] # # getlogs # Get the log files from the server with the Symm and run # Orca to generate the performance HTML pages. # Running into limits on open files, so .... ulimit -n 1024 # Use rsync to copy across the files # NOTE: change <your_symmetrix_host> to the IP of the remote host # that's connected to the Symmetrix /usr/local/bin/rsync -v -a --rsh=/usr/local/bin/ssh \ --rsync-path=/usr/local/bin/rsync \ --timeout=60 \ <your_symmetrix_host>:/var/log/probe/ \ /usr/local/orca/logs/symmetrix # Run ORCA /usr/local/orca/bin/orca -o /usr/local/orca/lib/symmetrix_orcallator.cfg # Copy the files across to your live html directory # NOTE: change <your_live_html_dir> to the directory where your web # server looks for it's html files cp -rp /usr/local/orca/html/symmetrix/* <your_live_html_dir> # We're done! exit 0