ERROR: 1062 Duplicate entry ‘localhost-root’ for key 1

MySql Server installation fails when your host name is localhost you will get the “ERROR: 1062  Duplicate entry ‘localhost-root’ for key 1” or “ERROR: 1062  Duplicate entry ‘localhost-‘ for key 1”
Simple solution is
Use the command hostname to give your system a host name and also change host name  in the configuration file /etc/sysconfig/network
Source link

Posted in Uncategorized | Leave a comment

How to monitor vos3000 services and start if vos3000 services stop

If you want to monitor vos3000 services and start if vos3000 services stop .VOS3000 version 2.1.2.0 is stop after some time so you can monitor the vos3000 services  and start it . Here I am using three shell scripts to monitor to vos3000 service and start it. I am checking vos3000 service every 5 second and if stops I am starting with a script and send email alert.

Continue reading

Posted in Uncategorized | 3 Comments

How to know vender by MAC address

if you want to know network card vender by MAC address .MAC address first  16 bit is assign to vender  OUI code .
Search your MAC address starting 16 bit below link
http://standards.ieee.org/develop/regauth/oui/oui.txt

VMware uses the Organizationally Unique Identifier (OUI) 00:50:56 for manually generated addresses
Xen project  uses the Organizationally Unique Identifier (OUI)  00:16:3e: for manually generated addresses

Posted in VMware | Leave a comment

how to run jar file from command line

If you are trying to run Java file from command line (run jar file from command line) use the following example
C:\Program Files (x86)\Java\jre6\bin>java -jar .jar

I want to run Nexus 1000v installer from command line i will use following command

C:\Program Files (x86)\Java\jre6\bin>java -jar D:\Nexus1000v.4.2.1.SV2.2.1a\VSM\Installer_App\Nexus1000V-install_CNX.jar

Posted in Uncategorized | Leave a comment

VOS3000 IPtables for port changing vos 3000 client and security

VOS3000 IPtables for port changing :
Use below rule to change your vos3000 client to access server on different port as 7899 or change as per your requirement

iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1202 -j DNAT –to-destination :3720
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 7899 -j DNAT –to-destination :1202
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1202 -j DNAT –to-destination :3720
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 7899 -j DNAT –to-destination :1202
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 3306 -j DROP
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 2501 -j DROP
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1202 -j DROP
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1205 -j DROP
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 143 -j DROP
iptables -A POSTROUTING -t nat -p tcp -m tcp –dport 7899 -j MASQUERADE
iptables -A POSTROUTING -t nat -p tcp -m tcp –dport 7899 -j MASQUERADE

Download  IPtables list and modify as per your requirement 
Download iptables
Edit and upload iptables.txt on your server and apply the iptables rule 
#iptables-restore  <  /your upload path/iptables.txt

 

Posted in Uncategorized | Leave a comment

Microsoft Visio Stencils for Cisco

You will need Microsoft Visio Standard or Professional in order to view and use these stencils correctly. The files listed for download on this page are .vss (Visio stencil) files within .zip files. Some of the .zip files contain Microsoft PowerPoint files in addition to Visio files. The PowerPoint files contain .emf (enhanced metafile) vector images derived from the Visio drawings. These may be copied and pasted into PowerPoint and other applications without requiring Visio.

Download Link :- http://www.cisco.com/en/US/products/hw/prod_cat_visios.html

Posted in Uncategorized | Leave a comment

How to change VOS3000 browser client port

If you want to change VOS3000 browser client port address edit the following file or find server.xml file under apache-tomcat installation conf folder change the Connector port 80 to whatever you want which is not used on system and reboot the system.
# nano /usr/apache-tomcat-5.5.15/conf/server.xml Continue reading

Posted in Uncategorized | Leave a comment

How to change Timezone in VOS3000 after VOS3000 installation

Some tome you want to change Timezone in VOS3000 after VOS3000 installation For Example I want to change my Time zone to Asia/Shanghai

 

easy way to change time zone on centos  run the system command 

# system-config-date

and select your timezone

timezone

 

 

 

 

 

 

 

 

 

 

 

 

 

click OK   and reboot the server.

if  system-config-date  command is not working then install this tool 

# yum install system-config-date

manual way to do this is follow the below steps.

Reinstall Timezone database

# yum -y reinstall tzdata

Install NTP Client to accurate time according to time zone

# yum -y install ntp # chkconfig ntpd on # service ntpd restart Continue reading

Posted in Uncategorized | Leave a comment

How to find Cisco software or IOS Features

 

Find image details by release or platform that support selected features

http://tools.cisco.com/ITDIT/CFN/jsp/by-feature-technology.jsp

Find software image  supported features

http://tools.cisco.com/ITDIT/CFN/jsp/SearchBySoftware.jsp

Compare software images features

http://tools.cisco.com/ITDIT/CFN/jsp/compareImages.jsp

Software images End of Life

http://tools.cisco.com/ITDIT/CFN/jsp/eolMileStoneMultiple.jsp

 

Posted in Uncategorized | Leave a comment

CentOS ISO Images Download

CentOS 6.3 32 bit minimal install ISO
http://mirror.wiredtree.com/centos/6/isos/i386/CentOS-6.3-i386-minimal.iso

CentOS 6.3 64  bit minimal install ISO
http://mirror.wiredtree.com/centos/6/isos/x86_64/CentOS-6.3-x86_64-minimal.iso

Good mirror site for all CentOS ISO images
http://mirror.wiredtree.com/centos/

http://archive.kernel.org/centos-vault/

 

 

Posted in Linux | Leave a comment