≡ Menu

How to find the ILO details of remote server

I recently authored a powershell script to get ILO version and Server model remotely. You can get it from here https://techibee.com/tips/powershell-script-to-get-ilo-version-and-server-model-remotely/572

I never thought that it possible. It’s really awesome and many people wanted to find out this information. I thought of giving details about the procedure to my blog readers and hence writing here. If you want the Unix based script straight away go to Nacho tech Blog. You can continue here if you want to understand the logic behind the script.



If a machine has ILO enabled, it listens on the port number 17988. It’s the port used for mapping virtual devices. Now you need to scan your network for list of machines which are listening on this port. For this purpose you can use nmap(a unix based utility which has it’s flavor in Windows also). This is very cool utility with little bit of complex options J. The simple example I can provide you scan a network for port 17988 is, “nmap -n -P0 -p 17988 -oG -S 10.10.10.0/24”. AFAIK, nmap uses broad cast when you ask it to scan a network range — correct me if I am wrong. Based on my assumption, you should run nmap from a host where broadcast is allowed to all your VLANS.


Above process returns the list of hosts which are listening on given port. The next step is, fetching the ILO details from IPs which are listening on this port. The script uses a utility called curl (not sure of windows equivalent version) which connects to http://ip-listening-on-port-17988/xmldata?item=All and fetches a XML file. This doesn’t require any authentication to server. The returned XML file contains the Server Serial number, IP address of ILO, Server Model and ILO version details. Using serial number you can easily find out the server name if you have proper inventory. If you don’t have this data, then go and check the serial numbers of server manually. Hey!…I don’t want you to that much hard work. You know?, you can query serial number of a windows machine remotely using WMIC. Use the below command for this purpose.

C:>wmic /node:remotehost bios get serialnumber
SerialNumber
GFEDCBA
C:>



If you are a modern administrator and want to use powershell, the see my blog post.


This completes the task.


Happy Learning..,
Sitaram Pamarthi

{ 2 comments }


If you want to log all the commands that you are executing in Exchange 2007 management shell to eventviewer, use the below registry key. As a result of this, all the commands you are executing from Exchange Shell will be logged to eventviewer and you can refer them whenever you want. This way we can keep track of what changes we are doing on day-to-day basis.

set-itemproperty HKLM:SOFTWAREMicrosoftPowerShell1PowerShellSnapInsMicrosoft.Exchange.Management.PowerShell.Admin -Name

 LogpipelineExecutionDetails -value 1
Happy Learning..,
Sitaram Pamarthi

{ 0 comments }

Log the commands your are executing in PowerShell


If you want to log all the commands executing through powershell to a text file, you can use “strat-transcript” cmdlet
Usage:

Start-Transcript c:your-folder-pathpslogging.txt

This starts logging all the commands you execute from powershell window to text file. This is very help when you are making critical changes.

{ 0 comments }

How to Configure CAS proxying in Exchange 2007

This post is mainly concerned about the steps required for enabling CAS proxying in Exchange 2007. Before explaining the configuration part, I will give you the scenario where I am configuring the CAS proxying.

Environment:

I have two sites, SiteA and SiteB. Both the sites are having MBX and CAS(2) servers.
CAS1 server(SiteACas1) in SiteA is published to Internet.

If a user whose mailbox in siteB mailbox server tries to open his mailbox through OWA from internet, his request goes to SiteACas1 server and he will be get below error.

Error: Outlook Web Access is not available. If the problem continues, contact technical support for your organization and tell them the following: There is no Microsoft Exchange Client Access server that has the necessary configuration in the Active Directory site where the mailbox is stored.

To resolve these errors, follow the below steps.

Configuration:

  • Enable integrated authentication on Cas1SiteB and Cas2SiteB servers.

Set-OwaVirtualDirectory -Identity “Cas1SiteBowa (Default Web Site)” -WindowsAuthentication $true
Set-OwaVirtualDirectory -Identity “Cas2SiteBowa (Default Web Site)” -WindowsAuthentication $true

  • Set the internal URL on both the CAS servers in siteB

set-OwaVirtualDirectory -Identity “Casd1SiteBOWA (Default web site)” -InternalUrl https://Cas1SiteB.local.com/owa
set-OwaVirtualDirectory -Identity “Casd2SiteBOWA (Default web site)” -InternalUrl https://Cas2SiteB.local.com/owa

You are all set here, try accessing your siteB mailbox from CAS1SiteA OWA URL. It should work now.

What else I need to read to understand Proxying and Redirection better:?

TechNet [http://technet.microsoft.com/en-us/library/bb310763.aspx]
Msexchangeteam posts [One, two, and three]

Post here if you need any clarifications or have any questions.

Happy Learning,
Sitaram Pamarthi

{ 0 comments }

Place adsense in middle of your blogger post

Many analysis are saying that Adsence blocks placed in middle of blogger post performing well and earning good amounts to the bloggers. To fill my pockets as well, I tried placing the adsense block after reading one blog post entry and in vain, I tried several other also…still failed. I have read many posts from other bloggers about placing Adsence advertisement in middle of post but none of them worked straight forward — I think they are stale. After some struggle, I could able to sort-out the process.

So, follow the below steps if you want to see adsense blocks in middle of your post.

  • Prepare your adsense code — Get adsense code from your adsense account and convert it usingadsense-blogger blog-ad-converter to make it compatible with CSS.
  • Logon to blogger and select the layout option and from there “edit HTML” option.
  • Very important step here is to backup your template. Don’t miss to do this as it saves your time in case if you want to revert (who knows, my procedure also might fail for you)
  • Select the check box “Expand widget template” and search for the tag <data:post.body/>” and replace with below code.

<div expr:id='”aim1″ + data:post.id’></div>
<div style=”clear:both; margin:10px 0″>

<!– Remove this line and place your Your converted AdSense code here –>

</div>
<div expr:id='”aim2″ + data:post.id’>
<data:post.body/>
</div>
<script type=”text/javascript”>
var obj0=document.getElementById(“aim1<data:post.id/>”);
var obj1=document.getElementById(“aim2<data:post.id/>”);

var s=obj1.innerHTML;
var r=s.search(/x3C!– adsense –x3E/igm);
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>

  • Save your template and check your blog. It should display the ads now.

Enjoy and Happy blogging…

[Source]

{ 0 comments }

How to remove navigation bar from blogger

Many newbies don’t like the option of navbar in their blogspot.com. I too agree that blog will look ugly if navbar is present.

Follow the below steps if you want to remove navbar.

  • Logon to blogger.com with your ID
  • Click of layout option of your blog and choose “edit HTML” option inside that.edit-layout
  • Place the below piece of code before the <body> tag like shown below.

#navbar-iframe {
display: none !important;

}

place-navbar

This completes the task and enjoy navbar less blog 🙂

{ 4 comments }

HP wireless printers GiveAway offer from Labnol

The famous Indian techknowlegy site, labnol has announced a giveway offer for it’s readers. HP is going to present  wireless printers to the three winners, so hurry up and grab your printer, if you are luckey enough! 🙂

Visit this labnol link to get more details about this offer.

{ 0 comments }

Download Google Chrome OS

If you want to get your hands into the new Google Chrome OS, here you go.Google OS login screen

Download the VMDK file(compatible with Vmware Server/workstation/fusion) from here and setup your own instance.

Below are the some of interesting notes about Google OS  [ Courtesy : Manan’s Blog].

  • It will be launched next year (they wanted to cash in on Microsoft’s PDC09. Cheapos!)
  • It’s ONLY meant for Netbooks.
  • The OS looks exactly like the Chrome browser.
  • It’ll be locked to the hardware, like Apple the OS will come bundled on Netbooks.
  • It is an Open Source project and bits are available for developers now.
  • It is based on Debian. It’s basically just another Linux distro.
  • Everything you do will be stored online. Notes and documents will be synced to Google Docs.
  • No native applications.
  • The current build can be compiled and installed on any machine.
  • An App store is likely & no word on weather it will support Android apps, nothing certain but maybe.

At present there are not much application available in Google OS to play with. But look like developers already started their work to bring their apps Chrome compatible. The thing I like abou this is, you need to use your gmail ID for login(I think Google Apps IDs also will work, but haven’t tried) and it becomes one dash board for all google realted services.

Google OS applications

Write in comments section if you find any other interesting news about Google OS.

{ 1 comment }

What is GPP(Group Policy Preferences)

GPP is a new technology introduced with Windows Server 2008 to make life of administrators much easy. There are variety no. of settings available in GPPs which helps you manage your system effectively. 
Using GPPs you can administer the following components of Operating System. You can manage both these user-based and computer based settings from GPPs. The below list shows the settings available in GPPs. A setting can be applied to either a computer or a user or to both based the setting.
  • Applications (User-based)
  • Drive Mapping (User-based)
  • Environment Variables (User-based and computer-based)
  • Files (User-based and computer-based)
  • Folders (User-based and computer-based)
  • Ini Files (User-based and computer-based)
  • Registry (User-based and computer-based)
  • Shortcuts (User-based and computer-based)
  • Network Shares (Computer-Based)
  • DataSources (User-based and computer-based)
  • Devices (User-based and computer-based)
  • Folder Options (User-based and computer-based)
  • Internet Settings (User-Based)
  • Local Users and Groups (User-based and computer-based)
  • Network Options (User-based and computer-based)
  • Power Options (User-based and computer-based)
  • Printers (User-based and computer-based)
  • Regional Options (User-based)
  • Scheduled Tasks (User-based and computer-based)
  • Start Menu (User-Based)
  • Services (Computer-Based)
If no targets are applied, all the computer/users under this policy will get these settings. If you want to restrict this policy to specific users/computers  inside OU, then you need to use targeting. There are 25 targeting options are available which can be used alone or in conjunction with other items. Some of the interesting targets are battery present, computer name, disk space, IP address range, LDAP query, OU, Regkey match, security group, site name, user name and wmi query.
Some of the uses of GPPs are…
  • You can restrict the desktops local administrators group membership. If any one adds their account to local admins, that will be taken off during the next GPO processing due to GPP setting.
  • You can execute scripts, commands in user context at scheduled times.
  • Control power options on laptops/desktops
  • Easily deploy files to desktops based on user and computer
  • Push short cuts to user/desktops
  • And GPPs can definitely replace some of the settings which are being handled by your computer/user login scripts now. Using GPPs for these settings considerably less time than using scripts.
Compatibility…
I am sure many of the users will look for this information after going through the GPP exciting features. Though this feature released with Windows 2008 server, you can happily use GPPs in your existing Windows Server 2003 domain which has XP clients. The only thing you need to do is deploy GPP Client side extensions package from Microsoft. The latest buddies like Windows Vista, Windows 7, and Windows 2008 server will come this CSE by default.
You can read more details about this from below sources…
Happy Learning…,
Sitaram Pamarthi
{ 1 comment }
Today I want to turn my some of the scripting efforts to public.
Sometimes I get requirements to see how many machines are online which are part of a AD security group. I worst method I used to follow was dumping the group member list to some text file and making use of a batch script to ping the machine and check the status. This is pretty good but consuming some of my time for dumping and analyzing. So why below script is born….
You just need to give the group DN in the script and execute it with cscript. That shows the machine status if it is online or not. Feel free to modify the script to match your requirements and let me know if I can be of any help.

‘##########################################################################
‘# Purpose : To check the ping status of computers part of a security group
‘# Author  : Sitaram Pamarthi
‘#
‘##########################################################################
‘On Error Resume Next

‘ Replace with your group DN
GroupDN=”ldap://CN=Your/ Group Name,OU=Your OU name,DC=domain,DC=com”

Set objGroup = GetObject(GroupDN)
objGroup.GetInfo
arrMemberOf = objGroup.GetEx(“member”)
For Each strMember in arrMemberOf
  Set objGroup1 = GetObject(“LDAP://” & strMember)
  strHost=trim(objGroup1.dNSHostName)
  set objPing = GetObject(“winmgmts:{impersonationLevel=impersonate}”).ExecQuery _
      (“select * from Win32_PingStatus where address = ‘” & strHost & “‘”)

  for each objRetStatus in objPing
    if IsNull(objRetStatus.StatusCode) or objRetStatus.StatusCode<>0 then
        WScript.Echo strhost & ”  ==> host not reachable”
    else
        Ping = True
        wscript.echo strhost & ” ==> Machine Reachable”
    end if
  next
Next

‘#End of script.

Happy Learning…,
Sitaram Pamarthi
{ 2 comments }