#!/bin/bash #============================================================================== # Copyright and license info is available in the LICENSE file included with # the Server Deployment Package (SDP), and also available online: # https://swarm.workshop.perforce.com/projects/perforce-software-sdp/view/main/LICENSE #------------------------------------------------------------------------------ # This script is used to check the status of all the instances running on this machine. # It can handle named and numbered instances. echo "=========================================="; echo "| SDP Server Status for $totalServers instances |"; echo "=========================================="; FILES_LIST="$(ls /p4/*/root/db.have 2>/dev/null)" for file in $FILES_LIST; do serverName=$(echo $file | cut -f3 -d/) /p4/$serverName/bin/p4d_$serverName\_init status | grep ^ServerID: /p4/$serverName/bin/p4d_$serverName\_init status | grep uptime /p4/$serverName/bin/p4d_$serverName\_init status | grep root /p4/$serverName/bin/p4d_$serverName\_init status | grep version echo "=========================================="; done
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 26652 | Robert Cowham |
This is Tom's change: Introduced new 'Unsupported' directory to clarify that some files in the SDP are not officially supported. These files are samples for illustration, to provide examples, or are deprecated but not yet ready for removal from the package. The Maintenance and many SDP triggers have been moved under here, along with other SDP scripts and triggers. Added comments to p4_vars indicating that it should not be edited directly. Added reference to an optional site_global_vars file that, if it exists, will be sourced to provide global user settings without needing to edit p4_vars. As an exception to the refactoring, the totalusers.py Maintenance script will be moved to indicate that it is supported. Removed settings to support long-sunset P4Web from supported structure. Structure under new .../Unsupported folder is: Samples/bin Sample scripts. Samples/triggers Sample trigger scripts. Samples/triggers/tests Sample trigger script tests. Samples/broker Sample broker filter scripts. Deprecated/triggers Deprecated triggers. To Do in a subsequent change: Make corresponding doc changes. |
||
#2 | 22337 | Russell C. Jackson (Rusty) | Added +x to file types. | ||
#1 | 17229 | Dale Sumbler | SDP server status for Unix only. |