Countries I've been to

Page executed in 0.8702 seconds.

Hanging out one’s laundry

June 28th, 2008

IMG_0351

For me this has become a literal item and thing to do. Its entirely relaxing actually and quite soothing. Others like to air out other kinds of laundry and seem to have nothing better to do with their time. Its quite sad to consider.

I’ll go back to tending to my little patio garden and laundry on the lines. Continuing to do the minor things I do for Gentoo. Its not always a lot but at least its not something that causes trouble for others or gives the impression that you are five and can’t clamp your mouth shut.

Also, the laundry smells so much nicer after its been drying out on the patio. Its amazing how much of a difference it makes. I just need to find some actual clothespins so I can use them instead of draping it over the line.

Windows WMI and Linux Part 3

June 12th, 2008

As seen in previous part 2 and part 1

We’ve gone from knowing nothing to having something that we can query the WMI interface with. Using two open source projects (WMI Mapper and wbemcli) to get the information out. Now we dive head into what you do to actually get the information that we want to from WMI.

As we saw from the previous lesson. There’s a lot of information available in WMI/WBEM, a lot of it for the linux people is quite frankly a lot of trash. For the windows people I would suspect it is as well, but wbem does allow you to make changes to the system and applications at the moment with wbem. For this document we will only cover actually getting information.

The first step is to try and find out if you can query the server in question. Using wbemcli typ in the following:

wbemcli -nl gc 'http://NA\jjackson:password@host:5988/root/MicrosoftExchangeV2

Please note that the NA is the domain that I am part of otherwise its your normal http://username:password@blah:port. Post 5988 is the default for http and 5989 for https. The above will return something like the following, just much larger and with more items.

.internal:5988/root/MicrosoftExchangeV2:Exchange_Logon : CIM_LogicalElement
-AdapterSpeed
-Caption
-ClientIP
-ClientMode
-ClientName
-ClientVersion
-CodePageID
-Description
-FolderOperationRate
-HostAddress
-InstallDate
-LastOperationTime
-Latency
-LocaleID
-LoggedOnUserAccount
-LoggedOnUsersMailboxLegacyDN
-LogonTime
-MacAddress
-MailboxDisplayName
-MailboxLegacyDN
-MessagingOperationRate
-Name
-OpenAttachmentCount
-OpenFolderCount
-OpenMessageCount
-OtherOperationRate
-ProgressOperationRate
-RowID
-RPCSucceeded
-ServerName
-Status
-StorageGroupName
-StoreName
-StoreType
-StreamOperationRate
-TableOperationRate
-TotalOperationRate
-TransferOperationRate

That’s the class you’re looking at and what values can be returned from that class. To get the values you need to run the following:

wbemcli -nl ei 'http://NA\jjackson:password@.internal:5988/root/MicrosoftExchangeV2:Exchange_Logon'

For all possible return values you’ll get that information. In this case for each user logged into exchange you’ll get this information for.

-AdapterSpeed
-Caption
-ClientIP
-ClientMode
-ClientName
-ClientVersion=”OLEDB”
-CodePageID=1252
-Description
-FolderOperationRate=0
-HostAddress=”ExOleDb”
-InstallDate
-LastOperationTime=20080426161105.000872+000
-Latency
-LocaleID=1033
-LoggedOnUserAccount=”NT AUTHORITY\SYSTEM”
-LoggedOnUsersMailboxLegacyDN
-LogonTime=20080426161105.000872+000
-MacAddress
-MailboxDisplayName=”NT AUTHORITY\SYSTEM”
-MailboxLegacyDN
-MessagingOperationRate=0
-Name
-OpenAttachmentCount=0
-OpenFolderCount=1
-OpenMessageCount=0
-OtherOperationRate=0
-ProgressOperationRate=0
-RowID=61
-RPCSucceeded
-ServerName=”.internal”
-Status
-StorageGroupName=”First Storage Group”
-StoreName=”Public Folder Store (.internal)”
-StoreType=2
-StreamOperationRate=0
-TableOperationRate=0
-TotalOperationRate=0
-TransferOperationRate=0

That’s the basics of getting information from WMI. It now becomes a matter of doing a lot of filtering and using some of the other options potentially to make it cleaner.

But this is as far as I’ve gotten so I figured I’d provide at least this much information to help get people started on doing this.

Windows WMI and Linux Part 2

June 12th, 2008


Photo by PatCastaldo

This is a continuation of my last post about WMI and Linux. See the previous article here

I’ll provide a bit of a lesson on wmi before getting into the details and information about it as there seems to be a very large lack of information about it overall, outside of the people who seem to code for it.

WMI is in essence WBEM without the actual W in it since it doesn’t actually export it to a web accessible based interface. To actually have the Web Based interface you have to install something that takes WMI and presents it as such. Thank you once again for following standards Microsoft. That something for my case is called WMIMapper provided by the good folks over at http://www.openpegasus.org/. This allows you to actually do http or https requests to the wbem server and get information returned. Without that as far as I’m aware under linux, you’re without hope of getting any information. After you WMIMapper installed you need to either do a configuration change or add an option to the wbemcli program in linux to support the default install. Which for security is https, in my case I’m just doing testing and trying to get information so I’ll be using http.

In the program files/The Open Group/WMI Mapper/ folder you will have two config files cimserver_planned.conf and cimserver_current.conf. In this file is where you set up http or https support. I set http to true and https to false. Restart WMI Mapper at this point and its all ready to go.

On the linux side you want to download and install sblim-wbemcli with your package manager. This will give you wbemcli which is the main tool you’ll be using on the linux side to query the WMI Mapper.

Now you need to have an idea of what you want to look for, but its not that simple as there are many many Namespaces on your servers. All fall under one top tier though which is root. Under that you have such things as aspnet, cimv2 (a main area), cli, default, directory, microsoft, microsoftactivedirectory, microsoftexchangev2(a main spot for exchange?),microsoftiisv2, microsoftnlb, mscluster, perfmon, policy, rsop, security, snmp, subscription, and wmi.

In my case I am going to be looking at exchange data so the first thing we want to do is find out what is under our exchange class (note I’ve found exchange info in two different spots..not sure if both are useful).

To give an idea of the complexity of what you’re about to partake in, this is one section of the much larger exchange options menu.

.internal:5988/root/MicrosoftExchangeV2:Exchange_Logon
-AdapterSpeed
-Caption
-ClientIP
-ClientMode
-ClientName
-ClientVersion
-CodePageID
-Description
-FolderOperationRate
-HostAddress
-InstallDate
-LastOperationTime
-Latency
-LocaleID
-LoggedOnUserAccount
-LoggedOnUsersMailboxLegacyDN
-LogonTime
-MacAddress
-MailboxDisplayName
-MailboxLegacyDN
-MessagingOperationRate
-Name
-OpenAttachmentCount
-OpenFolderCount
-OpenMessageCount
-OtherOperationRate
-ProgressOperationRate
-RowID
-RPCSucceeded
-ServerName
-Status
-StorageGroupName
-StoreName
-StoreType
-StreamOperationRate
-TableOperationRate
-TotalOperationRate
-TransferOperationRate

Next lesson I talk about how to actually go out and find those tables and how to get information from them.

Plastic in the water

June 8th, 2008

Just found a very interesting piece about the plastic that we end up dumping on a daily basis, and where it ends up. Its a twelve part series and hopefully should give you a lot to think about the plastics that you use yourself in everyday life. Consider the fact that you probably don’t go a day in your life without interacting with at least one piece of plastic.

This series is well worth the watch. If you want to skip the journey, go to episode 8 and watch it from there.

People wonder why I don’t use windows

June 8th, 2008

I’ll give a prime example. Wanted to watch a netflix movie tonight, so of course its a windows IE only application (boo on netflix….i need to start a email campaign towards them about that). Hopefully they are not like the folks over at movenetworks.com (behind the discovery channels video player, again windows only….) who decided it’d be a good idea to block me from sending emails to their single feedback email address about linux support, once a week for about a month (before I got silently dropped).

Anyways I boot into windows, and its the second time so I decide to do some windows updates as I’m sure there’s updates that need to be applied to make use of the movie player. I do 11 patches which isn’t too bad and ignore the update for sp3 for now. Do the reboot as requested. I then pop over to netflix, and go to their movie viewing service. Oh you need to install this active-x component. After its installed, I’m informed that I need to upgrade my windows media player (another application I consider to be poorly made..but so many people depend on it since its on every windows box). Of course that’s a reboot (number 2 for those keeping track).

Get back in and go back to the movie player and there is yet another update, that requires IE to restart (not number 3 but..close enough to be annoying). Finally I should be done. I go to load up the movie I want to see and get greeted by a nice message that “streaming movie viewing is not available currently”. Great…

Windows…so easy to use, just reboot!

Glad I switched to Linux for both the workplace and the home use some 6 years ago. I really do find that I have far fewer issues in the alternatives. (Exceptions being poorly coded stuff that requires windows).

This also makes hulu.com so much more appealing as well. They have movies…and do it in such a way that it requires one thing, Flash, others should learn from their examples.

Edit: for those wondering http://video.discovery.com/# is the site for full episodes of the discovery network channels, and the contact info for the vendor working on the player is: discovery-support@movenetworks.com .

Windows WMI and Linux

June 2nd, 2008

Well, I’ve been asked to at work work on getting cacti/nagios to work with windows better on monitoring such things as Active Directory statistics and Exchange statistics. As most of this information is locked away in the WMI (which btw is a horrible interface and makes me so very thankful for snmp even if its not really any better in a lot of ways), I’ve been looking into a few possibilities. Currently that one looks like a combo of wmimapper (windows host) and a script to query said wmimapper.

Doing the query with wbemcli however I get a error that it can’t connect to the http socket or if it can…no results are returned. First thought…I like snmp a whole lot better.

Anyone dealt with wmimapper and wbemcli before. Any advice, or guides?