General :: Command To Find The OS Version Of Remote Host?
Dec 29, 2010
I'm in a situation, that I have no access to one of my remote server. And I CAN'T EVEN INSTALL ANY SOFTWARE in any linux boxes to determine the remote OS name and version.Can you please enlighten me on how could I find out the OS version of remote host without installing any software or without login to that server.
View 1 Replies
ADVERTISEMENT
Oct 20, 2010
HOW TO GET THE IP ADDRESS OF HOST IN LINUX WITH USING OF HOST AND NSLOOKUP COMMAND and after getting the ip address how to assign it in the variable
View 4 Replies
View Related
May 31, 2011
I am having difficulty sending files from a remote machine to local one using
Code:
scp
. It is working the other way however. local > remote. I am using the verbose options
[code]....
View 3 Replies
View Related
Sep 27, 2010
I'm using Windows XP. I'm connecting to a UNIX box using putty SHH(ksh). Now I want to copy a text file present in remote host to my local system.
View 5 Replies
View Related
May 25, 2011
I need to delete all files inside remote directory using ssh P.S. The directory must not be deleted, so @Wes answer is not what I need. If it would be local dir, I would run "rm -rf dir/*"
View 4 Replies
View Related
Jun 21, 2011
I can use TeamViewer to get into this remote host. It has sshd running. I would like to ssh to it. But it gives the system's IP as 192.168.xx.yy. How do I ssh into it?
View 1 Replies
View Related
Jan 14, 2011
Yesterday i install nagios, after that i can successfully monitor my local machine disk usage and its services, but now i want to monitor remote host, but have no idea how to do this , i also google alot but not getting resource full explanation.so please guys tell me how can i monitor the remote host using nagios..
View 54 Replies
View Related
Nov 13, 2010
I want to start a shell scripts(which generate traffic to test my network) at remote linux hosts from single linux local host.. If i start script at remote host through ssh, all traffic are sending from my local host also. It will create burden on my local host. If i terminate SSH connection, it stopping the script at remote host. Also i need to do ssh to all my remote hosts.
Is there any best way to do it?
View 6 Replies
View Related
Feb 25, 2011
How is it done?Right now its just getting written in a local text file(not /var/../.., not using syslog at all).and every day a new file is being created
View 3 Replies
View Related
Jul 24, 2011
When I do a ntpq -p on my machine I could see the ntp servers configured and it's status:
But when I telnet to ntp server "10.1.35.2" it says A remote host refused an attempted connect operation:
I know * here represents that the machine is in sync with ntp server. My question if the machine is in sync with ntp server, how does it work?why ntp port 123 is connection refused?
View 1 Replies
View Related
Jul 3, 2011
My system is Ubuntu 11Before I typed "telnet localhost" or "telnet localhost 23". I have make this work below:$sudo apt-get install xinetd$vim /etc/xinetd.conf
defaults{
instances=60
log_type=SYSLOGauthpriv
[code]....
View 1 Replies
View Related
Feb 13, 2011
Q=What will this do?
A=This will read from /root/Desktop/iplist (or anywhere you want to put the list) after it reads the ip it will ping the ip two times. If the remote host is up then it will write the ip to a log. If the ping fails it will display it on the screen, write the ip to syslog so that you can do remote logging, and last it will send the ip by email to a user or a group of users.
Code:
#!/bin/bash
#wrote by Zach Underwood feb-12-2011
#test and wrote on centos 5.5 with sendmail
rm -f /root/Desktop/iplog #This will remove the good iplog
exec 9</root/Desktop/iplist #put full path the file where ip list is. Make sure that the ips are listed one per line.
while read -u9 ip
do
ping -c 2 $ip > /dev/null 2> /dev/null # ping and discard output
if [ $? -eq 0 ]; then # check the exit code
echo "$ip is up" >> /root/Desktop/iplog #write the ip of the hosts that are up
else
echo "$ip is down" # will show on the screen the ips that are not up
logger -p auth.notice "$ip is down" # will write the down host to syslog
echo "$ip is down" | mail -v -s alert user@anydomain.com > /dev/null 2> /dev/null #will send mail users about host down
fi
done
View 3 Replies
View Related
Sep 11, 2009
I did followings:
Code:
But got:
Code:
But as I tried:
Code:
It's OK.
View 1 Replies
View Related
May 9, 2011
Up until now I've been using plink to remotely compile a project I'm working on. But recently the administrator from the remote server updated the distribution and messed up some configurations. My project has a lot of scripts written for tc shell (tcsh), and now the default shell is bash. There is no way to change this. Another problem is that now I need to run newgrp to change my default user group.
So... to work around this problem I've changed my .bashrc to run newgrp and then tcsh. If I do a normal connection using SSH, everything works as expected, but when using plink, or SSH to remotely execute commands, the shell gets stuck on the newgrp command. I think it's because both applications need a return value from newgrp to send the command I need to execute. Remotely running scripts that call a shell also get stuck like newgrp (newgrp also opens a new shell and that's why it gets stuck) my .bashrc is as follows:
Code:
user_grp=`id -g`
if [ $user_grp != 4919 ]; then
newgrp new_group_id
else
[code]....
View 4 Replies
View Related
Oct 12, 2010
I got a bunch of machines (~10) that I share with my co-workers. I have appropriate .ssh file(s) set up so I don't get prompt for password when I try to ssh.Currently I ssh into these hosts and then do a top to check the load before I start using the machine. Because I don't want to be on a busy host.Can someone show me how to write a script that find a least-busy host given a list of hosts to check? (hardcoded is fine)
View 1 Replies
View Related
May 6, 2010
I am using mount.cifs to mount a remote samba share (both client and server are Ubuntu server 8.04) like this:mount.cifs //sambaserver/samba /mountpath -o credentials=/path/.credentials,uid=someuser,gid=1000.I mounted a user from local system with username and password with mount.cifs but the problem is that the user is part of multiple groups on the remote system and with mount.cifs I can only specify one gid. Is there a way to specify all the gids that the remote user has?
Mount the remote samba with multiple groups on the local system?Browse the mount from 1) with the terminal since I want to pass some files from samba as arguments to local programs.which runs through gvfs; but the newer gnome does not write to disk the ~/.gvfs anymore so I can't browse it in terminal. And the last solution would be NFS but that means that I have to synchronize the uids and gids on the local system with the ones from the server.
View 1 Replies
View Related
Aug 14, 2009
I'm trying to connect to a Win XP computer via Remote Desktop/Terminal Server. (Note: WinXP refers to Remote Desktop, or RDP; Ubuntu uses Terminal Server client for this function.)
The problem is that my XP computer requires the use of Microsoft's RDP version 6 because it uses a Terminal Server Gateway. The TS client in Ubuntu is compatible with version 5, not version 6.
Is there a MS RDP version 6 compatible program/client for Linux?
View 14 Replies
View Related
Mar 27, 2010
a friend created an IP address for me.where do I find the Host in Linux in order to put the IP address.
View 2 Replies
View Related
Sep 7, 2010
I have 4 Linux machines with cluster.My target is to find all kind of IP address (xxx.xxx.xxx.xxx) in every file in the linux system remark: need to scan each file in the linux system and verify if the file include IP address if yes need to print the IP as the following
more /etc/inet/file.example1
182.23.2.4
255.255.0.0
10.10.1.1
View 1 Replies
View Related
Sep 11, 2009
I am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:
wc `find . ( -name "*.as" -o -name "*.mxml" ) -exec grep -H HeightResizableList {}` ;
View 10 Replies
View Related
Jul 15, 2011
Is there a way to specify to find that I only want text files (and not binary files)? Grep has an option to exclude binary files, so I thought find probably has a similar feature, but I've been unable to find it.
View 2 Replies
View Related
Aug 30, 2011
According to the man page, host ought to query "the server or servers listed in /etc/resolv.conf," but it only uses the first entry in that file:
thefourthtower:$cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
[code]....
View 3 Replies
View Related
Jan 25, 2009
I know how to search for normal files but can you let me know " How to search for 5 setuid files on the system. Also explain, for each file, why setuid mechanism is necessary for the command to function properly"
View 1 Replies
View Related
Aug 3, 2010
am new to linux and trying to find a file in sub directories using find command as:find .-name *.jpg -type fBut I am unable to get the result as find command is not permitted by the server administrator.Is there any way to find files without using find command.
View 14 Replies
View Related
Dec 8, 2010
I have a problem, I set a Debian server with no GUI. I have set http_proxy and I want to add ignored hosts for local address like I did in Ubuntu(System->Preference->Network Proxy->Ignored Hosts).How can I do that in Debian (with no GUI only bash) like I did in Ubuntu with GNOME Desktop?
View 2 Replies
View Related
Jan 12, 2011
RedHat, Ubuntu, Fedora, cowpat, urinestain, papsmear. Who is the bureaucrat behind this mess? I believe it is a conspiracy to keep it exclusive.
View 11 Replies
View Related
Aug 14, 2009
I want to access the remote machine I already login, but I forget the machines name, how can I find the machine name then?
View 3 Replies
View Related
Aug 20, 2010
I have the following command:ssh $USER@$HOST "ls /ops/pkg/ec/`grep "PKRTS" /ops/pkg/ec | awk '{print $1}'`* > /tmp/tmp_file"What the above SHOULD do..is, ssh to the host then execute the command.The command should first execute the grep and awk between the back ticks, and generate a file name, then ls using that filename* and write that data to a temp file.However, it executes the grep and awk before even SSH'ing and the command that goes to the server is simply an "ls /ops/pkg/ec/* > /tmp/tmp_file" since the grep and awk return nothing on the local machine.
View 1 Replies
View Related
Oct 28, 2010
I am developing a daemon that is acting up and I am now unable to create any new processes (ie. I cannot start a new process to kill the other rogue processes). So, I need to be able to kill the processes from a remote machine. How do I do "kill" remotely without admin privileges? If I cannot kill my own process from a remote machine as a normal user then tell me so I can mark it as the correct answer.
View 3 Replies
View Related
Mar 30, 2010
I can track that my CentOS 5 ships with SVGA driver through:
cat /var/log/Xorg.0.log | grep SVGA
But how can I find the SVGA Version number?
View 1 Replies
View Related