Login with Facebook
Showing posts with label Tips and Tricks. Show all posts
Showing posts with label Tips and Tricks. Show all posts

Friday, August 12, 2011

How to use Google+ only for access for Facebook/Twitter

 

When you access Google+ you can post only to Google+

image

 

You can use http://startgoogleplus.com/ plugin to allow you to use Google+ for posting to Facebook and Twitter.

Everything is described in the URL above.

Step 1: Get the Google Chrome Extension

For Firefox

https://addons.mozilla.org/en-US/firefox/addon/start-google-plus/

For Safari

http://startgoogleplus.com/downloads/extension/safari/StartGooglePlus.safariextz

For Google Chrome

https://chrome.google.com/webstore/detail/hbgcgahdbgbdenffckohanhobdcnkoip

Step 2a: Get an invite to Google+

http://startgoogleplus.com/

You can request from me through the comments below.

Step 2b: Sign in with your Google+ Account

http://plus.google.com

Step 3: Import Photos from Facebook

Step 4: +1 This Page and the applications page

 

Simply Click on the Icon next to Home and log on to Facebook and Twitter to allow the application to access both networks.

image

You will find two new Sparks added to your Google+ interface

image

All posts from Twitter and Facebook will appear to your Stream page

image

Also when Share anything it will share to all your networks.

image

Tuesday, August 9, 2011

Modifying Google+ for iPhone to work on iPad

Google has released an update on Google plus application and assumes compatibility on iPad and iPod, but when you install it you will find the same as iPhone applications with 2x as maximum enhancement.

iPhone Application

iPad Application

IMG_0643

This will make you loose interest in using the application.

I'll show you how to update the application properties to make it iPad enabled.

 

Modifying Google plus to work on iPad

Navigating Google plus on iPad

1- Install application named iFile From Cydia

IMG_0642

2- Open the application and change the options to display the folders for applications to be readable not GUID

 

IMG_0631

IMG_0632

3- Browse to Google+\EmSea.app and browse to info.plist

IMG_0634

IMG_0635

4- Modify the property of UIDeviceFamily and change the value to 2

IMG_0636

IMG_0638


5- Restart the device (Respring)

Application will look like this

IMG_0643IMG_0646

Thursday, September 23, 2010

Launch Network Overview Map

In NNMi you may need only to launch a single MAP in your browser without having the full console view.

This is achievable by launch command available with NNMi.

http://NNMiServerName:PortNumber/nnm/launch?cmd=showNetworkOverview

for launch your node group map use the below

http://NNMiServerName:PortNumber/nnm/launch?cmd=showView&objtype=Node&nodegroup=<NodeGroup>

Example:

To launch "Routers" map:

http://NNMiServerName:PortNumber/nnm/launch?cmd=showView&objtype=Node&nodegroup=Routers

To launch the Networking Infrastructure Devices node group map you can use the command below.

Replace space with + plus sign in group name “Networking Infrastructure Devices”.

http://NNMiServerName:PortNumber/nnm/launch?cmd=showView&objtype=Node&nodegroup=Networking+Infrastructure+Devices

Friday, August 6, 2010

Tips: Enable NNMi integration with OMW

Draft Article

I found very strange trick where sometimes the integration is not working ang keep giving you error access your OMW server.

The trick is to either:

  • Add the OMW server in the trusted zone in the internet explorer settings. 

OR

  • Disable Internet Explorer Security Configuration. Tested 16th August 2010

By the way: I do not know what is the relation between the integration script and internet explorer settings, but I have done this step on different systems and it works.

image

 

image

Saturday, July 24, 2010

Moving from NNMi using Postgres to NNMi with Oracle

This is a Draft Article

I just want to share my experience related to the migration from NNMi using local DB (postgress) to NNMi using Oracle DB

System was as specified:

NNMi 9.00 with Patch 1

Same Machine hosting the Embedded database (postgress)

Objective:

Migrate the configuration data to NNMi and Oracle Database.

Step X Backup NNMi for disaster recovery

nnmbackup.ovpl –type offline –scope all –force –archive –target c:\

a file with tar extension will be created on  drive c:\ started nnm-bak- and the current date and time .tar like nnm-bak-20100721183731.tar

Extra-Step X Backup any custome scripts you created for Incident actions.

%NnmDataDir%\shared\nnm\actions

aslo these files can be found under your backup archive

nnm-bak-20100721183731.tar\nnm-bak-20100721183731\data\shared\nnm\actions

Step X Backup you configuration (configuration Export)

in this step we will export the configuration using nnmconfigexport.ovpl

nnmconfigexport.ovpl –c all –file c:\exportedconfig

Hint: the export export remember to create the folder before run the above command “mkdir c:\exportedconfig”

Step X export Nodes as seed file

 

Step X Remove current NNMi installation

1st - Remove i-SPI

2nd – Remove Patches

3rd – Remove NNMi

Restart your server.

Step X Oracle configuration 

In this section we will create the table space that will hold the NNMi database that will be created during NNMi installation.

Section 1: Create Tablespace

CREATE SMALLFILE
    TABLESPACE "NNMI"
    LOGGING
    DATAFILE 'H:\ORADATA\NNMIDB\NNMI01.dbf' SIZE 4096M,
    'H:\ORADATA\NNMIDB\NNMI02.dbf' SIZE 4096M,
    'H:\ORADATA\NNMIDB\NNMI03.dbf' SIZE 4096M EXTENT MANAGEMENT
    LOCAL SEGMENT SPACE MANAGEMENT  AUTO

 

 

Section 2: Create NNMi User

CREATE USER "NNMI"  PROFILE "DEFAULT"
    IDENTIFIED BY "nnmi" DEFAULT TABLESPACE "NNMI"
    TEMPORARY TABLESPACE "TEMP"
    ACCOUNT UNLOCK;

 image Section 3: Assign Permissions for NNMi User

GRANT CREATE ANY INDEX TO "NNMI" ;
GRANT CREATE ANY SEQUENCE TO "NNMI" ;
GRANT CREATE ANY TABLE TO "NNMI" ;
GRANT CREATE ANY VIEW TO "NNMI" ;
GRANT CREATE SEQUENCE TO "NNMI";
GRANT CREATE SESSION TO "NNMI" ;
GRANT CREATE TABLE TO "NNMI" ;
GRANT CREATE VIEW TO "NNMI" ;
GRANT FLASHBACK ANY TABLE TO "NNMI" ;
GRANT "CONNECT" TO "NNMI";
GRANT "OEM_ADVISOR" TO "NNMI";
GRANT "RESOURCE" TO "NNMI";

image

Step X Install NNMi 9.x

Install using the installation guide.

 

Step X Load old node list a seed files 

 

Step X Load Node Groups and Maps information

1- load Nodegroup Map configuration

loading Nodegroup Map configuration will fail as per the screenshot but some required identification are imported that facilitate the nodegroup import

D:\Program Files (x86)\HP\HP BTO Software\bin>nnmconfigimport.ovpl  -f C:\export
edconfig\ngmap.xml

2- Load nodegroup configuration

D:\Program Files (x86)\HP\HP BTO Software\bin>nnmconfigimport.ovpl  -f C:\export
edconfig\nodegroup.xml
Successfully imported nodegroup.xml.

3- load Nodegroup Map Configuration again

D:\Program Files (x86)\HP\HP BTO Software\bin>nnmconfigimport.ovpl  -f C:\export
edconfig\ngmap.xml
Successfully imported ngmap.xml.

Saturday, June 26, 2010

Import Configuration from NNMi 8.X to 9.x : Part 1

In this article I am just giving example of on of the configuration setting that can be exported from NNMi 8.x to NNMi 9.x
Node Groups “nodegroup.xml” file contains nodegroup information in XML format, in NNMi 9.x there one more attribute is needed in the xml file which is not part of the export details
<ns2:calculateStatus>true</ns2:calculateStatus>
Open in Wordpad nodegroup.xml
From edit menu –> replace
in find what <ns2:additionalNodes/>  and in replace with write <ns2:additionalNodes/> <ns2:calculateStatus>true</ns2:calculateStatus>
SNAG-0030

Note: I have used find and replace (as stated above "to search for and to replace it with the same tag plus the line needed" )to make it easy in adding the tag as bere the example below I have highlighted this line just to clarify that this is the only addition needed.
<ns2:nodeGroup>
            <ns2:addToPerfSPIReports>true</ns2:addToPerfSPIReports>
            <ns2:addToViewFilterList>true</ns2:addToViewFilterList>
            <ns2:additionalNodes/> <ns2:calculateStatus>false</ns2:calculateStatus>             <ns2:children/>
            <ns2:filterExpressions/>
            <ns2:name>APC (American Power Conversion)</ns2:name>
            <ns2:nodeDeviceFilters>
                <ns2:item>
                    <ex:ref>
                        <ex:key>40e2ab16-e401-492f-88e0-88f81cb0c6c9</ex:key>
                        <ex:type>com.hp.ov.nms.monitoring.groups.model.NodeDeviceFilter</ex:type>
                    </ex:ref>
                </ns2:item>
            </ns2:nodeDeviceFilters>
            <ns2:parents/>
            <ns2:type>USER</ns2:type>
            <ns2:uuid>74e4ddba-9e82-4e91-a660-9b8f6fe4c267</ns2:uuid>
        </ns2:nodeGroup>
nnmconfigimport.ovpl -u system -p password -f nodegroup.xml

Saturday, February 6, 2010

Using HP CAE to collect user information Part 1

You can use HP Client Automation Enterprise to local user accounts information and to be displayed as part of the built-in reports in HP Reporting Manager.

You can assign WBEM_USER_GROUP “WBEM Scan for User/Group “ under Audit domain to computer or OU to get this data collected.

Then notify computers for Audit

Install HP Performance Manager license

To install license to OVPM you can use the steps below

cd %ovinstalldir%\bin

ovpm license

image

a new text window is open for controlling license and you will get message like license expired

type gui to launch Autopass for OVPM

Select Install/restore License

Click Browse to locate the license file

Click view content

Click Install

image

Close the application

in the text program type status to get the current status.

image

now you can log to system normally

Friday, February 5, 2010

How to use WBEMTEST to get WMI data level 1

Launch wbemtest from command prompet or RUN

image

Here is the interface

image

to locate WMI classes attributes or instances you have to connect with account with sufficient privilege (note: all users has privilege to WMI but depend of type of action you want to execute which may require administrator priv.)

press on connect then type which namespace you want to connect to: by default Windows (Win32_*)built-in classes almost located under root\cimv2 then click connect.

This will connect you with the current user account, you may specify another account to gain more privilege

image

This is the screen after connection.

image

If you know certain class you can click on Open Class

If you do not know and you want to search manually you may click Enum Classes

To get all the classes you may select Recursive and press OK

image

A full list of classes will be displayed as below

image

Browse to any class and double click

for example User Account on the local machine are under Win32_UserAccount class

 image

Click on Instances to list all the instances

image

Here is the list of User Account

image

 

To be continued.

please remind me to continue it.

Wednesday, November 18, 2009

Allow OVPI to send emails through Exchange 2007

Remember one thing that there is two tasks you should do

1- create Receive Connector to accept OVPI connection

2-PowerShell Command to assign Permission for anonymous to relay from OVPI

To troubleshoot this  Create dummy schedule and run the reports inside and you can open %dpipe_home%\log\piweb.log

If you got  Unable to relay

image

To use the Exchange Management Console to create a new Receive connector that grants the relay permission to anonymous connections

  1. Open the Exchange Management Console. Perform one of the following steps:

    1. To create a Receive connector on a computer that has the Edge Transport server role installed, select Edge Transport, and then in the work pane, click the Receive Connectors tab.
    2. To create a Receive connector on a Hub Transport server role, in the console tree, expand Server Configuration, and select Hub Transport. In the result pane, select the server on which you want to create the connector, and then click the Receive Connectors tab.
  2. In the action pane, click New Receive Connector. The New SMTP Receive Connector wizard starts.

  3. On the Introduction page, follow these steps:

    1. In the Name: field, type a meaningful name for this connector. This name is used to identify the connector.
    2. In the Select the intended use for this connector: field, select Custom.
    3. Click Next.
  4. On the Local network settings page, follow these steps:

    1. Select the existing All Available entry, and then click Remove icon.
    2. Click Add. In the Add Receive Connector Binding dialog box, select Specify an IP address. Type an IP address that is assigned to a network adapter on the local server that is best able to communicate with the remote messaging server.

Note: In simple exchange implementation, you can leave it as default.

    1. On the Local network settings page, in the Port field, type 25, and then click OK.
    2. Click Next.
  1. On the Remote Network settings page, follow these steps:

    1. Select the existing 0.0.0.0 - 255.255.255.255 entry, and then click Remove icon.
    2. Click Add or the drop-down arrow located next to Add and type the IP address or IP address range for the remote messaging server or servers that are allowed to relay mail on this server. When you are finished entering the IP addresses, click OK.
    3. Click Next.
  2. On the New Connector page, review the configuration summary for the connector. If you want to modify the settings, click Back. To create the Receive connector by using the settings in the configuration summary, click New.

  3. On the Completion page, click Finish.

In the work pane, select the Receive connector that you created.

  • Under the name of the Receive connector in the action pane, click Properties to open the Properties page.

  • Click the Permission Groups tab. Select Anonymous users.

  • Click OK to save your changes and exit the Properties page

Open the Exchange Management Shell.

  • Run the following command using the name of the Receive connector that you created in steps 1 through 11:

    Get-ReceiveConnector "Receive Connector Name" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient"




image 




 



to list the Receive Connector Name you can type Get-ReceiveConnector

Friday, May 15, 2009

Uninstall Products using Powershell

I am trying to uninstall a product I have recently added to my Windows and i tried to access the normal way of uninstallation

which you can go Control Panel\Programs\Programs and Features

image

The problem is that the product I am trying to uninstall is not displayed there, although the product is available in the start menu

image

So I will use Powershell and WMI to uninstall it

gwmi win32_product

image

gwmi win32_product -filter "name='HP ProtectTools Security Manager'"

image

now I will try to find what is the available methods that we can use with this class

I can write gwmi win32_product -filter "name='HP ProtectTools Security Manager'" |gm or gwmi win32_product |gm

image

to call a method you have attach your command to a variable then call the varable.method()

to attach it to variable type $varname=the command

$product=gwmi win32_product -filter "name='HP ProtectTools Security Manager'"

Now we can attach Uninstall method to the variable

$product.uninstall()

this should work fine but as I am tring this example on Windows 7 it gave me return value of 1603 it means some thing that is not 0 (normal exit)

image

I investigated the problem and I found as usual the application is running under non elevated privilege I should select Run as Administrator.

image

I did so and I tried the command again and it gave me return value of Zero.

image

Article Code

1 $product=get-wmiobject win32_product -filter "Vendor='Hewlett-Packard'"
2 $product.uninstall()