Wednesday, July 23, 2014

How to Setup Email Notifications on Dell OpenManage


How to Setup Email Notifications on Dell OpenManage
https://shuvocse5.blogspot.com/2014/07/how-to-setup-email-notifications-on.html

All Dell servers come with Dell OpenManage Server Administrator software which has the ability to monitor and display system level indicators. Additionally, through the Alert Management tab you can configure actions to execute whenever an alert is triggered. Unfortunately there is no vehicle for applying uniform notifications to all events, so we are going to provide a script which configures all the alert actions to send an email notifying you of the respective event.
Top of Form
Bottom of Form
How it Works
The script is very simple. When an event is triggered, Dell OpenManage executes the specific application, then the application connects to an external SMTP Server, and send the email with the message of the event.
Requirements:
-Dell Server with OpenManage Installed
-Microsoft .Net Frameworks v2.0 (Download Here)
-DellSMTPNotify Application (Download Here)
-DellSMTPNotify Alert List (Download Here)
Step 1:
Extract files to C:\DellSMTPNotify
Edit Config.xml and configure DefaultEventSettings to your SMTP server.

Now we are going to test the SMTP settings by running the script. Open command prompt and navigate to C:\DellSMTPNotify. Then type the following: “DellSMTPNotify.exe 1“.
DellSMTPNotify associates numbers to messages. Looking at config.xml, you can customize the messages. In this case, “1″ would send message “Message from server: Watchdog ASR”.

You should have received an email alert. If you didn’t receive an email, check your SMTP settings in config.xml.
Note: Sometimes emails are delivered to junk box.

If you didn’t recieve an email, re-check your config.xml SMTP settings.
Step 2:
Now that we have our DellSMTPNotify.exe working properly with our SMTP settings. We can now get it to work with Dell OpenManage.
Login to Dell OpenManage and navigate to Alert Management

Under Alert Actions, select Watchdog ASR.
Under “Set Alert Actions for Watchdog ASR”, enable “Execute application.” In the whitebox, place the Abolute patch to DellSMTPNotify.exe with code to Watchdog ASR. The code for Watchdog ASR is 1, and would place the following “D:\DellSMTPNotify.exe 1“.

Now we have setup email alert for Watchdog ASR. We will have to do the same thing for the rest of the alerts.
Top of Form
Bottom of Form
Step 3:
Once we have setup the email alerts, now we have test the configuration. We want to get Dell OpenMange to trigger an alert and so would execute our application. The safest test we can do on a production server is thermal settings.
First we have to ensure that Thermal Shutdown is disabled. Under Shutdown -> Thermal Shutdown, set “Thermal Protection Shutdown Severity” to disabled.

From left panel, navigate to System -> Main System Chassis -> Temperatures. Select probe name “System Board Ambient Temp”.

From here, we want to get OpenMange trigger an event. One way is to force the Minimium Warning Threshold to be higher that the current reading. To do this, we click on “Set to Value” and change Minimium Warning Threshold to 1 degree higher than current reading. In our case, our current reading is 24.0 C, and so we place value of 25.0 C for Minimium Warning Threshold.

You should have recieved an email alert from OpenManage in regards to Temperature Probe Warning. This proofs that email alert is setup on Dell OpenManage. You can now change the Minimium Warning Threshold back to default.

Tuesday, July 22, 2014

Make a list of all hidden system files and folders



In the rare eventuality that you forget the name of the folder, but know the location – or vice versa, you can run the following command.
attrib C:\*.* /s|find “A  SH”>C:\hiddensystemfiles.txt&notepad C:\hiddensystemfiles.txt
This will output the list of all hidden system folders on your C drive.
hidsysfiles 400x273 Change File Attributes, Create super hidden private files & folders in Windows using attrib.exe
You can of course modify the syntax suitable to search for only select locations also.

Create a super hidden private file or folder

As a Windows end-user, we can use this feature to create a hidden private file or folder on our Windows computer. Lets say you have a normal folder named Personal on your desktop, and you want to make it hidden.
To do so, open command prompt, and type the following in it and hit Enter. Here User_name is my Username, so make sure you use yours in its place.
attrib +s +h C:\Users\User_name\Desktop\Personal
This will make the folder a ‘system’ folder AND a ‘hidden’ folder. However, if you use “-s +h” it will make the folder an ordinary hidden folder only.

To see it, you have to via Folder Options, check Show hidden files, folders and drives and uncheck Hide protected operating system files. Or via CMD you can simply use “-s -h” instead of the above command.
folder hidden options 329x400 Change File Attributes, Create super hidden private files & folders in Windows using attrib.exe
Ofcourse this method is not fool-proof, but its good enough a way to keep your folders secret and hidden from most prying eyes

To change folder Attribute



open a command prompt window and type in "ATTRIB ['file path']\['file name'] -s -h"

For Example: "ATTRIB C:\USERS\ADMIN\DOWNLOADS\7z920-x64.msi -S -H" and press enter.

You can also use a wildcard (*)

For example: "ATTRIB C:\USERS\ADMIN\DOWNLOADS\FILE* -S -H" and this selects every file in that path that starts with "FILE".

replace "-" with a "+" to add the above attributes to a file.


Windows operating system offers four attributes for files and folders. They are:
  • Read-only – r : These are readable, but cannot be changed
  • System – s : For use by the operating system and not normally displayed in a directory listing
  • Hidden – h : They are not displayed in a directory listing by default
  • Archive – a : For backing up or copying files

Monday, July 14, 2014

Clearing Address Book Cache



Steps to Clearing Address Book Cache

  1. Open Outlook and Select File
  2. Select Account Settings 
  3. Select Data Files and Open File Location
  4. Select Offline Address Books
  5. Exit Outlook by select File and then Exit
  6. Highlight the folders within the Offline Address Books Folders and Delete them.
  7. Open Outlook

Downloading an Offline Exchange Address Book in Outlook for Windows



  1. Locate the offline address book.
    • In 2007, from the Tools drop-down list, select Send/Receive.
    • In 2010 / 2013, under the File tab, click the Account Settings button.
  2. Select Download Address Book.
  3. Click OK.

Sunday, July 6, 2014

Exchange Management Console: Disable and Remove


In the Exchange Management Console when a mailbox is selected the actions pane shows two tasks; Disable and Remove.
Exchange 2010 mailbox tasks: Disable and Remove
These two tasks do the following:
  • Disable will remove the Exchange attributes for the user account but leave the user account in Active Directory.  The mailbox is then also left in the Exchange mailbox database until the retention period has lapsed, then it is removed permanently.
  • Remove will remove both the Exchange mailbox and the user account from Active Directory
Unfortunately some admins wrongly assume that Disable is for temporarily disabling mailboxes, and that Remove will only remove the mailbox and not the user account.
If you’re having trouble remember the correct usage of these tasks think about it in terms of the Exchange Management Shell commands and how they pair up.
  • Enable-Mailbox is for creating a mailbox for an existing user, and Disable-Mailbox removes only the Exchange attributes from the user account
  • New-Mailbox is for creating a new AD user and mailbox at the same time, and Remove-Mailbox removes both the mailbox and the user object.
But if thats too hard just to try to remember that Disable is the safest option, because you can quickly reconnect the mailbox to the user again if it is still within the retention period.

How to List all Disconnected Exchange 2010 Mailboxes:


How to List all Disconnected Exchange 2010 Mailboxes:
The Exchange Management Shell lets us find the disconnected mailboxes in the organization.

[PS] C:\>Get-MailboxDatabase | Get-MailboxStatistics | where {$_.DisconnectReason -ne $null} | ft displayname,database,disconnectreason -auto


Disconnected mailboxes can be reconnected to an Active Directory user account. If no account exists for the person you want to reconnect a mailbox to then you would first create the account in Active Directory. Then you can reconnect the mailbox.

Restoring a User Mailbox after being Disabled


The following is a shortcut for restoring a mailbox in exchange 2010 that should work within 5 days or less
Procedure:
• Connect to a Mail Server and run the EMC(Exchange Management Console)
• Right click “Disconnected Mailbox” and select “View Exchange Management Shell Command Log…”
• Maximize the window to view all commands that have been run, and navigate to the Command example: 'domain.com/users/.../User Name' | Disable-Mailbox
• Now open the Exchange Management Shell, and paste the command in the Shell and change Disable-Mailbox to Enable-Mailbox and press enter.
• Now go back to “Mailbox” and refresh the list and confirm that the mailbox in question is back in the list.

Thursday, July 3, 2014

Service Tag Finder

Open cmd as Administrator then run bellow command
wmic /node:192.168.1.17 csproduct get identifyingnumber

Get service TAG from Dell Pc


Obtain Service Tag locally with command line

In the command prompt type the following and press Enter/Return.
wmic csproduct get vendor,name,identifyingnumber

You can also use
wmic bios get serialnumber