Top Banner
ومهرباند بخشایندهم خداون بناProject subject: Managing System Remotely Project subject: Managing System Remotely
15

Managing system remotely

Apr 21, 2017

Download

Career

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Managing system remotely

ومهربان بخشاینده خداوند بنام

Project subject: Managing System

Remotely

Project subject: Managing System

Remotely

Page 2: Managing system remotely

Khan mohammad : ID 22006 Mohibullah : ID 22013

Member of group Member of group

Page 3: Managing system remotely

Content Content

Introduction Explanation Implementation Summary

Page 4: Managing system remotely

Introduction Introduction

Welcome to Linux command Line and Shell Scripting, Linux is a open source operating system (OS) that allow the people who has the skill of using these OS to writ scripts and programs which perform many actions with out interfere of the user and also in This project you will learn some administrative action.

In this project we wrote tow scrips, one of them executed in client station to send a file trough the network into server then the second script does some operations (sending information about server to the client ).

In this script “sent.sh” redirect information about the system in a file and also check the user, take screen shot of memory and CPU info and check all connected and unconnected users in network then direct them to the files finally this created files moved trough the network into client.

Page 5: Managing system remotely

Explanation of ScriptExplanation of Script

First we wrote two scripts one of then run in client “executfile.sh” and other run in server “sent.sh”. The first one sent the “sent.sh” script from client to the server.

Second we bridge and choose the same interface adapter for both virtual systems and set IP address to them for communication finally ping them for testing.

Third we run the first scrip on client and this scrip does their responsibility and we remotely login to the server by SSH command then run the received script “sent.sh” on it finally the required result provided by these scripts.

Page 6: Managing system remotely

Implementation

All actions which are implemented shown by figures step by step in next pages.

And also we well do it live practically

Page 7: Managing system remotely

Sender script

Script 1: This script send the “sent.sh” script to the sever computer

Page 8: Managing system remotely

Script1: This script send the “sent.sh” script to the sever computer

Script 2: This is the sent script which run in the server and sent back the result of this script.

Page 9: Managing system remotely

Step1: we bridged and choose same interface for both systems to synchronize them

Page 10: Managing system remotely

Step2: set IP to the both systems and ping them for testing

Page 11: Managing system remotely

Step3: Now we execute the sender script ”executefile.sh” to send “sent.sh” script to the server

Page 12: Managing system remotely

Step4: We remotely login by the SSH command in the server and execute the received file “sent.sh” from client.

Page 13: Managing system remotely

Step5: After the execution of “sent.sh” script in the server the files (pc_info.txt, system-info.html, error.txt) created and sent back from server to the client.

Page 14: Managing system remotely

Summary

Scrips are created

communications stablished between virtual systems

Client sent the script “sent.sh” to the server

Sever received the “sent.sh” script

We login from client to the server by SSH command and run the “sent.sh” script

The script “sent.sh” does their responsibility (sent back the result of script “sent.sh” )

Page 15: Managing system remotely

Thanks from your attention