In many cases, we may need to log on to the Cisco switch to execute some common viewing commands, but it is troublesome to run cmd, enter the password, and enter the command.
The discovery can be achieved through batch processing, as shown in figureLog on to the Cisco switch 192.168.0.1 and Ping another switch 192.168.0.2.
The script is as follows:
Code highlighting produced by Actipro CodeHighlighter (
Enter in CMD runNET use Z: \\server\C$ "PASSWORD"/user: "USERNAME"or net use \\10.1.40.22\ipc$ "1"/user:administratorYou can also \\10.0.0.1\ the directoryThe specific commands help as follows:You can also run cmd on your own after you enter NET help useOften need to access the LAN on other machines on the shared folder, such as \\192.168.1.1\d$, the first time you visit, you need to enter a user name and password to enter, even if the "Save password" option is not checked, the next time you
Add the following code to the ~/.bash_profile, if none of the files can be created by yourself: Java code
VI ~/.bash_profile
#加入
#export ps1=' [[email protected] w]$ '
Uppercase W represents the last path, and lowercase w for detailed path
#保存
Make variables effective: Java code
SOURCE ~/.bash_profile
Re-Login
On a Linux system, when you create a new user with the Useradd command, the shell start
Tags: required oracle Security user nameIn the early days of the National Day, Oracle 11 was installed on CentOS 6.5 to test colleagues, and what was used was normal. Before the festival I take a day off, call me that the system in the machine can not log in from the command line, enter the user name password, and then jump to the login interface, had to push to the section to solve.Yesterday went to look,
Innodb_log_file_size parameter is set to 5 m in the configuration file, which is not enabled by default. Although not enabled, there is a default value, but the default value is inconsistent with the actual ib_logfile numeric size, causing the Innobackupex command to check for inconsistencies in the setting of these parameters during execution and to abort the backup process. After modifying the configuration file after the parameter is 5M, then perf
Abstract: Syn good son source: Http://www.cnblogs.com/cssdongl reprint please indicate the sourceQuick mark the details of this command, lest later use and forgetWe all know that you can use echo to output content to a file, such as echo "Hello,word" >> temp.txtSo what do I do now to output the screen of Hadoop or Spark's command to a file? Very simple, the command
Login Linux The system command prompt appears as: -bash-4.1$1. Description of the problemLogin Linux The system command prompt appears as follows:
-bash-4.1$-bash-4.1$
2. Cause Analysisconfiguration file for user-related environment variables . BASHRC and bash_profile. 3. Workaround/etc/skel when a new user is createdthrough the Useradd comman
Nginx Command parameters:Such as:NGINX-T: Test configuration is correct:This indicates that the configuration file has any problems with the wood.Nginx-s Reload: Action Load Latest configurationThe main function of this command is to do the process without interruption.Nginx-s Stop: Stop NowThis is no matter 3,721 straight stop off.Nginx-s quit gracefully StopThis is done when you perform the request before
environment configuration, so check three places, the first "Java_home"The content of the Java_home is the JDK installation directory. Location:D:\Program Files (x86) \java\jdk1.7.0_60, and no semicolon behind
Second, check classpath, which is a call to a jar package. .; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; (preceded by a number and semicolon, and a semicolon at the end.)Or can be written as ".; %java_home%\lib ", the same effect.
Third check if the "PATH" variable is corre
The IoV command is a Linux operating system. If the osscmd is switched to the osscmd, modify the URL in URL. Html ?" The previous field is "diagnostics", and then press Enter to enter the support diagnosis interface;Select "support access", check the following options, and enter the password to use for root user logon. Note: When using ssh to log on, you must add the "soho"
Batch Processing directly logs on to the cisco switch and executes commands. In many cases, we may log on to the cisco switch to execute some common viewing commands. However, every time we run cmd, enter the password, and enter the command, it is troublesome. It can be achieved through batch processing. For example, if you log on to the cisco switch 192.168.0.1
Label:C:\users\administrator>mysql-h localhost-p 3390-uroot-p (-p followed by port number, P is capital letter)
Enter Password: *********
Welcome to the MySQL Monitor. Commands End With; or \g.
Your MySQL connection ID is the
server version:5.6.21-log mysql Community server (GPL)
Copyright (c) #, O Racle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of the Oracle Corporation and/or its
affiliates. Other names tra
Article Title: precise Command record after a LINUX user logs on. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Main functions:
Which ip address and time (accurate to seconds) can be recorded and what commands are made?
When a user logs on, redefines the HISTFILE
The HISTFILE file name contains the logon user
1, Download: OpenSSH for WINODWS:HTTP://PAN.BAIDU.COM/S/1RDAOG
2, installation: Next >>> Complete..
3. Windows environment variables: Right-key computer--> Properties--> advanced system settings--> environment variables--> System variables: Edit path, append at end of line; C:\Program Files (x86) \openssh for Windows\bin--> various OK
4, copy the public key and private key to the Windows installation path of the. SSH directory
5, open the Windows command
-downloadonly:yum-y install Yum-downloadonlyuse:yum-y install--downloadonly--downloaddir=/tmp/firefox 3. Install Firefox and download dependent componentsNote: RPM-IVH may report a software conflict or a dependency, if the use of RPM-E--nodeps Force assistance after installation, may appear rpm, yum commands such as abnormal or unable to connect xftp tools. You can only use Linux rescue mode for recovery. If you want to upgrade the relevant RPM package, please use RPM-UVH for related upgrade o
In the development process, to solve various problem bugs, whether performance or ANR, or a variety of serious crashes, often need to crawl log, from log analysis to find the source of the problem, and modify.However, at a unified point in time, there may be a lot of logs printed out that belong to each of the different processes. So the parts that we need may have been drowned out. Therefore, it is necessa
' {print $} ' | Sort | uniq-c| Sort-nr | Wc-l
8, the maximum number of connections in the current Web server 20 IP addresses:
Copy Code code as follows:
Netstat-ntu |awk ' {print $} ' |sort | uniq-c| Sort-n-R | Head-n 20
9, view the top 10 most visited IP in the log
Copy Code code as follows:
Cat Access_80_log |cut-d '-F 1 |sort |uniq-c | Sort-nr | awk ' {print $} ' | Head-n |less
10, view the
): Records an SQL statement that executes longer than the specified value, or an SQL statement that does not have an index (optimized slow query SQL statement is DBA)Binary logs (binary log): Records information about the data being modified:Error log: Ending with err in the data directoryBinary log: Bin-logNormal query log
. Note the position point after the operationMysql> Show master status;+---------------+----------+--------------+------------------+-------------------+| File | Position | binlog_do_db | binlog_ignore_db | Executed_gtid_set |+---------------+----------+--------------+------------------+-------------------+| binlog.000005 | 1104 | | | |+---------------+----------+--------------+------------------+-------------------+1 row in Set (0.00 sec)8. Toggle Binlog Logmysql> flush logs;Query OK, 0 rows Af
Ubuntu is version 13.04, I guess the other version of the solution is probably the same. When the boot into the login interface after we entered the password and did not enter the graphical user interface, but into a command line interface and flashed back to the login interface, but the visitor's identity can enter the graphical user interface, my flash-through command line interface shows the checking Bat
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.