« first day (1416 days earlier)      last day (3560 days later) » 

6:00 PM
@MDMarra So you have a row like:
 
sounds like a job for awk
 
 something,something,2GB,something
 
right
 
@MDMarra is this an interview test?
 
I wish
Import-CSV stuff.csv | Foreach ($Row in $Rows) { $Row.GBValue } spits out 2GB with a type of String
 
[io.file]::readalltext("C:\fso\usersconsolidated.csv").replace("2GB","214748364‌​8") | Out-File c:\fso\replacedAtlanta.csv -Encoding ascii --Force
 
@RyJones Ya, I know how to match/replace/split. I was hoping there was an undocumented switch or something so that 2GB piped from a CSV is treated the same as 2GB when typed by itself in the shell
 
ah..
 
@Iain grits.ad.laspecialty.com
@MDMarra Do your DFS magic
 
@ewwhite i'm in
 
6:03 PM
@MDMarra One sec. testing... I thought either subexpression or casting would have done it, but not quite.
 
right
 
How the heck do you guys remember this stuff?
 
@cole Google remembers it for me
 
It's obviously not something super critical, as I can just hard code the value and convert
 
@NathanC true
 
6:05 PM
And what Google doesn't remember, the NSA does.
 
But it's more of a curiosity now
PS C:\Users\mmarra\Desktop> Get-Content .\test.txt
2GB
PS C:\Users\mmarra\Desktop> Get-Content .\test.txt | ForEach-Object {$var = $_}
PS C:\Users\mmarra\Desktop> $var
2GB
PS C:\Users\mmarra\Desktop> $var.GetType()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     String                                   System.Object


PS C:\Users\mmarra\Desktop> $var = 2GB
PS C:\Users\mmarra\Desktop> $var
2147483648
I mean I get why it behaves this way, as it's how you'd want to to work 99% of the time, but still...
I AM THE 1%
 
whomp
 
@MDMarra Maybe it's just PS internally interpreting it?
 
It is
That's exactly what it is
 
@MDMarra Ok, this works
$a = '2GB'
$a
$a / 1
 
6:09 PM
HAHA
that works?
 
PS C:\Users\fnc> $a = '2GB'
PS C:\Users\fnc> $a
2GB
PS C:\Users\fnc> $a / 1
2147483648
PS C:\Users\fnc>
yep
 
$a retains a literal String and you can cast it on the fly with mathmagicks.
 
@ewwhite Totally depends on the businezz
 
that is awesome
thank you
come work with me any time
 
@JoelESalas vegetables
 
6:09 PM
np, just have to think like those .Net developers.
 
I should learn more powershell...
 
@NathanC you and me both dude
 
nice
 
@jscott If working part time at a kayak shop doesn't pan out... :)
 
@MDMarra Cool part is, you can manipulate it as if 2GB stood for 2147483648
PS C:\Users\fnc> $a
2GB
PS C:\Users\fnc> $a - 0
2147483648
PS C:\Users\fnc> $a - 1
2147483647
 
6:12 PM
I'm still not sure why a direct cast fails, guess it's the 'GB' part of the string.
 
@jscott Might be how PS interprets it internally
 
I'm about as productive as a grandma on Windows 8 today
buh
 
@jscott ya, that's what tripped me up
 
@NathanC Well, yes, it is an interpretive shell. :)
 
But the fact that you can still..uh.. math it.
 
6:14 PM
Math is hard, let's go shopping.
3
 
Didnt think to even try after directly casting it failed
@jscott OK
 
@MDMarra Isn't powershell .Net based? Because .Net doesn't make sense...I'm fairly sure the folks who wrote .Net don't understand it.
 
ya it's all .net
you can call .net assemblies directly if you want from powershell
 
powershell scripts can contain C# basically
 
0
Q: Need to add 50 users with specific uid range, identified userid list, custom user comment and custom primary group

user3870374I am using centOS in an administration class, I do not want all the answers as I know that is taboo here for understandable reasons. But I would appreciate a nudge in the correct direction with a little explanation along the way. I am trying to write a shell script to read my roster of 50 userid...

 
6:15 PM
In fact, you used to have call .NET directly if you wanted to zip a file before PowerShell 3.0
 
@FalconMomot Heh...I've written a few short programs in c#...a foot in the door for PS? :p
 
@NathanC as far as .net is concerned, yeah
 
@MichaelHampton yes?
 
2 hours and 14 minutes to gooooo
 
@cole ouch
 
6:17 PM
@MichaelHampton good real-life exercise
 
@FalconMomot Does it belong on SO, does it belong on SF, or does the user belong in a mental institution?
 
this day is dragging.
 
@MDMarra this all reminds me of that old c trick of operating on characters
 
@MichaelHampton well here it would have been closed, even though it shouldn't have been, and it's clearly on topic here
you know what we need? some clear examples of marginally-professional questions that are acceptable because they will generate useful answers that professionals could benefit from.
 
I have an easy CentOS question
 
6:19 PM
so that we can say that we don't care if someone is a student as long as their question is appropriate.
 
@cole My soul is slowly being sucked away by this XP machine I'm setting up...
 
@NathanC oh ouch dude
 
@NathanC use windows 8.1 by accident
 
@NathanC At least today is the last day you'll ever have to run Windows Updates on it.
 
@NathanC why XP?
 
6:20 PM
And surprise surprise, all the shortcuts I ported over are broken
yay!
 
I got word we have some extra money to upgrade the XP machines
 
@cole Because I don't have a W7 license
 
@NathanC >.<
 
@jscott Yeah, but it takes all day to run Windows Update on it.
 
It's technically a temporary machine until we get new ones ordered
 
6:21 PM
Is there a way I can check a client for whether or not it's still a member of the domain
 
@BigHomie Press ctrl+alt+del?
 
and it was already "built"...just fussy and would lock up when running AutoCAD
but now it's just a simple office machine so it should be fine...
 
@jscott sorry, I meant after I've logged in, in the off chance it cached my creds
 
@BigHomie do you mean "has expired out" or "was never a member of the domain"?
 
@RyJones has expired
 
6:22 PM
 
@BigHomie netdom verify?
 
@FalconMomot Boing!
 
@BigHomie in my experience you can't log in with cached credentials on a machine that has expired out.
 
@BigHomie Test-ComputerSecureChannel
 
@NathanC exactly
 
6:23 PM
@jscott or that
 
We have machines we keep plugged in and turned on just so they don't lose domain membership
 
@jscott that's interesting.
 
(sadly, I forgot to power up some W8 vms and they're now detached from the domain)
 
hm and it has a repair switch? Very interesting.
 
@jscott thnx
 
6:24 PM
Add that to the list
 
@cole Or nltest /SC_QUERY:example.com as well.
 
@RyJones you can, unless that machine is actually connected to the domain's network
 
@jscott that's the one I was thinking of
 
Dammit, I'm losing my mind.
 
6:25 PM
okay that's weird
 
@BigHomie you're right
 
I had the account set up as a power user initially...shortcuts were all invalid
 
I have a question - @MDMarra and @jscott you may know
 
as soon as I switched it to administrator, suddenly shortcuts!
 
6:26 PM
So I raised the DFL to 2008 and the objectClass attribute is supposed to be (by default) indexed now - how long does that indexing take though?
 
TIL The Game is a thing?
The Game is a mental game where the objective is to avoid thinking about The Game itself. Thinking about The Game constitutes a loss, which must be announced each time it occurs. It is impossible to win most versions of The Game and few scoring systems exist. Depending on the version of The Game, the whole world, or all those aware of the game, are playing it all the time. Origins of The Game are unknown; a similar game played by Leo Tolstoy dates back to 1840. The Game has received media attention in several different countries and the number of players is estimated to be in the millions. ��2...
 
damnit @BigHomie
I was doing so well :(
 
lol
 
The DC the Sametime server is doing LDAP lookups against is still pegged at 100% CPU usage (12 vCPUs)
 
@cole Can take a while depending on how large your AD is. Indexes aren't replicated though
So each DC builds its own index
so if you have a DC thats constantly hammered....it could take a very long time for it to build an index
 
6:28 PM
@MDMarra very long time...i.e. days, weeks, months, years?
 
@cole Very Long Timeâ„¢
 
Sometimes I just want to smash things.
 
Well, normally minutes to tens of minutes but I've never counted for something as widely used as objectClass
and never on a 12 core DC with 100% utilization :)
 
But there's no way to check?
 
When you inspect the Schema do you see the object as indexed in the snap-in on the Schema Master?
 
6:30 PM
hmm...SCCM hasn't tossed forefront on the machine yet...
I'm ready for Monday to be over.
 
Ditto @NathanC something about today.,
 
@MDMarra checking now
 
@MDMarra how'd you become a guru?
 
@BigHomie I read a lot and then broke a lot of stuff
 
I mean, I've read the meta post, but elaborate
@MDMarra interesting
@MDMarra pure technet?
 
6:33 PM
but it was important stuff, so I had to learn how to fix it really really quickly
technet, here, askDS blog
 
Getting the classic 800B001 error...on 2012R2
wat
 
but yeah, no secret sauce
 
I assume everyone is closing okcupid accounts now? no?
 
@RyJones What did I miss there?
 
Of course I can't find the Schema snapin
@RyJones closed mine - but why
 
@BigHomie I spent my first few sysadmin years in an environment where I had free reign to learn whatever I wanted and a boss that let me script/automate/deploy however I saw fit. So some people are terrified to do large scale automation and avoid it. For me, I didn't know that I was supposed to be scared at that scale with such little experience
 
Interesting @RyJones
Augh, why can't I find this snap-in!?
 
as vocal as people were about facebook, I hope this blows up in okc's face
 
I've never learned the "I should be scared about this" lesson either.
 
@cole regsvr32 schmmgmt.dll
 
6:36 PM
I did that
 
then mmc.exe and find the snap in for schema management
 
Gave me an error.
 
Launching mmc.exe throws an error?
 
No - trying to register it
 
@cole You can check searchFlags to see if the attribute has been marked "index".
Mar 1 '13 at 15:31, by jscott
15 mins ago, by jscott
Get-ADObject -SearchBase (Get-ADRootDSE).SchemaNamingContext -Filter { Name -eq "Object-Category" -or Name -eq "Object-Class" } -Properties SearchFlags |
    Format-Table -AutoSize -Property Name, SearchFlags
 
6:38 PM
You doing it from an elevated command prompt on a computer with the AD RSAT tools involved?
 
Ah I got it
 
@BigHomie So I did an awful lot of useful stuff early on that a lot of people don't get to do, but I also broke an awful lot of stuff at a large scale and had to learn to fix it quickly
 
I can't fucking type.
@jscott oh that's interesting
 
@MDMarra I'm in an environment like that...just constrained by "budget, what budget?"
 
@MDMarra I see, that's good it worked out well for you
 
6:39 PM
It's not indexed
 
Also worth noting that objectClass is multi-valued, where as objectCategory is single valued.
 
You. Bitch. Active Directory.
 
@cole a lot of that stuff is only true if its a new install
are you sure raising the functional level automatically indexes that?
 
I want to punch so many things in the dick right now.
Must be by default on fresh install.
Mother fuckity fuck
 
Strict replication consistency is another example. On by default in everything 2003 or newer. Not if you upgrade from NT4 or win 2k
@cole it's just one check box away
 
6:40 PM
2003 was where we started
They didn't implement AD until 2007
 
Right, just meant that lots of things default to a value with 2008+ but arent automagically changed when upgrading an older AD
 
Our domain did not update seachFlags on objectClass when we moved to 2008R2. Hence that ugly code above wherein I found out.
 
that wasnt a specific example
 
@MDMarra yeah I'm finding that out now.
Fucking aye
 
youre in the snap in already
 
6:41 PM
what does Index this attribute for containerized searches mean
 
just tick the box, bro
3
 
hngg insufficient privs
Why does my life hurt
 
Schema Admins only please. :)
 
well guess who's going to be a fucking Schema Admin in about 2 seconds here.
 
containerized searches are, I believe (and correct me if I'm wrong, @jscott) one-level searches only
 
6:43 PM
 
Trying to be good at everything/know everything is killing my brain.
 
@cole you can't do that, so why try?
 
@BigHomie "This is IRIX. I loathe this."
 
Now I just suck at everything.
3
 
@cole Double edged sword. I miss working with storage, 802.11, etc
 
6:45 PM
@MDMarra I'm doing too much
 
But I can help with your AD Schema
it works both ways
 
Linux, Unix, Windows, AD, VMware, Storage, Notes/Domino (now), Websphere, IBM Connections, DB2, MS SQL, etc
I just can't stuff it all in my brain anymore
 
Fuck those after #7
my eyes went offline. great. who didn't setup alerting oh wait I didn't
/me flaggulates himself
 
@cole Yeah, stop trying. Especially that useless IBM crap. Shove that out of your brain and make room for useful knowledge.
 
Fucking attribute is indexed.
 
6:48 PM
There's a lot of money in IBM tech, dude
Lots of people have no idea how to migrate off of it :D
 
haha
I can't make this shit up
 
@AdamC flaggulate - word od the day
@cole that DC wont build an index until replication occurs
so you may want to force replication if sametime is in a different site
 
Alright
 
Well, if that DC is in a different site, i should say
 
same site
 
6:49 PM
Ok, so then you just wait for it to find the cycles to actually build the index
 
probably not until tonight
no way of checking the index, right?
 
I'm sure you can with eseutil or something
But I've never ever queried an AD database directly like that
 
hopefully tomorrow it'll be fine
 
What's cole trying to do anyhow
 
you may be able to point @jscott's query at that scpecific DC. I'm sure it has a -server ot -computername switch
 
6:51 PM
@AdamC index the ObjectClass attrib in AD
Our Sametime does LDAP queries to the server almost constantly - since it's not indexed it causes heavy CPU load
 
@MDMarra That will only tell you the searchFlags on those attributes. Not if the actually indexification is complete or not
 
ohh right, that is what he was asking
yeah not sure how to look at that then without inspecting the database directly, which I'm not sure is actually even supported
 
Fuck it
we'll find out tomorrow.
 
just check if the flag is set
if it is, disable the NIC
;)
how many sametime users do you have?
 
Name SearchFlags
---- -----------
Object-Class 9
Object-Category 1
 
I'm learning shit today!
Cool.
 
I'd be curious to see the LDAP filters used by SameTime. I wonder if there's other syntax improvements available for your needs.
 
yeah, that was my thought as well
 
@jscott they did cut it down
 
even the shittiest queries would need to be absolutely crushing to peg a 12vCPU box
 
6:57 PM
I think they tried to cut it down more and then everything broke
 
How many total sametime users, @cole?
Roughly, of course
 
@MDMarra hmm
 
1,000? 10,000?
 
like
4000-5000
 
hm so not insignificant
 
6:58 PM
not simultaneously
I'd say average there's probably 3500-4000 on
 
Well, hopefully it build an index and that utilization plummets
 
I sure fucking hope
 
Be aware, depending on the query, indexed can result in worse performance: blogs.technet.com/b/carlh/archive/2009/06/15/…
 
Oh for fucksake
 
yay computers!
 
7:00 PM
@MDMarra how do I find the MS Gold Partners in MI? Stupid MS Website is cryptic
 
I'm asking for the query now
 
@cole There could be multiple, depending on what all they're doing -- user lookup, group memberships, etc...
 
@jscott domino admin said he'd send me whats in there
Now I'm going to stress eat these cookies.
I feel like nothing I do here helps anything.
Something else just breaks.
 
well that's what crufty IT does
 
I guess I should just focus on making sure AD is healthy and working at to best practices, then move onto the next ball of yarn and trying to untangle that
 
7:20 PM
cheezits arent as tasty as pirate booty
 
ugh so mad at myself for eating those cookies.
 
@cole you should wash away your anger with beer. Beer consumption never leads to unhappy endings.
 
@RyJones just feeling like a failure lately- ugh this sucks.
 
@cole MDMA?
 
MDMA?
 
7:27 PM
drugs son
 
MDMA (3,4-methylenedioxy-N-methylamphetamine) is an empathogenic drug of the phenethylamine and amphetamine classes of drugs. MDMA has become widely known as "ecstasy" (shortened to "E", "X", or "XTC"), usually referring to its street form, although this term may also include the presence of possible adulterants. The UK term "Mandy" and the US term "Molly" colloquially refer to MDMA that is relatively free of adulterants. MDMA increases a sense of intimacy and diminished anxiety with others which can induce euphoria and mild psychedelia. Many studies, particularly in the fields of psychology and...
 
@RyJones "Suicide Sundays."
 
Ah
 
Molly Mondays
 
Another fine product of the Pacific Northwest...
 
7:30 PM
Tanner you're looking at google apps?
 
@AdamC We run Google Apps. I was eyeballing Flash Panel for a little mass management help.
Specifically, we had to disable the spam filter on all our Groups the other day... Took two of us 45 minutes to do by hand, since I couldn't find a way to do it all at once.
 
@BigHomie not sure, tbh
I don't ever need to find one :)
 
@MDMarra Good point, I thought you might have access to some secret directory somewhere
 
@Tanner Yo! I haz kwestun.
 
@Wesley Ya?
 
7:35 PM
@Tanner You were cool with that position being "off hours" right? I know it was listed and everything, but I wanted to make sure I made that clear. I can't remember what we talked about.
 
@Wesley Yeah that's totally fine by me.
10PM to 6AM, right?
 
I may
smash things
 
@cole doit
 
@Tanner Roughly, yeah. It's not strict shift work. Just whatever works, and in a generally-overnight-range-of-time.
 
I need to go for a walk.
 
7:37 PM
@Wesley Right on. Graveyard doesn't bug me. Swing shift is a bit of a show stopper though.
 
@Tanner Okay, noted. So there's lots of strong candidates, more than I expected, so we'll see how it shakes out. IF there's a next step you'll probably hear about it this week some time.
 
@Wesley Cool, thanks! I appreciate the opportunity either way.
 
@Tanner yeah absolutely, been wanting to try FlashPanel, then lit up a demo because we had a big task for something come up one day, was able to do it with FP.
always nice to meet another Google Apps admin :-D
 
@AdamC Hah, yeah. Kind of lonely out there. All the cool kids get O365.
 
@Tanner meh ;) Do a demo with a FlashPanel rep they seemed helpful and into their work.
 
7:43 PM
Well, I'm going to go back to cleaning out the graveyard before anyone notices all our old token ring gear is getting thrown out.
 
Their angle was that Google Apps never really planned to make a dashboard for a large organization, so they are letting BetterCloud do their thing.
I had FP recommended to me once by a Google rep too.
 
Anyone ever heard of Kemp load balancers?
 
@Wesley so you're a high roller, bringing people on to coolcompany.com now, eh?
 
@RyJones I'm just taking my social-butterfly nature and honing it down to scoring jobs for people at one company. =P
But only the smart ones.
The dumb ones can go #devops over at #cloudbros or whatever.
Brazzers!
=P
I bet Brazzers has a pretty awesome infrastructure.
 
@jscott:
 
7:50 PM
so do you need certain rep before you can change your profile around
 
@Wesley Curious, have you been getting anything good from We Work Remotely? Been hoping that site does well.
 
@Tanner Yes, they've brought in the best, but we didn't spring for Careers 2.0 which I suspect would have been just as good if not better.
WWR has a lot of volume, so you do get a lot of noise, but there's some good signal in there too.
Not like FlexJobs.com which is just a river of dookie.
 
@Wesley nope
 
@Wesley Nice. Not much gets posted for support or SA, so I wasn't sure if you'd get much out of it.
 
@AdamC don't think so. If you update it and your pic it makes you look like less of a spammer, so go for it.
 
7:57 PM
@AdamC is a spammer IRL
jk
 

« first day (1416 days earlier)      last day (3560 days later) »