RFC. Checking MS Domains (simulating a 9x client logon to check health of DCs/File servers etc)

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Mon Jan 6 00:30:30 CET 2003


Dear Ladies and Gentlemen,

I am writing to ask how, if it is done at all, do people check the 
health of MS/Samba Domains ?

Why bother ?

Good point. The MS Domain and file servers are highly available. There
is a good case for not monitoring since they seldom fail.

However, if there is any interest in doing so I have some code that
should reveals faults in a Domain/File server by simulating a 9x
workstations actions in logging onto a domain ie

- broadcast /MAILSLOT/NET/NETLOGON to get list of DCs

- do a session setup with IPC$s share on one of them, calling
NetWkStaLogon to get the name of the Lanman logon script

- download the Lanman logon script from the NETLOGON share

- randomly select a share from one of the 'NET USE' statements in the 
logon script

- try a session setup with that share

If all this works, I am fairly confident the Domain is Ok (though some
of the member servers could be cactus).

The code is/or will be in the form of a Perl XS that wraps calls to the 
SMB function in libsmbclient (supplied with Samba 2.2.x, or the 
equivalent libraries in Samba-TNG. You must have these libraries 
installed - they are not part of the default Samba head install).

The code is actually good because so little of it comes from me !

Thank you,

Yours sincerely.
-- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list