summaryrefslogtreecommitdiff
path: root/source3/utils/net_help.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-12-01 13:58:43 +0000
committerVolker Lendecke <vlendec@samba.org>2003-12-01 13:58:43 +0000
commit000b39a682ce47f3cb0cf3509a3e483474f966db (patch)
treed6c2efff8d61c215b0b889455bc4e5166d55ef52 /source3/utils/net_help.c
parentf7dfa789c1601d92a76fe0804b095f6931a93246 (diff)
downloadsamba-000b39a682ce47f3cb0cf3509a3e483474f966db.tar.gz
samba-000b39a682ce47f3cb0cf3509a3e483474f966db.tar.bz2
samba-000b39a682ce47f3cb0cf3509a3e483474f966db.zip
I needed a decently parseable format of smbstatus. Looking at smbstatus code
tells me that this should not be expanded, so I implemented net status [sessions|shares] [parseable] Volker (This used to be commit 63d877c6b4786dcddf5f389842f798857be282c0)
Diffstat (limited to 'source3/utils/net_help.c')
-rw-r--r--source3/utils/net_help.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/utils/net_help.c b/source3/utils/net_help.c
index 514cf1af1b..e444978ea8 100644
--- a/source3/utils/net_help.c
+++ b/source3/utils/net_help.c
@@ -149,6 +149,15 @@ int net_help_file(int argc, const char **argv)
return -1;
}
+int net_help_status(int argc, const char **argv)
+{
+ d_printf(" net status sessions [parseable]"
+ "\t\t\tShow list of open sessions\n");
+ d_printf(" net status shares [parseable]"
+ "\t\t\tShow list of open shares\n");
+ return -1;
+}
+
static int net_usage(int argc, const char **argv)
{
d_printf(" net time\t\tto view or set time information\n"\
@@ -162,6 +171,7 @@ static int net_usage(int argc, const char **argv)
" net setlocalsid SID\tto set the local domain SID\n"\
" net changesecretpw\tto change the machine password in the local secrets database only\n"\
" \tthis requires the -f flag as a safety barrier\n"\
+ " net status\t\tShow server status\n"\
"\n"\
" net ads <command>\tto run ADS commands\n"\
" net rap <command>\tto run RAP (pre-RPC) commands\n"\