summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/smbstatus
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-19 04:26:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:40 -0500
commita32fe0f293fb86d69f3f7001daac2614adfb6b98 (patch)
tree5f4477d2e4a04c2855ec1d1ce38aa704dc11ffb6 /source4/scripting/bin/smbstatus
parentf3d61cc61545605cb8ea07b21b07577ccde4e1e8 (diff)
downloadsamba-a32fe0f293fb86d69f3f7001daac2614adfb6b98.tar.gz
samba-a32fe0f293fb86d69f3f7001daac2614adfb6b98.tar.bz2
samba-a32fe0f293fb86d69f3f7001daac2614adfb6b98.zip
r8577: added management calls to list current tree connects
(This used to be commit 658befc1e4df44bee1f365a730951001f0f36640)
Diffstat (limited to 'source4/scripting/bin/smbstatus')
-rwxr-xr-xsource4/scripting/bin/smbstatus11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/scripting/bin/smbstatus b/source4/scripting/bin/smbstatus
index fd3009012b..9f7566a642 100755
--- a/source4/scripting/bin/smbstatus
+++ b/source4/scripting/bin/smbstatus
@@ -21,6 +21,17 @@ if (ok == false) {
var sessions = smbsrv_sessions();
+if (sessions == undefined) {
+ println("No sessions");
+ exit(0);
+}
printVars(sessions);
+var trees = smbsrv_trees();
+if (trees == undefined) {
+ println("No trees");
+ exit(0);
+}
+printVars(trees);
+
return 0;