Hi,
We've recently set up the Harvest agent on a Solaris server with the assistance of Broadcom.
It seems however as if the agent executes UPDs as async regardless of whether I pass -syn or -asyn to the hexecp script. The script never comes back to the client with the results.
As a test, I created a simple script that does a "ls -la" on the Solaris server. The scripts executes as expected when run on the server. However, when I run it from a UDP using hexecp, the client never completes, and the output from the agent running in verbose mode always says "bSynch is false".
This is the script on the server:
-bash-4.4$ cat /export/cascm/test.sh
#!/bin/sh
echo This is the contents of /export/cascm
ls -la /export/cascm
This is the UDP definition:
hexecp -prg "/export/cascm/test.sh" -m 10.124.16.109 -rport 5110 -syn -usr cascm -pw abcd
This is the agent startup command and output:
-bash-4.4$ ./agntd -verbose -usr=cascm -pwd=abcd -trlvl=3 &
[2] 14610
[1] Killed ./agntd -verbose -usr=cascm -pwd=abcd -trlvl=3
-bash-4.4$
-bash-4.4$ Argument file = /export/cascm/scm/HAgent.arg
Log file =
-port = 5110
-authmode = internal
-verbose =
-trlvl = 3
-fipsmode = 0
-usr = cascm
HAgent | 20210416 13:19:53 | ---- Started ----
1 | 13:19:53 | SCM version level: 13,0,3,152
1 | 13:19:53 | Password exposure checking is disabled for command line utilities...
1 | 13:19:53 | Patch level checking is disabled for login requests...
1 | 13:19:53 | Using cache directory at /export/cascm/scm/SCMCache.
This is the agent output when I execute the UDP from the Harvest client:
-bash-4.4$ 1 | 13:20:05 | Connection established. Connection count: 1.
2 | 13:20:06 | LVL3: cbExecuteA bSynch is false 8| File</export/cascm/test.sh> CmdArg<> Stdin<> CB<0> Fm<> |0
2 | 13:20:06 | LVL3: cbExecuteA done 8| File</export/cascm/test.sh> |0
This is the contents of /export/cascm
total 78433
drwxr-xr-x 7 cascm cascm 18 Apr 15 11:32 .
drwxr-xr-x 16 root root 17 Feb 1 15:57 ..
-rw------- 1 cascm cascm 5246 Apr 15 11:10 .bash_history
-rw-r--r-- 1 cascm cascm 143 Feb 23 13:59 .profile
-rw------- 1 cascm cascm 11900 Apr 14 09:27 .viminfo
-rwxr-xr-x 1 cascm cascm 1005 Mar 13 2007 CONFIG.SH
drwxrwxr-x 2 cascm cascm 2 Mar 8 10:44 ETPKI
drwxr-xr-x 2 cascm cascm 4 Mar 8 11:13 etpki_solaris
-rw-r--r-- 1 root root 6746112 Mar 8 10:45 etpki.tar
-rw-r-xr-x 1 cascm cascm 3792 Mar 13 2007 fix_names.sh
-rwxr-xr-x 1 cascm cascm 93974 Feb 5 03:07 INSTALL.SH
drwxrwxrwx 10 cascm cascm 16 Apr 15 11:25 pec
-rw-r--r-- 1 root root 33065984 Mar 8 10:25 pec474.tar
-rw-r--r-- 1 cascm cascm 12464 Mar 13 2007 PECCFG.TXT
-rwxr-xr-x 1 cascm cascm 489 Mar 13 2007 PECUNIN.SH
drwxr-xr-x 6 cascm cascm 10 Apr 15 11:45 scm
-rwxr-xr-x 1 cascm cascm 74 Mar 12 08:37 test.sh
drwxrwxr-x 7 cascm cascm 10 Mar 16 08:27 UNIX
So as you can see, the script does execute, but the results aren't sent back to the client.
Any ideas?