You may have better support tools installed or the GUI version of stm, but here are a couple of basic cstm enquiries. The output is tatty but the information is there.
Code:
Memory layout and memory error counts (if any):
echo "selclass qualifier memory;info;wait;infolog"|cstm
Hardware including memory (providing it is HP memory) and other Field Replacable Units (FRU):
echo "selclass qualifier system;info;wait;infolog"|cstm
I believe i have most of samba configured right but i get this error each time time try to run it. I was given suggestion that i touch the file, i did, but i still cannot rid myself of this error.
Any suggestions (2 Replies)
Hello Folks,
On a Solaris 8 system I am trying to diagnosis memory usage of the running processes. I've been using prstat, and top , but the outputs of those include the shared memory used by the process. Hence, more a dozen of running processes are using the shared memory, and the total memory... (1 Reply)
i'm trying to find a way to monitor the CPU/Memory status of a solaris station using vmstat. I like to write a small script to periodically run vmstat and store the output. Can anyone show me how (preferrably in C++ if possible)? Thanks in advance. (6 Replies)
Hi Friends,
I need a help from you all.
In my machine which is on Solaris 9.
the command prtdiag -v shows the complete output but it doesn't show "Memory Module Groups status" status.
I have tried restarting the picl daemon, but still it doesn't work.
Memory Module Groups:... (2 Replies)
Hi All,
There is a shell script that captures Memory status in AIX 6.1 64 bits!
I need it to be validated by shell script experts for the following:
Shell Script:
cat memusageAIX.sh
#!/usr/bin/ksh
#
# Memory usage under AIX
#
USED=`svmon -G | head -2 | tail -1 | awk '{ print $3... (1 Reply)
hi ,
i want write the script which automatically send an alert mail to my mail id when there is low memory available.
things which i am able to implement -:
i got the output of current memory status into one file . Than i break down the required coloumn and again send it in another file.
My... (1 Reply)
Hello,
I have a HP ProLiant DL385 ( X86 ) running Solaris 10 on it.
Our hardware team passwd by server last night and noticed an amber light to indicate a possible bad dimm.
/var/adm/messages, dmesg, prtdiag -v, all shows nothing.
/opt/HPQhealth/sbin/hpasmcli indicated I have a bad... (5 Replies)
Which basically means the ldoms that were on there are not starting (not even showing).
If I do ldm list-config it shows live config as next reboot. But, of course, next reboot it reverts back to factory default again.
I must admit I'm wondering if its doing this becasue (with the... (3 Replies)
Discussion started by: psychocandy
3 Replies
LEARN ABOUT PHP
mysqli_stat
MYSQLI_STAT(3) 1 MYSQLI_STAT(3)mysqli::stat - Gets the current system status
Object oriented style
SYNOPSIS
string mysqli::stat (void )
DESCRIPTION
Procedural style
string mysqli_stat (mysqli $link)
mysqli_stat(3) returns a string containing information similar to that provided by the 'mysqladmin status' command. This includes uptime in
seconds and the number of running threads, questions, reloads, and open tables.
PARAMETERS
o $
link -Procedural style only: A link identifier returned by mysqli_connect(3) or mysqli_init(3)RETURN VALUES
A string describing the server status. FALSE if an error occurred.
EXAMPLES
Example #1
mysqli::stat example
Object oriented style
<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s
", mysqli_connect_error());
exit();
}
printf ("System status: %s
", $mysqli->stat());
$mysqli->close();
?>
Procedural style
<?php
$link = mysqli_connect("localhost", "my_user", "my_password", "world");
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s
", mysqli_connect_error());
exit();
}
printf("System status: %s
", mysqli_stat($link));
mysqli_close($link);
?>
The above examples will output:
System status: Uptime: 272 Threads: 1 Questions: 5340 Slow queries: 0
Opens: 13 Flush tables: 1 Open tables: 0 Queries per second avg: 19.632
Memory in use: 8496K Max memory used: 8560K
SEE ALSO mysqli_get_server_info(3).
PHP Documentation Group MYSQLI_STAT(3)