Laboratory network environment is a computer network standby once cut off, you need to manually open each browser to enter a user name and password networking; server, if deployed in a network environment of the laboratory no graphical interface and off the network, you can not browse through open connector manner.
Therefore, this article describes how to automate the processing of these two situations.
Networking script
Research Institute of Tsinghua deep network environment as an example, the official use of a well-known vendor certification system, by drawing on the Internet existing code, developed Python3 client networking Library, see srun Auto . This script can be downloaded to a Linux server the use of environmental python3 run. If you are on a workstation, our Windows operating system, for example, use:
- Create a folder in the
login.bat
script, which is writtenpython absolute_dir_of_srun.py login username password
, the script will be sent to the desktop shortcut. - After each time you log off the network by double-clicking on the desktop
login.bat
Internet.
Windows Task Scheduler can be combined with the post-login settings automatically perform login.bat
the following steps:
Open the Task Scheduler, create a new task:
network login
;
Set up a new task trigger is unlocked when the workstation is executed;
Operation set new tasks to perform is to start a
login.bat
script;
The next time you wake up the workstations, view a history of task execution