joeware - never stop exploring... :)

Information about joeware mixed with wild and crazy opinions...

7/2/2008

100 MPH

by @ 4:15 pm. Filed under quotes

Driving a car at 100MPH is a supported function by the auto manufacturer. Driving a car at 100MPH into a wall likely isn’t though you may not find specific guidance saying it isn’t. The fact that you can is a byproduct to the supported functionality combined with free will.

   – me (in response to someone asking about the supportability of domain cloning and seemingly being implied as ok because of domain rename functionality)

Rating 3.00 out of 5

Whoa – Starbucks to close 600 U.S. Stores…

by @ 1:13 am. Filed under general

This is fully 10% of the Starbucks stores in Seattle, whatever will they do if you can’t hit a Starbucks on all four corners of every intersection? ;o)

 

http://ap.google.com/article/ALeqM5hinV1XVpDeRBwTJTEpQCkvIcoMJAD91LG05O0

Rating 3.00 out of 5

6/30/2008

Worst practices…

by @ 12:34 pm. Filed under quotes

One of the worst practices in older firms is managing to metrics with the end result being a practice where you award people who are doing really bad things to the company.

    – Rob Enderle (TechNewsWorld – http://www.technewsworld.com/story/hardware/63604.html?welcome=1214841647)

Rating 3.00 out of 5

6/29/2008

200,000+ IOPS out of an HP C-Class blade system in 2009????

by @ 6:20 pm. Filed under tech

http://computerworld.co.nz/news.nsf/tech/99A7774F067EA284CC257474007C0076

 

Hewlett-Packard is working with Fusion-io to adapt the start-up’s high-performance, solid-state input/output storage technology to HP’s enterprise servers to improve their data access performance and energy efficiency.

“With our ioMemory architecture, we’re getting more than 200,000 IOPS within HP BladeSystem c-Class server blades today,” says Don Basile, Fusion-io’s chief executive officer. “So, working together with HP was the natural place to begin building upon our next generationtechnology.”

 

Wow. That’s a couple orders of magnitude over anything else internal I believe. And being solid state, that would be way cooler and way less energy requirements… I want a PC and a laptop that runs at that IOPS level.

Rating 3.00 out of 5

6/28/2008

PowerShell

by @ 12:56 pm. Filed under quotes

“PowerShell is the COBOL of the scripting world. In that I mean as you type out what you need to do your fingers actually get tired. Powerful no doubt, but it will require most PowerShell scripters to buy a gripmaster to build up finger strength for those marathon scripting sessions or more likely, there will be a good market for autocomplete IDEs for writing PoS code.” 

Rating 3.00 out of 5

6/27/2008

Thank you Bill. :)

by @ 12:05 am. Filed under general

I don’t expect Bill Gates will ever see this blog post but with Bill’s retirement from full time Microsoft operations I just wanted to offer a very sincere and heart felt “thank you very much Bill”.

Regardless of what anyone says of Bill or Microsoft, the face of computing is very different now than it would have been had he not been involved. I believe he has had far more impact on personal computers than any other person ever and possibly will ever as the impact and influence of Microsoft will continue for a very long time. I don’t think there is a person anywhere who can say that the influence and work of Microsoft hasn’t in some way impacted them and their use of computers today.

 

Some highlights

 

 

 

 

 

 

 

 

 

 

 

 

 

bill-gates

 bill-gates-4

bill-gates-2

 

Thanks again Bill, have fun. 🙂

Rating 3.00 out of 5

6/25/2008

Was this Domain Controller a product of normal DCPromo or IFM DCPromo?

by @ 8:08 pm. Filed under tech

A friend of mine pinged me recently and asked

… can you think of way of determining with certainty that a DC was IFM promoted or not based on its DIT (logs are say long since retired)

I thought about this a moment,  furrowed my brow for another moment and then started down the path involving a special little implementation quirk I ran into long ago. I actually like implementation quirks, they can help you work out various things going on and in this case, possibly help you determine something that no one at MSFT may have thought you might want to know or be able to do someday or maybe just plain decided you didn’t need so never exposed the capability[1]… That so rarely happens[2].

The quirk is that when a new object replicates to a DC, all of the attributes replicated in update the metadata on the target DC in a specific fashion. That specific fashion is that the originating DSA (or DC in this example), originating USN, and originating time/date metadata are from the actual originating DSA… The DSA where the changes were initially made. With one exception… the RDN attribute… That ends up getting originating DSA info from the machine receiving the replicated object.

So for example if you look at my administrator userid metadata you will see

G:\Temp>repadmin /showmeta CN=administrator,cn=users,DC=test,DC=loc test-dc1

38 entries.
Loc.USN                          Originating DC   Org.USN  Org.Time/Date        Ver Attribute
=======                          =============== ========= =============        === =========
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 objectClass
   7366                      secondsite\TEST-DC1      7366 2008-04-12 23:50:33    1 cn
103078            Default-First-Site-Name\R2DC1   1186430 2008-05-28 20:39:12    1 title
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 description
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 instanceType
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 whenCreated
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 displayName
   7366            Default-First-Site-Name\R2DC1     12489 2006-05-11 23:39:56    2 nTSecurityDescriptor
103078            Default-First-Site-Name\R2DC1   1186430 2008-05-28 20:39:12    1 wWWHomePage
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 name
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 userAccountControl
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 codePage
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 countryCode
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 homeDirectory
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 homeDrive
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 dBCSPwd
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 scriptPath
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 logonHours
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 userWorkstations
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 unicodePwd
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 ntPwdHistory
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 pwdLastSet
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 primaryGroupID
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 userParameters
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 profilePath
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 objectSid
   7366            Default-First-Site-Name\R2DC1     12489 2006-05-11 23:39:56    1 adminCount
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 comment
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 accountExpires
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 lmPwdHistory
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 sAMAccountName
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 sAMAccountType
  70758                      secondsite\TEST-DC1     70758 2008-05-04 08:50:25  249 lockoutTime
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 objectCategory
   7366            Default-First-Site-Name\R2DC1      8194 2006-05-11 23:19:59    1 isCriticalSystemObject
3063976                      secondsite\TEST-DC1   3063976 2008-06-17 16:57:37   32 lastLogonTimestamp
170720                      secondsite\TEST-DC1    170720 2008-05-28 22:18:34    8 joewareExtended11
199736                      secondsite\TEST-DC1    199736 2008-05-28 23:05:49    2 joewareExtended10
1 entries.
Type    Attribute     Last Mod Time                             Originating DC  Loc.USN Org.USN Ver
======= ============  =============                           ================= ======= ======= ===
        Distinguished Name
        =============================
PRESENT      manager 2007-02-27 17:19:31   47e66f05-61fa-4bff-88e1-2a62b5ef8289    7403  555581   1
        CN=joe,OU=Users,OU=My,DC=test,DC=loc

As you can see, most of the attributes are showing that they were originated in May 2006 on R2DC1 but the cn is showing origination on April 12, 2008 on TEST-DC1. Clearly the date is off from the true instantiation of the account in the domain, but that is when it came into existence in the DIT this DC has. As a quick no brainer sidebar…. What day was TEST-DC1 dcpromo’ed?

 

So how, pray tell, you ask, does that help you with determining if a DC has been promoted from IFM or not? Well…. if you IFM a DC the DIT is the DIT from the DC you took the media from; the DIT is copied into place, it isn’t built locally in the normal way through replication. This is why it is faster. The same level of processing and validation isn’t done, the file just is there…  This means that the stamping on the RDN attribute will be from the DC that originally built the DIT, not the current machine. So if you, say, look at the replication metadata for the administrators account and specifically you look at the RDN attribute metadata (which is CN for users), it will list the old DSA, not the current DC like you would see on a DC that went through the normal DCPROMO process.

So a specific example…. Say I have DC1 which is the first DC in the domain and I look at the administrator’s account metadata for the ‘cn’ attribute. I will see DC1 listed as the originating DSA.. Now say I promote DC2 from DC1 in the normal way and look at the administrator’s account metadata for the ‘cn’ attribute, I will see DC2 listed as the originating DSA. Then let’s say I build IFM media from DC2 and promote DC3 with that IFM media. Looking at the administrator’s account metadata for the ‘cn’ attribute will show what… DC2… not DC3 for the originating DSA. Now later we make some IFM media from DC3 and we build DC4, what will the metadata show for the originating DSA for ‘cn’? Why DC2 again of course. Now what happens if DC2 gets demoted in the meanwhile, what will the metadata show then? The answer… “Deleted DSA”.

In the generic case, while I haven’t tested this in all scenarios, I expect just checking the metadata for any of the main three partition heads on the DC should be more than sufficient. Alternately you can check some other object that you know existed pre-IFM say like the administrator’s ID though you would need to be careful with how you do that in a generic way[3]. Using the configuration or schema partitions should be pretty stable since you don’t often see those renamed. 🙂

Here is a quick little perl script (or one liner if you prefer) to check the DCPROMO status (IFM or normal) of a specific DC

if ((`adfind -h @ARGV[0] -config-s base msDS-ReplAttributeMetaData;binary -mvfilterdelim # -mvfilter \”msDS-ReplAttributeMetaData;binary= dc\” -list`)[1]=~/\\$ARGV[0]/i) {print “Normal Promotion”} else {print “IFM Promotion”};

Just save that to a perl script file and then execute the script with the short name of the DC as the parameter. This isn’t intended to be all inclusive, just something simple to show the basic idea of how it can be done. If you want to put that into a function in a larger perl script just change @ARGV[0] to $_[0].

Stay tuned for a matching post from Brandon over on his blog as he also got wrapped up in this exercise. Maybe he will explain some context of what this was about and why anyone would care if a DC was promoted from IFM or not from his viewpoint….

   joe

 

 

[1] Inside joke for those who are paying attention to other threads I have been involved in recently.

[2] NOT! Happens all the time, if MSFT knew what I wanted and what I was doing, joeware never would have come into existence.

[3] Think renames or object moves…

Rating 3.00 out of 5

6/22/2008

Most recent home project

by @ 8:14 pm. Filed under house stuff

I raised a flag pole just in time for Flag Day…

 

CIMG0935

CIMG0946

CIMG0952

CIMG0949

I still have quite a few rocks to put down as you can see. I will surround the whole flag pole with them and then put some nice soil over the top of it and then plant wild flower seeds.

Rating 3.00 out of 5

I know this will fit right in with many companies out there…

by @ 7:24 pm. Filed under humour

image

Rating 3.00 out of 5

6/19/2008

Major MUD Scripts…

by @ 10:51 pm. Filed under tech

Wow I went looking and actually found the SLIQ Major MUD scripts I talked about in the last post. Or at least I think I found most of them, even then I broke the stuff up into multiple files and modules.

I was poking around in one piece and found this section which was one of my favorite pieces as it always surprised the crap out of newbies who thought they could steal from me…

// Thief Routine
  if instr(line,”bumps you”) then
    dim pointer as integer
    pointer = 1
    if instr(line,”:”) then
      if instr(line,”:”) > instr(line,”)”) then
        pointer=instr(line,”:”)+1
      else
        pointer=instr(line,”)”)+1
      end if
    end if
    thief = MyMid(line,pointer,instr(line,”bump”)-pointer-1)
    Attack(thief)  
    fighting = TRUE
    monster1 = thief
    send
  end if

Basically you had people who would figure out that someone was running a script and then send a thief in to rob them blind. Up until I wrote my script, the scripts were so simple the thieves could get away with it because the script wouldn’t attack back. I sat and watched my character get robbed one day and said, hmm that isn’t happening to me again. So I wrote this routine to attack the thief that tried to rob me. Another routine would then chase the thief if he started running. Definitely not the normal script handling. 🙂

I also had this cute little routine

// Character attacking Normal way
  if instr(line,”moves to attack you”)>2 and instr(line,”attack young”) = 0 and instr(trueLine,”You”)=0 then
    print “>>”+ line
    if instr(line,other) then
      send “Forgive ” + other
      goto end_parse
    end if
    lstart=instr(line,”moves”)-1
      if instr(line,”:”) > instr(line,”)”) then
        lslash=instr(line,”:”)+1
      else
        lslash=instr(line,”)”)+1
      end if
    command1=MyMid(line,lslash,lstart-lslash)
    if myInfo.pvp <> “” then
      if instr(command1,myInfo.pvp) then
        monster1 = myInfo.pvp
        fighting = TRUE
        Attack(monster1)
        goto end_parse
      end if
    end if
    if (myInfo.log AND DEBUG) then print #1, time+”   Under Attack>”+command1
    if caution_level = 9 then call get_out
    sayMessage(“Under Attack–>”+line)
  end if

That would attack anyone who attacked me, but for bonus it would tell the other character that the first character was “tagged” to to also attack.

Here was a routine that would have one tagged character help another that dropped to the ground

// Somebody hit the ground, find out who and help. 
  if (instr(line,”drops to the ground”)) then
    lstart=instr(line,”drops to the ground”)-1
    lslash=instr(line,”:”)+1
    command1=MyMid(line,lslash,lstart-lslash)
    if (myInfo.log AND DEBUG) then print #1, time+”   Someone hit the ground ->”+command1
    if instr(other,command1) then
      heal(command1)
      send “aid “+command1
      if fighting then Attack(” “)
    else
      if other <> “*none*” then send “!Oh That’s Got To Hurt!”
    end if
  end if
     

I love this stuff, so much fun. I am such a geek. 🙂

 

     joe

Rating 4.33 out of 5

[joeware – never stop exploring… :) is proudly powered by WordPress.]