Sponsored Content
Full Discussion: Testing for valid DC's?
Top Forums UNIX for Dummies Questions & Answers Testing for valid DC's? Post 302417168 by MrEddy on Wednesday 28th of April 2010 06:22:46 PM
Old 04-28-2010
Well I wound up doing a bunch of things...

1 - it looks at smb.conf to pull the domain name
2 - takes that name and resolves it to the IP's in A record then attempts to ping each IP in there
3 - Takes each IP and does wbinfo -I to see if it has a netbios name record
4 - Does a dig against each IP to check for a kerberos SRV record

Then basically does a bunch of cross compares with all the files generated to tell me which IPs can be reached and which cant. Plus which IPs are in the A record but have no Kerberos record. etc etc.

Thus far it works pretty well.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Is this a valid statement?

I need an if statement that recognizes whether files fitting a certain pattern exist in the current directory. Is this syntax valid: if ; then ... fi assuming that zero="0" and star="*". Is there a better way to write it? (3 Replies)
Discussion started by: mharley
3 Replies

2. Programming

valid code?

hey , everyone. I have a few questions about pieces of code and was wondering if someone could tell me what exactly they did or if they are even valid. bool1 && bool2 || bool3 <---in what order do these get processed? if (! isdigit(c)) <---What does this do? i = j % 3; <---what does this do?... (4 Replies)
Discussion started by: bebop1111116
4 Replies

3. Shell Programming and Scripting

': not a valid identifier

I am trying to write a bash script. I am able to do simple things like pass arguments, assign variables and echo the results. However, when I try to declare and array or anything a little more complicated I get ': not a valid identifier Here is my code so far: #!/bin/bash echo start t... (7 Replies)
Discussion started by: script123
7 Replies

4. Programming

is it valid output ?

#include <iostream> #include<stdio.h> using namespace std; class a { public: int xx; a() { cout << "in CONS a \n"; } ~a() { cout << "in DES a \n"; } }; (1 Reply)
Discussion started by: crackthehit007
1 Replies

5. Shell Programming and Scripting

Specified substitution not valid for

Experts, In a script i get the following error: The specified substitution is not valid for this command Do you have any idea what is wrong with it? TITLE="Code Checker" # Script Titel # EXT="_UA99" # Eind van dirnaam # FILE="job.dat" # Zoekbestandsnaam # SEARCH="returncode 0" #... (1 Reply)
Discussion started by: klaasjan
1 Replies

6. Homework & Coursework Questions

Valid Name

Could someone help me by midnight tonight!!! Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Insert a reference to the Bourne shell as the command... (0 Replies)
Discussion started by: cody007
0 Replies

7. UNIX for Dummies Questions & Answers

Is this valid tar statements ?

Hello every one, Is this a valid tar statement ? tar cv /dev/rmt/0 /etc tar cx /dev/rmt/0 /opt tar c /dev/rmt/0 and what is there effect ? Thanks in advance. (3 Replies)
Discussion started by: drdigital_m
3 Replies

8. UNIX for Dummies Questions & Answers

Script to see if a username is valid.

This is my task: The argument enter on the command line is a first and last name ( for example: "John Smith"). If the argument is a validly formatted name, you display The "name enter" is valid to standard out. If the argument is not a validly formated name, you display The "name enter" is... (1 Reply)
Discussion started by: TheRealNapsta
1 Replies

9. Shell Programming and Scripting

PL/SQL: Specified Number Is Not Valid

Hi I have Unix shell script that invokes PL/SQL procedure. The batch job when executed terminated with the error message:-unlimited: The specified number is not valid for this command.Please let me know what is the root cause of the issue and how to fix the issue. Thanks (1 Reply)
Discussion started by: moonkhan1
1 Replies
Testing.randomValue(3kaya)				       Kaya module reference					Testing.randomValue(3kaya)

NAME
Testing::randomValue - Return a random value SYNOPSIS
Arbitrary randomValue( Int depth=10 ) ARGUMENTS
depth This parameter gives the maximum depth of recursion to guarantee that the value has finite size. The default value is 10 and can usu- ally be omitted. DESCRIPTION
Return a random value of arbitrary type. AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ LICENSE
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. RELATED
Testing.randomArray(3kaya) Testing.randomChar(3kaya) Testing.randomFloat(3kaya) Testing.randomInt(3kaya) Testing.randomString(3kaya) Kaya October 2012 Testing.randomValue(3kaya)
All times are GMT -4. The time now is 03:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy