mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
r8584: added --nbt option to smbstatus for nbt server statistics
(This used to be commit 26a676a4e3
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
ef948e53b7
commit
cb060f8bac
@ -70,3 +70,24 @@ function smbsrv_trees()
|
||||
ret.length = count;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
return nbtd statistics
|
||||
*/
|
||||
function nbtd_statistics()
|
||||
{
|
||||
var conn = new Object();
|
||||
var irpc = irpc_init();
|
||||
status = irpc_connect(conn, "nbt_server");
|
||||
if (status.is_ok != true) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var io = irpcObj();
|
||||
io.input.level = irpc.NBTD_INFO_STATISTICS;
|
||||
status = irpc.nbtd_information(conn, io);
|
||||
if (status.is_ok != true) {
|
||||
return undefined;
|
||||
}
|
||||
return io.results[0].info.stats;
|
||||
}
|
||||
|
Reference in New Issue
Block a user