Is the server a VM

Issue: Have you ever worked at a large company and get someone telling you their server is a VM but you can’t locate it?

What might have happened:

  1. the servers name was changed at on the VM or OS and someone has the new or old name and it no longer synced correctly
  2. out of date inventory/cmdb
  3. it could be physical
  4. DNS alias

A workaround:

Here are some commands that will help track down the system, you can twink a few of these commands to get additional data. You will need access to the server OS that you are trying to track down for these commands to work.

Linux:
dmidecode -t system | grep ‘Manufacture\|Product\|Version\|Serial Number\|UUID’
dmesg | grep -i hypervisor (maybe)
ifconfig
hostname

Windows:
wmic computersystem get model,name,manufacturer,systemtype
ipconfig /all
hostname

Solaris:
prtdiag -v | head -3
/usr/sbin/ifconfig -a
arp -a
/usr/bin/netstat -pn | grep SP
ipadm show-addr (solaris 11+)
hostname
uname -n

Advertisements

Default new mail sound location for lotus notes on linux

Lotus Notes 8.5.3 default new mail sound location is pulled from /usr/share/sounds/freedesktop/stereo for RHEL. Copy your .wav files to this location for them to show up in the “Play a sound” menu for when you get new email.

Command colors when login on as root/user

To add red to command line when logged in as root add
1. open
/root/.bashrc

2. add
PS1="\[\e[31m\]\u@\h:\w#\[\e[m\]"

To add green to command line when logged in as a normal user
1. open
~/.bashrc

2. Add
PS1="\[\e[32m\]\u@\h:\w\$\[\e[m\]"

How to join linux to AD

There is a great article how to join Linux systems to AD at

http://blog.scottlowe.org/2007/01/15/linux-ad-integration-version-4/

PowerShell open source?

I read about

Pash = PoSH (PowerShell) + bash (one of the Unix shells)

today, its a open source reimplementation of powershell for mac, linux, solaris, window mobile, etc. Looks like this could be something that could great for scripters in heterogeneous environments.

BLOG:

http://igorshare.wordpress.com/2008/04/06/pash-cross-platform-powershell-is-out-in-the-wild-announcement/

Website:

http://pash.sourceforge.net/

Setup YUM in Fedora 7 for use with a proxy

Proxy settings in fedora and firefox does not control YUM so

In

/etc/yum.conf

And with vi or other text editor add

proxy=http://server.domain.com:portnumber
proxy_username=username
proxy_password=password

proxy username and password are optional if your proxy requires it

Note: you can read more up on YUM setup in the fedora Documentation “Managing software with yum” heading number 11 “Using yum with a proxy server” available at http://docs.fedoraproject.org/yum/en/

Installing VMWare Server 1.0.3 in Fedora 7

Tip: Every time you upgrade the kernel you will need to rerun the following steps.
Tip: Tip if you have more then 4GB of ram install you will need to have the PAE kernel installed and changed in grub config file to boot to the PAE kernel first

Vmware Server

Run

yum install gcc gcc-c++ kernel-devel xinetd   

uname -r

Next step needs to match the previous step

rpm -q kernel-devel

If the previous step did not match then run

yum -y upgrade kernel kernel-devel

Install the vmware rpm

Get “vmware-any-any-updatexxx” From http://ftp.cvut.cz/vmware/ and install it

Create a blank “config.h” in; Note: the xxx will be the kernel build number

/usr/src/kernels/xxx/include/linux

Go to

/usr/bin/

Run

./vmware-config.pl      

Management Website

Run

./vmware-install.pl

Go to

/usr/bin/

Run

./vmware-config-mui.pl

Another tutorial can be found at http://www.howtoforge.com/vmware_server_fedora7 if you need more help