BigMemory 4.4.0 | Product Documentation | BigMemory Max Security Guide | Introduction to Security | Using Scripts Against a Server with Authentication
 
Using Scripts Against a Server with Authentication
A script that targets a secured Terracotta server must use the correct login credentials to access the server. If you run a Terracotta script such as backup-data or server-stat against a secured server, pass the credentials using the -u (followed by username) and -w (followed by password) flags.
For example, if Server1 is secured with username "user1" and password "password", run the server-stat script by entering the following:
UNIX/LINUX
[PROMPT]${TERRACOTTA_HOME}/server/bin/server-stat.sh -s Server1 -u user1
-w password
MICROSOFT WINDOWS
[PROMPT]%TERRACOTTA_HOME%\server\bin\server-stat.bat -s Server1 -u user1
-w password