Unix iTOps Tube

Monday, April 30, 2012

VM server (LDOMS) HOWTOs/Examples [Request]

Hi



I have a T4-1, equipped with Solaris 10 & VM 2.1-server Build (default build of 6 Guest domains. There 2 single port Fibre Cards



(1) How to I make accessible Local storage accessuibel to a Guest domain ?

I have 6 x 300GB disk and was thinking of cretaing a ZFS RAIDZ Pool from them prior, or is that not the correct logical first step ?



(2) How do I reconfigure a guest domain for, let say 8GB of Memory & 300GB of Local storage or 300GB of Fibre storage



(3) Also exmaple of configuring the vSwitch. with 4NICs & upto 6 VMS, I'm thinking of bonding two NICs with the remain NICS as failovers, with both production, managment & Backup traffic accross the same NICs - There is a spearte Backup Network



(4) How to monitor these guest domains



Many thanks in advance for yor examples



ms. stevie




awk or sed - Convert 2 lines to 1 line

Hi,



Just trying to get to grips with sed and awk for some reporting for work and I need some assistance:



I have a file that lists policy names on the first line and then on the second line whether the policy is active or not.




Code:


Policy Name:      Policy1

Active:            yes

Policy Name:      Policy2

Active:            yes

Policy Name:      Policy3

Active:            no

Policy Name:      Policy4

Active:            yes

Policy Name:      Policy5

Active:            no


What I'm trying to get to is a list of policy names and whether or not they are active on the same line:




Code:


Policy1 yes

Policy2 yes

Policy3 no

Policy4 yes

Policy5 no


Would appreciate any pointers.



Thanks.




help needed with Awk programming

Hello,



I am just a beginner in Awk, and I use it occasionally, to manipulate large data files. I have faced with the following problem.



I have a file with a several thousands columns. It has a header, and then row after row of numerical data, except the first column, which contains symbols.



In the actual file, I have almost 15260 columns, with about 700 rows.



Here is an example of the header:




Code:


Symbol LT000216LL_ILD  LT000379LU_ILD  LT000842RU_CTRL  LT001098RU_COPD  etc.

I want to extract columns whose header reads something like

Code:


LT000842RU_CTRL

. The first part, that is, LT000842RU is an ID, and the second part is CTRL. I want to extract all columns with _CTRL and put it in a new file, irrespective of the ID.



How do I do it ?



Any help will be greatly appreciated.



Thanks




Read file, send to dig, no output

From the command line I am running the following command:




Code:


for i in $(awk '{print ($1)}' src-dst|uniq); do dig -x "$i" +short; done

src-dst has a list of IP addresses. When this script is running and I do a ps -ef | grep dig, I see the proper dig command with IP addresses being run, but the results do not display in stdout.

I tried redirecting dig with a > output and while output was created nothing was put in the file.



This works just fine for me:




Code:


i=8.8.8.8; dig -x "$i" +short

Result:


Code:


google-public-dns-a.google.com.



I hope this is enough information, any assistance would be appreciated.



Thank you for your time




Weird behavior of Vi

Hi there,



I am a bit puzzled by a weird behavior of Vi. I very simply would like to add increased numbers in some files. Since I have many thousands entries per file and many files, I would like to macro it in vi.



To do this, I enter the first number ("0001") on the first line and then yank it, insert it at the right place one line below, increment it and return to starting position on the line.


Code:


qa

4y<right arrow>

<down arrow>

<left arrow>

p

[Ctrl + a]

4<left arrow>


And it works :) ... by batches of either 7 lines, 70 lines or 700 lines :( . Because after each number "7", the auto-increase jumps to the next X0, X00 or X000!? :confused:

Examples :

... 0006 0007 0010 0011 ...

... 0036 0037 0040 0041 ...

... 0076 0077 0100 0101 ...

... 0156 0157 0160 0161 ...

... 0776 0777 1000 1001 ..., etc



It doesn't make any sense and I really very much don't understand.... Does anybody know what's going on ? :wall:



cheers!

J



[edit: typo]




Trouble with deprecated files

I apologize if I am "over-posting" in this forum; I know little about this stuff and I have several software programs that I must install. I have found this forum to be extremely helpful. Anyways, I am trying to install ZThreads on my computer (Mac OS X 10.7.3). When I run "make" it returns with:




Code:


macos/../macos/FastLock.h: In constructor 'ZThread::FastLock::FastLock()':

macos/../macos/FastLock.h:61: warning: 'MPCreateCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:767)

macos/../macos/FastLock.h:61: warning: 'MPCreateCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:767)

macos/../macos/FastLock.h: In destructor 'ZThread::FastLock::~FastLock()':

macos/../macos/FastLock.h:73: warning: 'MPDeleteCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:784)

macos/../macos/FastLock.h:73: warning: 'MPDeleteCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:784)

macos/../macos/FastLock.h: In member function 'void ZThread::FastLock::acquire()':

macos/../macos/FastLock.h:86: warning: 'MPEnterCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:803)

macos/../macos/FastLock.h:86: warning: 'MPEnterCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:803)

macos/../macos/FastLock.h: In member function 'bool ZThread::FastLock::tryAcquire(long unsigned int)':

macos/../macos/FastLock.h:102: warning: 'MPEnterCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:803)

macos/../macos/FastLock.h:102: warning: 'MPEnterCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:803)

macos/../macos/FastLock.h: In member function 'void ZThread::FastLock::release()':

macos/../macos/FastLock.h:127: warning: 'MPExitCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:820)

macos/../macos/FastLock.h:127: warning: 'MPExitCriticalRegion' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:820)

In file included from TSS.h:46,

                from ThreadImpl.h:31,

                from AbstractThreadLocal.cxx:26:

macos/TSS.h: In constructor 'ZThread::TSS<T>::TSS()':

macos/TSS.h:61: warning: 'MPAllocateTaskStorageIndex' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:511)

macos/TSS.h: In destructor 'ZThread::TSS<T>::~TSS()':

macos/TSS.h:74: warning: 'MPDeallocateTaskStorageIndex' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:528)

macos/TSS.h: In member function 'T ZThread::TSS<T>::get() const':

macos/TSS.h:88: warning: 'MPGetTaskStorageValue' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:564)

macos/TSS.h: In member function 'T ZThread::TSS<T>::set(T) const':

macos/TSS.h:105: warning: 'MPSetTaskStorageValue' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:547)

In file included from ThreadOps.h:58,

                from ThreadImpl.h:32,

                from AbstractThreadLocal.cxx:26:

macos/ThreadOps.h: In static member function 'static ZThread::ThreadOps ZThread::ThreadOps::self()':

macos/ThreadOps.h:86: warning: 'MPCurrentTaskID' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)

macos/ThreadOps.h:86: warning: 'MPCurrentTaskID' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)

macos/ThreadOps.h: In static member function 'static void ZThread::ThreadOps::activate(ZThread::ThreadOps*)':

macos/ThreadOps.h:98: warning: 'MPCurrentTaskID' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)

macos/ThreadOps.h:98: warning: 'MPCurrentTaskID' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)

macos/ThreadOps.h: In static member function 'static bool ZThread::ThreadOps::isCurrent(ZThread::ThreadOps*)':

macos/ThreadOps.h:113: warning: 'MPCurrentTaskID' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)

macos/ThreadOps.h:113: warning: 'MPCurrentTaskID' is deprecated (declared at /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h:466)

make[3]: *** [AbstractThreadLocal.lo] Error 1

make[2]: *** [all-recursive] Error 1

make[1]: *** [all] Error 2

make: *** [all-recursive] Error 1


What does it mean "MPCurrentTaskID" is deprecated? I googled the error and found on the Apple Developer website that this and many other multiprocessing files were deprecated as of Mac v 10.7. Is there a way around this, or what does this mean?

Thanks for any help

Tyler




LinkedIn Rolls Out New App for the iPad [Updates]

The business networking site, LinkedIn, just released the iPad version of its mobile app, and it’s available for free download. The app is optimized for the iPad’s Retina display, and the user interface has been completely revamped.


On their company blog, LinkedIn notes that that mobile platform is the fastest growing segment of their membership base, and so they not only released the new iPad 5.0 version of their app, but also revamped their iPhone, Android, and Mobile Web products to address the needs of their users.



The LinkedIn iPad contains all the features found the web version of the site, including profile overview, updates, news, and direct mail Inbox. The mobile app also takes full advantage of the multi-touch features of the iPad, and many users will find navigating their account easier than on a computer browser.



The three main areas of the app – Updates, Profile, and Inbox – are all accessible in the user dashboard. The interface is clean, and pages open quickly.


The new app also includes a calendar feature that lets you see LinkedIn profile information for people you’re meeting with. You can do a search for other LinkedIn members, as well keep up-to-date with your groups and share content with your network.


You can access your LinkedIn profile via their new mobile iOS version of the Safari web browser. The web version mirrors the new app, even including the dashboard. Try it here: tablet.linkedin.com.


The LinkedIn app requires iOS 4.0 or later, is also compatible with the iPhone and iPod touch.


Source: Mashable











3 Reasons Why You Shouldn’t Install Lots Of Browser Extensions [Opinion]

We all love our browsers, and we all love the extensions that you can install with them. Firefox‘s and Google Chrome‘s extension collections are quite massive, while Opera‘s is quickly growing in size.


We love browser extensions because they allow us to do what we want our browser to do that it couldn’t do before. And there are so many different things that can be added or solved by the use of extensions that it’s downright mind-blowing. But, as you install more and more extensions that you find useful, you’ll soon start to encounter some consequences of doing so.


Slow Performance Through Higher Resource Usage



While smaller systems like netbooks can be noticeably affected with just 2 or 3 extensions, even bigger systems will start feeling the pressure with 10 or more extensions. Affected? How? Well, your browser takes up system resources. Although the programmers try to make it use as few resources as possible, there are no limits to how much resources they can ultimately use.


Although the browser itself may run just fine, extensions add on to that, taking up more memory and CPU cycles. Your system will then start becoming sluggish, and all the benefits of your new extensions will be cancelled out by the slowness of your system. Sadly, there isn’t an extension which can fix that.


Higher Risk of Possible Instability & Security Holes



I’m sure that you’ve heard the idea that the less parts something has, the less likely it is to fail. This is also true with browsers and their extensions, as those extensions could possibly crash the browser or compromise it from a security standpoint. Browser developers try to filter out bad extensions, but in the case of Google, there is absolutely no guarantee you’re safe.


If malware applications can appear in the Play Store for Android, what says that Google has a better control on what extensions reach the Chrome Web Store?


How Do You Manage So Many Extensions?



Finally, if you’re the person that has 10, 15, 0r even more extensions installed on your browser because they’re all “extremely useful and cool and whatnot,” you’re bound to find two extensions that either contradict themselves or have two different approaches of solving the same problem.


A good example is session/tab management. There are plenty of those available for Chrome, and you might feel the need to install more than one of them. Will the two extensions play nice with each other? There’s no guarantee on that either, and it could just mess up or confuse your overall browsing experience, which is supposed to be relatively simple.


Speaking of confusing, even if you don’t have contradicting extensions installed, how the heck do you quickly manage 15+ extensions? I certainly wouldn’t want to have to take time to manage the extensions themselves, the very things that are supposed to make the browser you use better.


Conclusion


In the end, I’m not discouraging people from installing extensions. Heck, I love extensions. The few I use make my life a lot easier. But there’s the key: the few. If you’re able to cut down all your extensions to the ones you absolutely know that you use every day and are very helpful, then you’ll have a speedier browser and less worry about managing your pile of extensions. As for myself, I currently only use FastestChrome and LastPass, and I’m perfectly happy with the way the browser behaves with just those two extensions installed. I’m sure you’ll find your own zen place after you cut back a bit.


How many extensions are you using? Do you wish to share any relevant secrets? Let us know in the comments!


Image Credits: {Guerrilla Futures | Jason Tester}, Wease, Lemon Seltzer











How To Instantly Send Any YouTube Video To Your TV, Using XBMC

Send any YouTube video to your television, instantly. It’s perfect for YouTube parties or anytime you want to comfortably watch a video from your couch. All you need to make living room dreams come true is a media center powered by XBMC and a simple browser extension.


Here’s the scenario. You’re sitting on your couch, browsing the web. You stumble upon a hilarious video and – being a social creature – you want to share it with the people around you. The usual solution is to tell everyone in the room to crowd around your laptop. Sure, it’s a great way to get close to people, but it can get old fast. Which is why I propose to you another solution – hitting a single button below the video to make it play on your TV. It’s easy with the magic of XBMC.


In case you didn’t know, the latest version of XBMC, Eden, is faster and prettier than ever. If you have a computer hooked up to your TV there’s no reason not to install it. It catalogs your media for easy browsing and watching, supports amazing add-ons including Hulu, offers a wide collection of cool skins and generally makes life without cable fantastic for any TV fan. Even better, you can instantly send any YouTube video you find on your laptop to it.


How It Works


You’re browsing the Internet, minding your own business, when it happens. You discover Ze Frank, the original video blogger, is back. The second coming is upon us!


This is clearly a moment you want to share with everyone in the room, right now. Luckily, you’ve got a television with a XBMC center, and this fancy button:



Yep, the one with the XBMC logo. Clicking this button causes happiness, as Ze Frank’s face makes its way to your TV screen.



Now you and everyone in your immediate vicinity can witness amazing. Ready to set this up yourself? You’re obviously going to need XBMC running on a computer hooked up to your TV. It runs on Windows, Mac (even PPC!), Linux and Apple TV, so pretty much any setup should be covered. Once you’ve got that working, follow the next three simple steps.


Step 1: Set Up YouTube On XBMC


First things first: you’re going to need to install the YouTube plugin for XBMC. On your TV, head to the “Settings” screen and you’ll find the “Add-Ons” menu. YouTube is easily found under “Video“; no special repository is needed.


This plugin is awesome: you can sign in and browse your subscriptions from your couch. Feel free to play with this, but for now I’m moving on.


Step 2: Find Your Network Settings


Now that you’ve got YouTube installed on your computer, you should pull up the “Network Settings” page of XBMC. Open it, turn on control by HTTP and allow programs on other computers to control XBMC.



Also set a username and password, if you like. Keep this screen open – we’re going to need it for the next step.


Step 3: Set Up Your Browser Plugins


Ready for the browser plugin? Grab your laptop and head to the YouTube page on the XBMC wiki. Here you’ll find links to extensions for Firefox and Chrome. Install whichever extension you like (or both if you’re a browser polygamist).


Once you do so, you’ll see this settings screen:



Fill this in using the information from the settings screen still open on your TV. Follow the pattern they offer – username:password@host:port – and all should be well. The default plugin will work fantastically, so don’t mess with the second field.


Now head to YouTube and find whatever video you like. The button for playing media will be found beneath your video, as depicted above. Awesome!


Conclusion


I love the Internet way more than I love TV. Having access to the Internet on my TV is pretty much amazing.


Do you know of any other cool television-related YouTube hacks? Share them in the comments below.











Cool Tech Deals Of The Week – HP 2311GT 23in Passive 3D LED LCD Monitor (1920×1080) $189.99 Free Shipping& More

HP has the HP 2311GT 23″ 3D-Capable LED-Backlit LCD Monitor for a low $189.99 and free shipping.


For more fresh hot deals, visit our Hot Tech Deals page, which is constantly updated.



  1. HP 2311GT 23in Passive 3D LED LCD Monitor (1920×1080) $189 (reduced from $299.99) and free shipping after Coupon Code: “SVP471394″ (Exp Soon)..

  2. KEF MODEL3BL Two-Way Satellite Speakers (PAIR) $99.99 (reduced from $399.99) and free shipping .

  3. Tomtom XXL 540 S Portable GPS (REFURB, 5in, Text To Speech) $69.99 (reduced from $299.95) and free shipping.

  4. George Foreman G4 84in Grill w/ 4 Interchangeable Plates $49.99 (reduced from $79.99) and free shipping after Coupon Code: “EMCYTZT1502″ (Exp 4/28).

  5. Sony VAIO VPCF232FX/B Intel Core i7-2670QM 2.2GHz 1080p 16.4 Laptop w/ Blu-Ray $929.99 (reduced from $1149.99) and free shipping.

  6. Vizio E472VL 47in LCD HDTV (Refurb, 1080p, 120Hz) $499.99 (reduced from $739) and free shipping after Coupon Code: “FPW60286″ (Exp 5/2).

  7. Garmin nuvi 3790LMT GPS (REFURB, 4.3in, Traffic & Map Updates) $159.98 (reduced from $399.99)and $2 Shipping or free ship-to-store.

  8. Pre-Order: Max Payne 3 for PC, PS3 & Xbox 360 $47.99 (reduced from $59.99) and free shipping after Coupon Code: “EMCYTZT1513″ (Exp 4/29).

  9. HP Pavilion dv6-6145dx AMD A8-3500M Fusion APU Quad-Core 15.6in Laptop (REFURB) $449.99 (reduced from $999.99)and free shopping.

  10. BenQ W1200 1080p HD DLP Projector (1800Lumens) $799.99 (reduced from $1099.99) and free shipping after Coupon Code: “LUU59485″ (Exp 4/29).