summaryrefslogtreecommitdiff
path: root/source3/utils/net_help.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-12-01 14:02:24 +0000
committerVolker Lendecke <vlendec@samba.org>2003-12-01 14:02:24 +0000
commit04cc05b6b0354bf3250a501790319204feda9760 (patch)
tree56d77d60dcaaeb0ddd39288a9445516c528cfb5c /source3/utils/net_help.c
parent40a50473c4987b804d9401c0ae97110eedcca4f9 (diff)
downloadsamba-04cc05b6b0354bf3250a501790319204feda9760.tar.gz
samba-04cc05b6b0354bf3250a501790319204feda9760.tar.bz2
samba-04cc05b6b0354bf3250a501790319204feda9760.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 ed38341c8a6454a8ec0f8240d83239f6869536b8)
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"\