11-29-2010
I've stayed away from this - SNMP is a VERY complex protocol. Here is the way you start doing it. It involves creating C code and working with the Netsnmp library. It is not just like bash or ksh. OID's (from MIB's) are involved.
Net-SNMP
10 More Discussions You Might Find Interesting
1. Solaris
is there a way to display the commands the the remote user is typing -I would like to know a way by which i can log onto a remote system and type commands as the user watched on the console - I know about vnc but that is not what i am looking for -or is it rexec ?
Ndegem
SCSA (4 Replies)
Discussion started by: ndegem
4 Replies
2. Shell Programming and Scripting
Hello,
Is there a way to use wc, sed or other commands against remote sftp in a regular shell script?
wc -c *.* | grep total | sed s/total// ?
thanks in advance (0 Replies)
Discussion started by: chm0dvii
0 Replies
3. Shell Programming and Scripting
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
4. Shell Programming and Scripting
I have a script that I'm trying to use that will check for files on a remote machine and if there is files copy the files, modify the perm on the copied files, and then delete the files off of the remote server. Right now I need to get the correct syntax so the the remote commands still interpret... (4 Replies)
Discussion started by: jcalisi
4 Replies
5. Shell Programming and Scripting
I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
Discussion started by: SN2009
6 Replies
6. Infrastructure Monitoring
Hi,
I have sucessfully set up snmp daemon on my AIX box (v 6.1.2.0).
I can query snmp from localhost (using command: snmpinfo -v -m dump -c public mib-2) and it works perfectly.
But I don't get any reply when query my AIX box from remote machine (AIX, Linux,...)
I have tried to set up SNMP v1... (0 Replies)
Discussion started by: pavel.kovar
0 Replies
7. Infrastructure Monitoring
snmpget -v 1 -c COMMUNITYSTR hostname OID
what OIDs would I use to get information on all the processes and disk space information that are on a particular host.
where can i find out information on all of this?
thanks (3 Replies)
Discussion started by: SkySmart
3 Replies
8. Shell Programming and Scripting
I solved my issue by using the following code
#!/bin/bash
function GET_STATUS {
#values Active Passive Failed
ssh -a localhost '/home/user/fakecommand.sh'
}
STATE="unknown"
until ]
do
echo $STATE
sleep 5
STATUS=`GET_STATUS`
echo $STATUS | grep Active &&... (1 Reply)
Discussion started by: $scipt_Kid
1 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I am working in support and we are planning to automate a system to reduce the direct manual intervention to core system.
Please find the below details.
1. we have a web application that runs on Windows Platform.
2. From web application, we need to connect to remote Unix machine.... (6 Replies)
Discussion started by: Balaji K
6 Replies
10. Shell Programming and Scripting
Hi,
I need to run a script located in a directory on remote server by using ssh authentication from my local unix server. Can anyone help me in this.
I have tried the below command. It worked for echo command but when i tried to open a file using cat command it is showing "cat: cannot open... (6 Replies)
Discussion started by: ssk250
6 Replies
rsh(1c) rsh(1c)
Name
rsh - remote shell
Syntax
rsh host [-l username] [-n] command
host [-l username] [-n] command
Description
The command connects to the specified host, and executes the specified command. The command copies its standard input to the remote com-
mand, the standard output of the remote command to its standard output, and the standard error of the remote command to its standard error.
Interrupt, quit and terminate signals are propagated to the remote command. The command normally terminates when the remote command does.
The remote username used is the same as your local username, unless you specify a different remote name with the -l option. This remote
name must be equivalent, in the sense of to the originating account. No provision is made for specifying a password with a command.
If you omit command, then instead of executing a single command, you are logged in on the remote host using
Shell metacharacters which are not quoted are interpreted on local machine, while quoted metacharacters are interpreted on the remote
machine. Thus the command
rsh otherhost cat remotefile >> localfile
appends the remote file remotefile to the localfile localfile, while
rsh otherhost cat remotefile ">>" otherremotefile
appends remotefile to otherremotefile.
Host names are given in the file Each host has one standard name (the first name given in the file), which is rather long and unambiguous,
and optionally one or more nicknames. The host names for local machines are also commands in the directory If you put this directory in
your search path then the can be omitted.
Options
-l username Logs you in as the specified user, not as your user login name.
-n Redirects all command input to
Restrictions
The command is confused by output generated by commands in a .cshrc file on the remote host. In particular, `where are you?' and `stty:
Can't assign requested address' are messages which can result if output is generated by the startup file.
If you are using and put a in the background without redirecting its input away from the terminal, it blocks even if no reads are posted by
the remote command. If no input is desired you should redirect the input of to using the -n option.
You cannot run an interactive command like Use
Stop signals stop the local process only.
Files
/etc/hosts
/usr/hosts/*
See Also
rlogin(1c)
rsh(1c)