Hello,
I did the following: 1 separated the script into 2 parts. One to do the
snmpget and a separate one to do nsupdate8. I also created a ruleset to execute
both:
Event stream--> nv6000 trap (runs the snmpget script)--> action node
(runs the nsupdate8).
So I got errors for the nsupdate8 command. I did what Stephen recommended
using the full path. I tried again, this time I did not get any errors. See
NVACTION.ALOG and trapd.log. However, it did not update the dns file.
I tried also logging on as a regular user and ran the nsupdate8 command
(thinking that maybe that only ROOT could send command) but it worked (from
the command line, of course).
Any other suggestions????
—----------------------------------NVACTION.ALOG----------------------------------------------------------------------------------------------
2001/11/16 10:10:03 : 3 :nsupdate8 /listchm/dnsadd~2001/11/16
10:10:03~1.3.61.4.1.2.6.3.1~6~58785794~169345028~0~public~2~5500a.net.local~Node
Added~~topodb~1~N~1 2001/11/16 10:10:03 : 3 command failed. error
data: /usr/OV/tmp/@@NVscript.3[74]: nsupdate8: not
found.
2001/11/16 10:10:03 : 3 sending trap for failed
command. 2001/11/16 10:10:03 .//nl_Actionsvr.C[1040] : action
failure notification set. 2001/11/16 10:16:14 : 4
:/listchm/dnsupdate~2001/11/16
10:16:14~1.3.6.1.4.1..6.3.1~6~58785794~169345030~0~public~2~s6509srvr.net.local~Node
Added~~topo_db1~N~1 2001/11/16 10:16:14 : 4 command failed. error
data: /listchm/dnsupdate[3]: nsupdate8: not found.
2001/11/16 10:16:14 : 4 sending trap for failed
command. 2001/11/16 10:16:14 .//nl_Actionsvr.C[1040] : action
failure notification set. 2001/11/16 10:16:14 : 4
:/listchm/dnsupdate~2001/11/16
10:16:14~1.3.6.1.4.1..6.3.1~6~58785794~169345030~0~public~2~s6509srvr.net.local~Node
Added~~topo_db1~N~1 2001/11/16 10:16:14 : 4 command failed. error
data: /listchm/dnsupdate[3]: nsupdate8: not found.
2001/11/16 10:16:14 : 4 sending trap for failed
command. 2001/11/16 10:16:14 .//nl_Actionsvr.C[1040] : action
failure notification set. 2001/11/16 10:17:34 : 5
:/listchm/dnsupdate~2001/11/16
10:17:34~1.3.6.1.4.1..6.3.1~6~58785794~169345029~0~public~2~5500b.net.local~Node
Added~~topo_db~1~N~1 2001/11/16 10:17:34 : 5 command failed.
error data: /listchm/dnsupdate[3]: nsupdate8: not found.
2001/11/16 10:17:34 : 5 sending trap for failed
command. 2001/11/16 10:17:34 .//nl_Actionsvr.C[1040] : action
failure notification sent. 2001/11/16 11:19:47 : 6
:/listchm/dnsupdate~2001/11/16
11:19:47~1.3.6.1.4.1.2.6.3.1~6~58785794~169345029~0~public~2~5500b.net.local~Node
Added~~topo_db~1~N~1
—----------------TRAPD.LOG-------------------------------------------------------------------------------------
1005925335 1 Fri Nov 16 09:42:15 2001
r6509b.net.local N Node
Added 1005925335 7 Fri Nov 16 09:42:15 2001
<none>
N netmon disconnecting from trapd. 1005927003 7 Fri Nov 16 10:10:03
2001
<none>
N netmon connected to trapd. ected to trapd. 1005927003 1 Fri Nov 16
10:10:03 2001
5500a.net.local N
Node Added 1005927003 7 Fri Nov 16 10:10:03 2001
<none>
N netmon disconnecting from trapd. 1005927003 7 Fri Nov 16 10:10:03
2001
Netview2
a /usr/OV/tmp/@@NVscript.3[74]: nsupdate8: not found. 1005927374
7 Fri Nov 16 10:16:14 2001
<none>
N netmon connected to trapd. 1005927374 1 Fri Nov 16 10:16:14 2001
s6509srvr.net.local N Node
Added 1005927374 7 Fri Nov 16 10:16:14 2001
<none>
N netmon disconnecting from trapd. 1005927374 7 Fri Nov 16 10:16:14
2001
Netview2
a /listchm/dnsupdate[3]: nsupdate8: not found. 1005927454 7 Fri
Nov 16 10:17:34 2001
<none>
N netmon connected to trapd. 1005927454 1 Fri Nov 16 10:17:34 2001
5500b.net.local N
Node Added 1005927454 7 Fri Nov 16 10:17:34 2001
<none>
N netmon disconnecting from trapd. 1005927454 7 Fri Nov 16 10:17:34
2001
Netview2
a /listchm/dnsupdate[3]: nsupdate8: not found. 1005929382 7 Fri
Nov 16 10:49:42 2001
<none>
N netmon connected to trapd. 1005929382 1 Fri Nov 16 10:49:42 2001
5500b.net.local N
Node Added 1005929382 7 Fri Nov 16 10:49:42 2001
<none>
N netmon disconnecting from trapd. 1005929523 7 Fri Nov 16 10:52:03
2001
<none>
N netmon connected to trapd. 1005929523 1 Fri Nov 16 10:52:03 2001
5500b.net.local N
Node Added 1005929523 7 Fri Nov 16 10:52:03 2001
<none>
N netmon disconnecting from trapd. 1005931187 7 Fri Nov 16 11:19:47
2001
<none>
N netmon connected to trapd. >>> shochste@us.ibm.com
11/16/01 10:39AM >>> Catalina, Try fully qualifying the path
in front of that command. To be safe in any script, all
commands should have the path spelled out. Kind regards, Stephen
Hochstetler
shochste@us.ibm.com International Technical Support Organization -
Austin Office -
512-436-8564
FAX - 512-436-8701 ITSO redbooks at http://www.redbooks.ibm.com_________________________________________________________________________ NV-L
List information and Archives: http://www.tkg.com/nv-l
|