How to transfer VOS3000 database on remote server easly

Its very long process to transfer vos3000 or my sql database to remote server as you take backup and restore on remote server. This is how to transfer VOS3000 database on remote server easly

#mysqldump -u root -pPPPP  vos3000db | ssh root@x.x.x.x  mysql -u root -pKKKK  vos3000db

PPPP is local mysql root password  KKKK is  remote mysql root password x.x.x.x change with your vos3000 or mysql database server IP address

vos3000db is the database which will transfer from loacl server to remote server.

Hope it will help you .

if mysqldum is not working giving error copy backup file locally and restore the backup file as below command.

mysql -h localhost -u root -pPPPP vos3000db < vos3000dbbackup.sq

 

Posted in Uncategorized | Leave a comment

Cisco UCS Boot from SAN

How to boot Cisco UCS Blades Boot from SAN.

Step-1   Enable NPIV on your SAN Switch .Please refer to your switch configuration document.
Step-2 Create Server profile
Step-3  Create Boot Policy

a- Configure boot order  1  CD ROM
b- Configure boot order  2  Storage  (Very Important step)
1- SAN target Primary  vHBA1  Lun ID should be 0 and WWN of  SAN  Controller  (SPA-1)
2- SAN  target  Secondary vHBA2  Lun ID should be 0 and WWN of SAN Controller  (SPA-2)

Note:- if you will not define WWN of SAN storage in boot policy then vHBA WWN will not appear in MDS Switch flogi database.

see the figure below

Step-4 Assign boot policy to server profile.
Step-5 Assign server profile to the UCS blade.
Step-6 Power on or Boot the UCS Blade.
Step -7 Login in to your cisco MDS Switch
Check your UCS Blade vHBA wwn is available on flogi database . It should appear in MDS switch flogi database.

Note:-  vHBA WWPN should appear in  MDS switch flogi database PORT NAME
Step-8  Make Zoning and activate the zoneset   on MDS Switch so SAN Storage and UCS Blade vHBA can   see each other and communicate.
Step -9  Assign LUN to the vHBA wwn   (Configure LUN for Boot from SAN)
Step -10 Reboot the UCS Blade , while booting you must be able to see LUN assigned to blade .or choose  boot option you must be able to see LUN assign to UCS Blade.
Step -11 Now map the ISO Image of installation VMware or Windows 2008 media.
Step -12 Install the OS.
Step -13 After installation if it goes well then operating system should boot from SAN .if it is not booting from SAN and your installation had done well then contact your SAN Administrator to check from SAN side. SAN storage require some configuration to Boot from SAN.

Note:- If you are not able to see hba wwn on SAN management application make sure you have given corrent SPA wwn on boot target.

Hope it will be help full.

 

Posted in Uncategorized | Tagged | Leave a comment

How to create Zone and activate Zoneset Cisco MDS Switch

How to create Zone and activate Zoneset Cisco MDS Switch

Here in below Example I will describe how to configure Zones and activate them to use multi pathing in Cisco Fabric Switches. configuration may be various in different models.

Scenario :-  We have storage which is connecting to Cisco Fabric MDS Switches . Storage is having Two Controllers and each controller is having two FC connection connected to each Fabric Switch see diagram as below.So each server is making four path to the  storage LUN. So will creates zones and add to the active zoneset and activate the zoneset. by default VSAN1 is in MDS switch it is recommended to create new VSAN make all the zone and zoneset other then VSAN1.

 

Step -1 Creating Zones on Fabric Switches

Plan Zone Names for all paths . for Example

SPA-ServerNameHBA1-SW1   (on Fabric Switch 1)

SPB-ServerNameHBA1-SW1 (on Fabric Switch 1)

SPA-ServerNameHBA2-SW2 (on Fabric Switch 2)

SPB-ServerNameHBA2-SW2 (on Fabric Switch 2)

Note:- pwwn will be member of Zones

Zones will be the member of Active Zoneset in one VSAN.

a- Login in to Fabric Switch and check the pwwn on connected ports and identify the servers. to do this use command

Note:- I have changed actual address with xx:xx:xx:xx:xx due to security reason.

Here you will identify the ports connected to servers and SAN Storage.

#conf t

Follow the above steps for all your zones need to be created .

Step-2 Now make member of above Zones to active zoneset of your VSAN.

to check which zoneset is active

Now add your all zones to active zoneset. on above output test is the active zoneset on VSAN1. now to test zoneset and add the zones. if you dont have active zoneset same command will create zoneset and you have to active the zoneset.

Step-3 Now you have to activate the zoneset either you have created new zoneset or added new zones to the zoneset.

Step-4 Now save the configuration and exit.

# copy running-config startup-config

Now should be able to see all pwwn in your storage management software.

Cisco Docs for help Click here

Important commands

mds# show flogi database
mds# show zone
mds# show zoneset
mds# sh vsan
mds# sh running-config

Hope it will  be helpful to you. for more help consult MDS switch configuration guide .

Posted in Uncategorized | Tagged | Leave a comment

Common Access list for Small office Cisco Routers

Common Access list for Small office Cisco Routers

Below are the commonly used access list to prevent virus attack on your Cisco Router.I have used this access-list to prevent virus attacks on SOHO routers as small offices and homes which is not having Cisco Firewalls.

access-list 129 deny   udp any any eq 135
access-list 129 deny   tcp any any eq 135
access-list 129 deny   tcp any any eq 137
access-list 129 deny   tcp any any eq 138
access-list 129 deny   tcp any any eq 139
access-list 129 deny   udp any any eq 445
access-list 129 deny   tcp any any eq 445
access-list 129 deny   tcp any any eq 777
access-list 129 deny   tcp any any eq 778
access-list 129 deny   tcp any any eq 707
access-list 129 deny   udp any any eq 666
access-list 129 deny   tcp any any eq 1022
access-list 129 deny   tcp any any eq 1023
access-list 129 deny   udp any any eq 1434
access-list 129 deny   udp any any eq 2048
access-list 129 deny   tcp any any eq 2688
access-list 129 deny   udp any any eq 4000
access-list 129 deny   tcp any any eq 2556
access-list 129 deny   tcp any any eq 2745
access-list 129 deny   tcp any any eq 4444
access-list 129 deny   tcp any any eq 4751
access-list 129 deny   tcp any any eq 5554
access-list 129 deny   tcp any any eq 5557
access-list 129 deny   tcp any any eq 5556
access-list 129 deny   tcp any any eq 9996
access-list 129 deny   tcp any any eq 17771
access-list 129 deny   tcp any any eq 6789
access-list 129 deny   tcp any any eq 54112
access-list 129 deny   tcp any any eq login
access-list 129 deny   tcp any any eq finger
access-list 129 deny   udp any any eq netbios-ss
access-list 129 deny   udp any any eq netbios-ns
access-list 129 deny   udp any any eq netbios-dgm
access-list 129 deny   ip host 0.0.0.0 any
access-list 129 deny   ip 127.0.0.0 0.255.255.255 any
access-list 129 permit ip any any

Posted in Uncategorized | Tagged | Leave a comment

How to configure DSL connection on Cisco Router 820

How to configure DSL connection on Cisco Router 820

Below are the configuration I have tasted for Fast Telco DSL Connection in Kuwait. Change the DNS  PVC  and Username password according to your ISP.

Router# sh startup-config
Using 1318 out of 131072 bytes
!
version 12.2
no parser cache
no service single-slot-reload-enable
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
logging rate-limit console 10 except errors
no logging console
!
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip subnet-zero
!
ip dhcp pool local
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 62.215.6.5
!
no ip dhcp-client network-discovery
vpdn enable
!
vpdn-group pppoe
request-dialin
protocol pppoe
!
!
!
!
interface Ethernet0
description LocalNetwork
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip tcp adjust-mss 1452
!
interface ATM0
no ip address
no atm ilmi-keepalive
pvc 1/100
pppoe-client dial-pool-number 1
!
dsl operating-mode auto
!
interface Dialer1
mtu 1400
ip address negotiated
ip nat outside
encapsulation ppp
dialer pool 1
ppp chap hostname  username
ppp chap password 7  Password
ppp pap sent-username username password 7  Password
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer1
ip http server
!
ip nat inside source list 1 interface Dialer1 overload
access-list 1 permit 192.168.1.0 0.0.0.255
!
line con 0
stopbits 1
line vty 0 4
!
scheduler max-task-time 5000
end

Posted in Uncategorized | Tagged | Leave a comment

How to retrive vos3000 admin password or reset password

How to retrive vos3000 admin password or reset password

If you forget Vos3000 admin password you don’t need to worry if you know your MySQL root password.Vos3000 store their password in clear text  so you can read the password.

This is how to retrive vos3000 admin password
Login as root on vos3000 server
login to MySQL

[root@vostest ~]# mysql -u root -p vos3000db
Enter password :-  (enter your MySql Password)l

 

Now you are able to see your forget admin password Now login V0s3000 client and change your password.

 

Posted in Uncategorized | 1 Comment

How to transfer Vos3000 server database to new Vos3000 server

How to transfer Vos3000 server database  to new  Vos3000 server

VOS 3000 use MySQL database to for their database named  vos3000db

If you want to backup and restore VOS 3000 database or transfer Vos3000 server database to new VOS 3000 server  follow the below steps :-

Login as root on old server

[root@centos]# mysqldump -u root  -p  vos3000db > vos3000backup.sql

Enter password: (enter your MySQL root Password)

Now copy  vos3000backup.sql   file to new server  execute below command to restore

#scp vos3000backup.sql  root@newserverip:/var/

Now Login on New Server

cd /var

[root@centos]# mysqldump -u root  -p  vos3000db  < vos3000backup.sql

Enter password: (enter your MySQL root Password of new server)

if command execute successful then your database is restore.

if you are getting error to restore database try below command

mysql -u root -pxyz  vos3000db <vos3000db.sql

To Backup VOS3000 databse execpt CDR data

Stop vos3000 service ,
  /bin/tar -jcvf /home/kunshi/vos3000/databackup/vos3000.tar.bz2   –exclude *cdr*    /var/lib/mysql/vos3000/

 

Posted in Uncategorized | Tagged | Leave a comment

Windows Server 2008 Step-by-Step Guides

Windows server 2008 configuration guides
http://www.microsoft.com/download/en/details.aspx?displaylang=enid=17157

Posted in Uncategorized | Leave a comment

How to change VMware ESXi 4.x password

How to change VMware ESXi 4.x password

Login in to VMware vSphere Client

Click on Host Server    and click on Local users and group then Right click on “root” choose edit

Click on Check box “Change Password”

Insert the new password  and Confirm the password then click OK .

Now Logout from vShpare Client and login with new password

Posted in VMware | Tagged | Leave a comment

How to configure Gtalk on Trixbox

Configuring the gtalk account in Trixbox. This can really be your company DID for receiving and making gtalk to gtalk or gtalk to world calling.

Follow the below steps :-

1- Install start up modules
# yum update
# yum install gcc*
# yum install theo*
# yum install ikse*
# yum install gnutls*
# yum install xmlsec*
# yum install speex*

2- Gtalk’s jingle protocol runs over TLS hence we need to add TLS support in our server.
You can verify whether the TLS has been installed properly or not by writing following simple C program.

 

# cd /etc/asterisk/

# nano gtalk-tls.c

——————————————————————————————

#include <stdlib.h>
#include <stdio.h>
#include <iksemel.h>
int main()
{
printf(“Checking server for TLS\n\r”);
if(iks_has_tls())
printf(“Yes !! We have TLS.\n\r”);
else
printf(“Sorry !! I dont find it.\n\r”);
return 0;
}

—————————————————————————————–

Save the file and exit

3- Now compile the gtalk-tls.c

# gcc -l iksemel -o gtalk-tls gtalk-tls.c

4- Now run the  gtalk-tls.c

# ./gtalk-tls

Checking server for TLS
Yes !! We have TLS

5-  Now we will check the config file for gtalk and jabber

# nano  /etc/asterisk/gtalk.conf
[general]
context=googlein
allowguest=yes
bindaddr=LANIP ; If you are running on Public IP then
; bindaddr=PUBLICIP
externip=PUBLICIP

;
[guest]
disallow=all
allow=ulaw
context=googlein

[buddy]
username=mybestfriend@gmail.com

disallow=all
allow=ulaw
context=googlein
connection=asterisk

# nano  /etc/asterisk/jabber.conf
[general]
debug=yes
autoprune=no
autoregister=yes

[asterisk]
type=client
serverhost=talk.google.com
username=myaccount@gmail.com/Talk
secret=mypassword
port=5222
usetls=yes
usesasl=yes
buddy=mybestfriend@gmail.com
statusmessage=”Your status message ”
timeout=10

6-   Now we need to configure gtalk audio conection protocol “Jingle”

# nano /etc/asterisk/jingle.conf
[general]
context=googlein
allowguest=yes
bindaddr=LANIP ; If you are running on Public IP then
; bindaddr=PUBLICIP
externip=PUBLICIP

;
[guest]
disallow=all
allow=ulaw
context=googlein

[buddy]
username=mybestfriend@gmail.com

disallow=all
allow=ulaw
context=googlein
connection=asterisk

7-   You have to add custom context in order to integrate gtalk with asterisk, Trixbox for incoming and outgoing calls

For Incoming call to extension as Extension no 101  or replace with your extension no where you want to receive call.

 

# nano  /etc/asterisk/extension_custom.conf
[googlein]
exten => s,1,NoOp( Call from Gtalk )
exten => s,n,Set(CALLERID(name)=”From Google Talk”)
exten => s,n,Dial(SIP/1001) ; 1001 is the extension where I want to terminate the incoming call on my gtalk id.
For outgoing calls to your buddy list ,you will have to assign extension numbers to your friends . So when you will call that extension number Trix box will call your friends.

 

Go to extensions.conf and  under [from- internal]  add the extensions mapped to gtalk buddies

 

[from-internal]

include => from-internal-xfer

include => bad-number

;[googleout]

exten => 2000,1,Dial(gtalk/asterisk/friend-1@gmail.com)

exten => 2001,1,Dial(gtalk/asterisk/friend-2@gmail.com)

 

 

8- Configure RTP protocal

# nano  /etc/asterisk/rtp.conf

[general]
;
; RTP start and RTP end configure start and end addresses
;
rtpstart=10000 ; this is default range
rtpend=20000

rtpstart=1650 ; This is needed by gtalk
rtpend=4560

rtpstart=40000 ; This is the UDP port range from where the audio traffic will go.
rtpend=66000 ; This will also help you in debugging.

 

9- Now Restart the asterisk services

 

[Trixbox $] # asterisk -r
Trixbox CLI> reload

10 – Test the jabber
Trixbox CLI> jabber test

User: mybestfriend@gmail.com

Resource: 1A945032
client: *******
version: ANYTHING
Jingle Capable: 1
Priority: 1
Status: 1
Message: Speeding up !!!

11- Now your are done

 

Try to call  your friend buddy using there mapped extension number .

Test receiving calls .

Posted in Uncategorized | 1 Comment