08-03-2018
Network error / glitch? Is that reproducible? Any error messages?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi folks,
I need to write a script that should activate a process according to the current hour.
The process should be activatet only if the hour is between midnight (00:00) and 07:00.
How should I create the condition?
Thanks in advance,
Nir (2 Replies)
Discussion started by: nir_s
2 Replies
2. Shell Programming and Scripting
Hi There,
I try to transfer a variable from the script to a function which use expect, but I don't succed.
#!/bin/sh
HPPASS1="$2"
send_command()
{
echo "spawn ssh login@10.10.10.10"
echo 'set password '
echo 'sleep 1'
echo 'expect "*assword:*"'... (5 Replies)
Discussion started by: sylvainkalache
5 Replies
3. Shell Programming and Scripting
Please tell me how to pass variable "a b c" to expect from the shell script
1/ example of input file
# cat in-file
var1 var2 a b c var4
2/ # this is my script - how to pass "a b c" as single variable ?
cat in-file | while read x
do
my-expect x
done
3/ # expect script - how to... (0 Replies)
Discussion started by: breaktime123
0 Replies
4. Shell Programming and Scripting
As part of an expect script, I have to convert a strange user ID to a conventional UNIX ID. To do this, I read the contents of a file and do a little awk magic. Here's that bit of the expect script:
send "awk 'NF == 10 && \$NF == strange_user_id {print \$(NF-2)}' file_with_my_info\r"
expect... (0 Replies)
Discussion started by: treesloth
0 Replies
5. Shell Programming and Scripting
I need call expect script from shell script and pass values some of which could contain space. How to make expect to treat such values as one variable? (1 Reply)
Discussion started by: urello
1 Replies
6. Shell Programming and Scripting
Hi All,
I am trying to add one day to the busdt variable i am extracting from a file (DynamicParam.env). I am deriving the busdt as below.
Is there any function which I can use to derive as below.
If busdt=20120910, then the new derived variable value should be 20120911
If... (2 Replies)
Discussion started by: dsfreddie
2 Replies
7. Shell Programming and Scripting
the value of the variable is
yes
group=bsp_16
keyword="82599"
test_var="-a xxx -b yyy"
I want to get output with
-a xxx -b yyy (0 Replies)
Discussion started by: yanglei_fage
0 Replies
8. Shell Programming and Scripting
I am not able to pass date stored in a variable as an argument to date command. I get current date value for from_date and to_date
#!/usr/bin/ksh
set -x
for s in server ; do
ssh -T $s <<-EOF
from_date="12-Jan-2015 12:02:09"
to_date="24-Jan-2015 13:02:09"
echo \$from_date
echo... (7 Replies)
Discussion started by: raj48
7 Replies
9. Shell Programming and Scripting
I have a password reset expect script which stores all the op to an file. I need to check the whether password is successfully changed by greping out the file and storing the o/p to a variable.
But we try to print the variable , its shows only the command instead of its o/p.
... (2 Replies)
Discussion started by: sudharson
2 Replies
10. UNIX for Beginners Questions & Answers
Hello All,
we what we call a parameter file (.txt) where my application read dynamic values when the job is triggered, one of such values are below:
abc.txt
------------------
line1
line2
line3
$$EDWS_DATE_INSERT=08-27-2019
line4
$$EDWS_PREV_DATE_INSERT=08-26-2019
I am trying to... (1 Reply)
Discussion started by: pradeepp
1 Replies
LEARN ABOUT ULTRIX
snmpsetup
snmpsetup(8n) snmpsetup(8n)
Name
snmpsetup - set up the Simple Network Management Protocol (SNMP) Agent
Syntax
/usr/etc/snmpsetup
Description
The command is an interactive facility for configuring the ULTRIX SNMP Agent. When your system is configured as an SNMP Agent certain net-
work parameters can be monitored or managed by a Network Management Station (NMS).
The command also allows you to configure Extended ULTRIX SNMP Agents. Extended Agents are user-defined daemons that allow you to specify
private network parameters to be monitored or managed by the NMS.
Before you invoke the network must be up and running, your host must have a name, and you must know the Internet Protocol address of any
NMSs that you want to have monitor or manage your system.
You can run while in multiuser mode, but you must be root or superuser.
To invoke
# snmpsetup
Diagnostics
The following error messages are issued by
snmpsetup must be run by root
snmpsetup: need /etc/rc
snmpsetup: need /etc/snmpd.conf
snmpsetup: non-interactive mode not currently supported
snmpsetup: network must be setup before running snmpsetup
snmpsetup: terminated with no installations made
Files
SNMP configuration file
File that controls automatic reboot
See Also
snmpext(3n), snmpd.conf(5n), snmpd(8n)
Guide to Networking
snmpsetup(8n)