Use small hack in the customer testing environment

Source: Internet
Author: User

Because the customer's minicomputer test environment does not allow direct login, it only gives a test environment with Web login to log on to the platform in a centralized manner. It is the access permission of only a few programs provided by citritx virtual machine, such as SecureCRT, Firefox, IE, and Remote Desktop. The test machine is an aix 570 running on p6 6.1. It can only be telnet through SecureCRT in citrix, And the IP address of the small machine cannot be pinged directly, so it cannot be telnet from the local SecureCRT directly.

In the process of learning aix, it is always a command line operation. It is often necessary to record the output results of some commands. However, because the SecureCRT running in citrix copies the output results and does not paste them locally, so it is inconvenient, So I thought about how to copy the output result copied by SecureCRT to the local machine.

I have read several programs provided by Citrix, as well as browsers. Since they are virtual machines, the SecureCRT and Firefox that I run simultaneously in citrix should be running on the same virtual machine, the shared clipboard is used. To verify this, open both programs and copy something in SecureCRT and paste it to the address bar of Firefox, this provides an idea to solve this problem: the local machine builds a web server and runs Firefox in Citrix to directly fill in the output results copied from SecureCRT to the Local web server, when it is submitted to the database and the Local Machine queries it from the database, isn't the result returned?

For the sake of simplicity, we use the simplest solution: wamp server, which is the packaging solution of apache + mysql + php. Because the wamp server comes with phpMyAdmin, it is simpler to directly create a database table in mysql on the local machine, and then directly use phpMyAdmin in Citrix Firefox to insert data. To achieve this purpose, after installing the wamp server, you can configure a simple configuration (including the usage method ):

1. Allow the web server of the local machine to be accessed by a remote machine.

Remote access to the Web server is simple. Click the green icon of the wamp server taskbar tray and select to switch to online mode. access the Web server from the local IP address in Citrix Firefox, the wamp server Interface is displayed successfully.

2. Allow phpMyAdmin to be accessed by a remote machine.

After Wamp server is installed by default, phpMyAdmin is not allowed to be accessed by remote machines. Of course, this is based on security considerations, but these are not problems in my testing environment. Edit c:/wamp/alias/phpmyadmin. in the conf file, change "Deny from all" and "Allow from 127.0.0.1" to "Deny from none" and "Allow from all. Restart all wamp services, click the green icon of the wamp server on the tray of the taskbar, and restart all services. wait a few seconds until the icon turns green again, and then click phpMyAdmin on Citrix Firefox, the logon interface should already be displayed.

3. By default, you can log on to phpMyAdmin with the username and root password empty. After wamp server is installed, the default mysql root Password is empty, because it is only for your own test Purpose, so you don't have to worry too much.

4. This step can be performed through phpMyAdmin in firefox on the local machine. Create a database in MySQL and call it aix. Create a table in the aix database, also known as aix. The table creation statement is as follows:

Create table aix (id int primary key auto_increment, text longtext, time timestamp );

Three fields are created. When you fill in the statement output by SecureCRT, you only need to paste the content and execute it. The id and time are automatically generated, which is convenient.

5. After the database and table are created, you can start to insert data. In phpMyAdmin of Citrix Firefox, click the created database aix on the far left, and then click "insert" on the right of the aix table under "structure ", then paste the output result copied from SecureCRT into the large text box and click "execute" below.

6. Click "Browse" on the right of the aix database aix table in phpMyAdmin of firefox on the local machine. In the text field in the result below, all the information is here. If you want to copy one, click it on it. The edit box will pop up, ctrl + a, ctrl + c, and esc in one breath, now you can paste the information wherever you want.

This is a simple task, but it is an excellent opportunity to train and solve the problem. In the end, the problem is solved. Well, there is always a way that people can come up.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.