tenho um script que está a fazer leitura apenas de um host e quando chamo via ssh o outro o mesmo nã

1. tenho um script que está a fazer leitura apenas de um host e quando chamo via ssh o outro o mesmo nã

José Alves Manuel
Unitel

(usa Outra)

Enviado em 29/12/2015 - 12:21h

como podem ver aqui neste output

era esperado um resultado da nova varredura mais para o host p2-ss02 o que não acontece.

=resultado=

Script file for ssh

[root@p2-ss02 tecnotree]# ssh p2-ss02

#################################################################
This system is for the use of authorized users only.
Individuals using this computer system without authority, or in
excess of their authority, are subject to having all of their
activities on this system monitored and recorded by system
personnel.

In the course of monitoring individuals improperly using this
system, or in the course of system maintenance, the activities
of authorized users may also be monitored.

Anyone using this system expressly consents to such monitoring
and is advised that if such monitoring reveals possible
evidence of criminal activity, system personnel may provide the
evidence of such monitoring to law enforcement officials.
#################################################################
Last login: Tue Dec 29 11:55:55 2015 from p2-ss01
[tecnotree@p2-ss02 ~]$


=meu script=

echo "[root@p2-ss01 tecnotree]# lsb_release -a"
echo
lsb_release -a
echo

echo
echo "Script file for ssh"
echo



echo "[root@p2-ss02 tecnotree]# ssh p2-ss02"
echo
ssh p2-ss02
echo


echo " "
echo "[root@p2-ss02 tecnotree]# df -ha"
df -h
echo

echo " "
echo "[root@p2-ss02 tecnotree]# netstat -rn"
echo



  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts