Questions about networked workstations automatically

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:

  1. Create a folder in the login.batscript, which is written python absolute_dir_of_srun.py login username password, the script will be sent to the desktop shortcut.
  2. After each time you log off the network by double-clicking on the desktop login.batInternet.

Windows Task Scheduler can be combined with the post-login settings automatically perform login.batthe following steps:

  1. Open the Task Scheduler, create a new task: network login;

  2. Set up a new task trigger is unlocked when the workstation is executed;

  3. Operation set new tasks to perform is to start a login.batscript;

  4. The next time you wake up the workstations, view a history of task execution

Guess you like

Origin www.cnblogs.com/zhaofeng-shu33/p/11600952.html