Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 9:02 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
PostPosted: Fri Jul 27, 2012 3:43 am 
Offline
Helper

Joined: Fri Feb 19, 2010 1:02 am
Posts: 67
Location: Washington State, USA
Is there a way to audit a domain but skip certain computers? Like a list of our servers or something?

_________________
Server Info:
OA: v1.0.3
OS: Ubuntu 13.04 on Hyper-V for Website (LAMP)
OS: Windows Server 2008 R2 for Script (Domain Server)
Auditing: 366 Machines (XP/Win7/Ubuntu)
LDAP: Active Directory


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 27, 2012 7:03 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
Try this. I added skip_list and random_order arguments. The skip_list takes a file name with pc names one per line. If random_order is "y" then the domain list is mixed up a bit before auditing.

It may eat your cat and kill your dog but it shouldn't.


Attachments:
audit_domain -b6jpa.txt [10.33 KiB]
Downloaded 414 times
Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 27, 2012 7:23 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
While testing this I noticed that the output_file argument will append the list of computers to the file name given in the argument. If you run a domain audit multiple time with the output_file it will grow and grow until you manually remove the output_file before running an audit. Not sure if this is the intended behavior or not.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 27, 2012 9:09 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
[quote="jpa"]Not sure if this is the intended behavior or not.

Not - it should overwrite the file each time you run audit_domain.vbs (as opposed to after each domain).

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jul 28, 2012 2:27 am 
Offline
Helper

Joined: Fri Feb 19, 2010 1:02 am
Posts: 67
Location: Washington State, USA
This is sweet. I will test it right away. I love the random PC deal.

Also has anyone taken a look at my other question: viewtopic.php?f=20&t=5911

_________________
Server Info:
OA: v1.0.3
OS: Ubuntu 13.04 on Hyper-V for Website (LAMP)
OS: Windows Server 2008 R2 for Script (Domain Server)
Auditing: 366 Machines (XP/Win7/Ubuntu)
LDAP: Active Directory


Top
 Profile  
Reply with quote  
PostPosted: Sat Jul 28, 2012 3:59 am 
Offline
Helper

Joined: Fri Feb 19, 2010 1:02 am
Posts: 67
Location: Washington State, USA
Looks like it worked, and the random list cut down on my bandwidth usage per branch while the audit was running by quite a bit. Good work jpa.

_________________
Server Info:
OA: v1.0.3
OS: Ubuntu 13.04 on Hyper-V for Website (LAMP)
OS: Windows Server 2008 R2 for Script (Domain Server)
Auditing: 366 Machines (XP/Win7/Ubuntu)
LDAP: Active Directory


Top
 Profile  
Reply with quote  
PostPosted: Sat Jul 28, 2012 4:03 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
Yay! I just copy/pasted the randomize stuff from OAv1.


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 18, 2012 4:24 am 
Offline
Moderator

Joined: Fri Jul 20, 2007 8:27 am
Posts: 1259
Previous version didn't work when a skip_list wasn't supplied. Stupid bug. Fixed.

Also changed output_file open from FOR_APPENDING to FOR_WRITING which fixes the ever growing output_file problem.


Attachments:
audit_domain_skiplist.txt [10.34 KiB]
Downloaded 417 times
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group