PLEASE HELP
I have a list of server names and I need to determine their role or type, I did some homework yesterday and I found that using this;
Win32::Lanman::NetServerGetInfo($server, \%info, 1)
Will get me a lot of information but none of it refers to the type of the server (i.e. if it’s a PDC, BDC, DC, member server, SQL server, Exchange server, Notes server,.,..etc) I think so, although I am not sure.
Then I looked at NetServerEnum($server, $domain, $type, \@info) this won't fit my requirements because I have to specify that the type of server I am looking for.
I've searched few places that deals with perl still to no avail, I check Dave Roths books and other libraries such as AdminMisc and found almost every example or command deals with scanning a whole domain and retrieving a list of specific servers, I couldn't find anything anywhere that tests a server name for me and returns it type or Role, I have posted my question on PM and did not get any response, which leads me to think "Is this possible have I found something that Perl can't do at last"???
Your guidance is highly appreciated.
Many Thanks
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.