Querying network card information and status

Great tool for checking ethernet NIC information in linux:

ethtool

In ubuntu you might need to install it like so :

sudo apt-get install ethtool

The tool is easy to use:

 

Use

ifconfig -a 

to list nics

then

 

root@wo1:~# ethtool p4p1
Settings for p4p1:
Supported ports: [ TP ]
           Supported link modes: 10baseT/Half 10baseT/Full
                                            100baseT/Half 100baseT/Full
                                            1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes:            10baseT/Half 10baseT/Full
                                            100baseT/Half 100baseT/Full
                                            1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
                                    drv probe link
Link detected: yes
root@wo1:~#

 

nJoy 😉

Vmware Client Automating connections

This is a hint from Andrew Thanks..

 

 

C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe -i yes -s 10.21.68.8 -u root -p password

 

Works !

In a batch:

start “VMLauncher” /D”C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\” VpxClient.exe -i yes -s 10.21.68.8 -u root -p password”

 

Thanks nJoy 😉

 

 

Convert DEB to RPM or RPM to DEB Package

You can convert DEB file to RPM package and RPM to DEB package using alien command, if you have a *.rpm file that you want to install on a Debian or Ubuntu.

Convert RPM to DEB

Install alien command on Ubuntu as mentioned here:

# sudo apt-get install alien

Now, use alien command to convert rpm to deb file,

# alien clamav-0.92.1-1.el5.rf.i386.rpm

clamav-0.92.1-1.el5.rf.i386.deb generated

Finally, Install deb packages using the dpkg command,

# dpkg -i clamav-0.92.1-1.el5.rf.i386.deb

Where,
-i = install a package

Convert DEB to RPM

Use alient -r option to convert a deb file to rpm file.

# alien -r clamav-0.92.1-1.el5.rf.i386.deb

clamav-0.92.1-1.el5.rf.i386.rpm generated

Once you generate the rpm file, you can install it on Red Hat, Fedora or CentOS.
Finally install rpm,

# rpm -ivh clamav-0.92.1-1.el5.rf.i386.rpm

Where,
-i = Install RPM
-v = Install in verbose Mode
-h = Print  50  hash  marks  as the package archive is unpacked

nJoy 😉

 

Sysadmin as a Job

So .. Today I got a question asked to me :

” why did you leave programming to become a sysadmin? ”

This came as a surprise question from a new friend I have. And it got me thinking…
Why sysadmin ?

(more…)

Restarting shpinx for kaltura

Common problem with kaltura..

Common solution …

pkill searchd 
/opt/kaltura/bin/sphinx/searchd -c /opt/kaltura/app/configurations/sphinx/kaltura.conf

nJoy 😉

.Net Restart an ASP.NET application programmatically without editing the web.config

Windows oddly.. but a good friend found this it’s on her site:

http://rochcass.wordpress.com/2013/03/28/restart-an-asp-net-application-programmatically-without-editing-the-web-config/

to quote:

Several times I would be working on a site and some data would not change due to session variables or the .NET cache. This can’t be eliminated by clearing the browser cache but would need the whole ASP.NET application to be restarted to clear all sessions and cache. A traditional way of doing so is to edit the web.config slightly (a space, comma, fullstop would do the trick) … however this was happening often so I decided to restart my application automatically through my code. To do so, I used the Global.ascx on application_start and added this simple line of code which restarts the ADO.NET application:

System.Web.HttpRuntime.UnloadAppDomain();

 

Thanks Roch..

nJoy;-)

 

Accessing ESX management interface (DCUI) from ssh

Access the ESXi Direct Console User Interface (DCUI) over SSH

When not in position to go to the DC to access the ESX text mode interface use the DCUI command:

First you need to enable and start Remote Tech Support (SSH). This is done for the ESXi Host in Configuration -> Software -> Security Profile


Use an SSH client (putty) to connect to the ESXi host.

Once logged in simply run dcui

~ # dcui

Look familiar? Want to change the color to look like the console – check out this post.

To exit DCUI and return to the prompt use CTRL-C

KB article : here

 

nJoy 🙂