What are the commands used by zones probe to retrieve respective zones CPU/Memory Utilization etc?

Document ID : KB000069285
Last Modified Date : 25/05/2018
Show Technical Document Details
Question:

What are the commands used by zones probe to retrieve respective zones CPU/Memory Utilization etc?

 

 

 

Environment:
UIM 9.0 and earlier
zones probe 1.31 and earlier
Answer:

All the commands are actually logged in the logs if you put the loglevel up to 5.

Here is a representative sample of the commands coming from the probe, which we have extracted from the logs in our own test lab:

Jun 13 14:26:23:215 [DC#0, zones] Command: "uname -srn" completed in 230 ms
Jun 13 14:27:01:106 [Thread-39, zones] Command: "uname -srn" completed in 220 ms
Jun 13 14:27:01:426 [Thread-39, zones] Command: "zoneadm list -cv" completed in 317 ms
Jun 13 14:27:19:883 [DC#2, zones] Command: "uname -srn" completed in 231 ms
Jun 13 14:27:20:223 [DC#2, zones] Command: "zoneadm list -cv" completed in 331 ms
Jun 13 14:27:20:573 [DC#2, zones] Command: "uptime" completed in 349 ms
Jun 13 14:27:20:913 [DC#2, zones] Command: "pfexec zlogin dirkZone1 uptime" completed in 339 ms
Jun 13 14:27:21:624 [DC#2, zones] Command: "pfexec zlogin jinozone uptime" completed in 710 ms
Jun 13 14:27:21:964 [DC#2, zones] Command: "pfexec zlogin dirkZone1 vmstat 1 2" completed in 339 ms
Jun 13 14:27:23:330 [DC#2, zones] Command: "pfexec zlogin jinozone vmstat 1 2" completed in 1366 ms
Jun 13 14:27:23:660 [DC#2, zones] Command: "ps -f -o s -z global" completed in 329 ms
Jun 13 14:27:24:001 [DC#2, zones] Command: "ps -f -o s -z dirkZone1" completed in 338 ms
Jun 13 14:27:24:341 [DC#2, zones] Command: "ps -f -o s -z jinozone" completed in 339 ms
Jun 13 14:27:25:740 [DC#2, zones] Command: "prstat -c -n1,3 -Z 1 2" completed in 1398 ms
Jun 13 14:27:26:283 [DC#2, zones] Command: "swap -s" completed in 541 ms
Jun 13 14:27:26:624 [DC#2, zones] Command: "pfexec zlogin dirkZone1 swap -s" completed in 340 ms
Jun 13 14:27:26:984 [DC#2, zones] Command: "pfexec zlogin jinozone swap -s" completed in 359 ms
Jun 13 14:27:27:334 [DC#2, zones] Command: "df -lk" completed in 349 ms
Jun 13 14:27:27:674 [DC#2, zones] Command: "pfexec zlogin dirkZone1 df -lk" completed in 336 ms
Jun 13 14:27:28:035 [DC#2, zones] Command: "pfexec zlogin jinozone df -lk" completed in 360 ms
Jun 13 14:27:30:385 [DC#2, zones] Command: "sar -b 1 2" completed in 2348 ms
Jun 13 14:27:30:725 [DC#2, zones] Command: "pfexec zlogin dirkZone1 sar -b 1 2" completed in 339 ms
Jun 13 14:27:31:075 [DC#2, zones] Command: "pfexec zlogin jinozone sar -b 1 2" completed in 349 ms
Jun 13 14:27:31:837 [DC#2, zones] Command: "netstat -i" completed in 762 ms
Jun 13 14:27:32:177 [DC#2, zones] Command: "pfexec zlogin dirkZone1 netstat -i" completed in 336 ms
Jun 13 14:27:32:527 [DC#2, zones] Command: "pfexec zlogin jinozone netstat -i" completed in 350 ms