Traffic

How to see network cards in solaris10

How to see network cards in solaris10

# more /etc/path_to_inst

see in the last lines
"/pci@1d,700000/network@2" 2 "bge"

This shows u have 2 network cards

# ifconfig -a - This will show the active card bge0

bge0: flags=1000843 UP,BROADCAST,RUNNING,MULTICAST,IPv4 mtu 1500 index 2
inet 192.122.100.126 netmask ffffff00 broadcast 146.122.157.255
ether 0:3:ba:25:47:c9\
bge1: flags=1000844 Down,BROADCAST,RUNNING,MULTICAST,IPv4 mtu 1500


To Find the MAC address of other card use

# ifconfig bge1 plumb

use this to activate for the time being u can use unplumb to deactivate if dont require.

#ifconfig -a

It display both the cards with MAC address.

Thanks
Naveen

Creation of user and group in solaris10

Creation of user and group in solaris10

From command mode :-

#groupadd -g gid groupname - to create a new group.
eg:- groupadd -g 200 newgroup

#more /etc/groups
to check if the group is created

#useradd -u -g -d /export/home/userhomedirectory -m -s /bin/sh username

eg:- useradd -u 200 -g 200 -d /export/home/naveen -m -s /bin/sh naveen.

#passwd naveen
enter passwd

#more /etc/passwd
#more /etc/shadow
-This is used to check the user and passwd entries are available.

GUI MODE :-

Type SMC at command mode

#smc - solaris management console



2)Double click user tab



3)Click on the create user option and enter the information



4)Enter user id .



5)Enter Password.



6)Enter group.



7)Enter Home Directory.



8)Enter default Mail server path.



9)Click finish and user is created same way u can also create group.
For testing #su - naveen - if you are trying to login from root it will not ask for passwd so use #telnet localhost and enter username and passwd.



Thanks & Regards
Naveen

Create or Delete A Service in Windows XP

Create or Delete A Service in Windows XP.
1)Create a service
Start Run and type cmd in the Open: line. Click OK.
Type: sc create servicename (or use double quote :- "service name")
Reboot the system .



2)To Delete A Service
Start Run and type cmd in the Open: line. Click OK.
Type: sc delete or use sc delete "service name"
Reboot the system



If you prefer to work in the registry rather than through the command prompt to delete services;
Click Start Run and type regedit in the Open: line. Click OK.
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
Scroll down the left pane, locate the service name, right click it and select Delete.
Reboot the system


Thanks naveen

Getting error software connection disconnected using putty.

Q)while connecting through putty using ssh a remote host I am getting error after two minutes software connection disconnected but when i am trying the same from telnet the problem does not come.
Ans)This is one bug in putty.exe file which is not fixed yet if the network connectivity is poor it will give some problem better use other softwares to connect ssh
http://www.freedownloadscenter.com/Best/free-ssh-tools.html
you can download one from here.

Thanks
Naveen

Run level shell script to start Oracle 10g services on RedHat Enterprise Linux

#!/bin/bash
#
# Run level script to start Oracle 10g services on RedHat Enterprise Linux (RHAS 4)
# Script should work on other UNIX like oses :)
# -------------------------------------------------------------------------
# Copyright (c) 2007 Free ware support
# This script is licensed under GNU GPL version 2.0 or above
# Comment/suggestion:
# -------------------------------------------------------------------------
# chkconfig: 345 91 19
# description: Startup/Shutdown Oracle service

OUSER="oracle"
OPATH="/home/oracle/oracle/product/10.2.0/db_1"

# check Oracle db status
function chkdb_status() {

# set username
SUSER="scott"
# set password
SPASS="123456"

sqlplus -s /nolog > /dev/null 2>&1 <whenever sqlerror exit failure
connect $SUSER/$SPASS
exit success
EOF

if [ $? -ne 0 ]; then
echo "Connection failed : DB is down"
exit 1
else
echo "Connection succeeded : DB is up"
fi
}

case "$1" in
start)
echo "*** Starting Oracle *** "
su - $OUSER -c "$OPATH/bin/lsnrctl start"
su - $OUSER -c "$OPATH/bin/dbstart"
;;
stop)
echo "*** Stopping Oracle *** "
su - $OUSER -c "$OPATH/bin/lsnrctl stop"
su - $OUSER -c "$OPATH/bin/dbshut"
;;
restart)
$0 stop
$1 start
;;
isqlstart)
echo "*** Starting Oracle iSQL Plus *** "
su - $OUSER -c "$OPATH/bin/isqlplusctl start"
echo "*** Note: You can access service at url: http://$(hostname):5560/isqlplus"
;;
isqlstop)
echo "*** Stopping Oracle iSQL Plus *** "
su - $OUSER -c "$OPATH/bin/isqlplusctl stop"
;;
emstart)
echo "*** Starting Oracle Enterprise Manager 10g Database Control ***"
su - $OUSER -c "$OPATH/bin/emctl start dbconsole"
echo "*** Note: You can access service at url: http://$(hostname):1158/em"
;;
emstop)
echo "*** Stopping Oracle Enterprise Manager 10g Database Control ***"
su - $OUSER -c "$OPATH/bin/emctl stop dbconsole"
;;
status)
echo "*** Oracle database status ***"
chkdb_status
;;
*)
echo $"Usage: $0 {startstopisqlstartisqlstopemstartemstop}"
exit 1
esac
exit 0


Thanks
Naveen

Getting multiple copies of e-mail in outlook while sending and recieving

1)Close the Outlook

2)Open Control panel and double click Mail.



3)click E-mails accounts



4)check view or change e-mail account---next



5)Double click microsoft exchange server and uncheck the option use cached exchange mode and finish





Thanks
Naveen Kumar

Installing Hyperterminal in window vista

Microsoft has removed HyperTerminal from Windows Vista, if you need to connect to a Cisco router through a local COM port and unix machines.

You could also use the old XP Hyper terminal. Just extract two files hypertrm.dll and hypertrm.exe. You can put them anywhere on the disk, no installation required. Of course, for that you need to have XP to extract files from

or

ftp://ftp.hilgraeve.com/htpe/htpe63.exe

download the file and run the exe files it will automatically install hyperterminal in start program menu.

Thanks
Ajit Kumar