KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

RMA 1.23 on FreeBSD SPARC

 
Post new topic   Reply to topic    KS-Soft Forum Index -> RMA for UNIX
View previous topic :: View next topic  
Author Message
Scott1669



Joined: 05 Jul 2007
Posts: 7

PostPosted: Thu Jul 05, 2007 12:58 pm    Post subject: RMA 1.23 on FreeBSD SPARC Reply with quote

I have compiled the RMA agent version 1.23 on FreeBSD running on a Sun Ultra5 SPARC platform. The agent has compiled without error as far as I can tell because the agent starts ok and is a running process, but I cannot see the agent from my HostMonitor console. The reply on any test other than 'ping' gives me 'RMA: Cannot read data'. Do you know of any reason for this in this configuration?

Thank you,

Scott

$ ./rma -v rma.ini
-------------------------------------------------------------
Application: RMA (Remote Monitoring Agent for HostMonitor)
Version: 1.23 for FreeBSD
Copyright: 2004 - 2006 Alexander Kozlov
web: http://www.ks-soft.net
e-mail: support@ks-soft.net
-------------------------------------------------------------
Command line checking .. Ok
Settings checking .. Ok
CPU testing .. Ok
Basic encyption checking .. Ok
RMA encyption checking .. Ok
Sock testing .. Ok
Daemon started

$ sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
username rma 965 5 tcp4 *:1055 *:*
username sshd 960 3 tcp4 xx.xx.xx.xx:22 xx.xx.xx.xx:2144
root sshd 957 3 tcp4 xx.xx.xx.xx:22 xx.xx.xx.xx:2144
root sendmail 878 4 tcp4 127.0.0.1:25 *:*
root sshd 872 4 tcp4 *:22 *:*
root syslogd 771 7 udp4 *:514 *:*

$ uname -a
FreeBSD SERVERNAME.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri
Jan 12 23:30:59 UTC 2007 root@s-dallas.cse.buffalo.edu:/usr/obj/usr/src/sys
/GENERIC sparc64
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Jul 05, 2007 1:45 pm    Post subject: Reply with quote

May be wrong byte order... Have you made any modifications in sources/makefile?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Scott1669



Joined: 05 Jul 2007
Posts: 7

PostPosted: Thu Jul 05, 2007 1:51 pm    Post subject: Reply with quote

I have made no modification to the code that I know of.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Jul 05, 2007 1:54 pm    Post subject: Reply with quote

What byte order is used?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Scott1669



Joined: 05 Jul 2007
Posts: 7

PostPosted: Thu Jul 05, 2007 2:00 pm    Post subject: Reply with quote

From the Makefile:

#-----------------------------------------------------------------------------
# Project: RMA for UNIX
# File: make file
# Target OS: Linux, FreeBSD, solaris
# Comment:
# Developer: KS-Soft (www.ks-soft.net)
#-----------------------------------------------------------------------------

#
# Normalise environment variables OSTYPE and MACHTYPE
#

MAKE = gmake
OSTYPE = $(shell uname -s)
MACHTYPE = $(shell uname -m)

ifeq ($(OSTYPE), SunOS)
# SunOS
LIBS = -lsocket -lnsl -lpthread
#for Solaris 8 or earlier
CXXSPECIFICFLAGS = -D_POSIX_C_SOURCE=199506L
CXXCODEFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
else
ifeq ($(OSTYPE), HP-UX)
# HP-UX
#CXXSPECIFICFLAGS = -D_INCLUDE_POSIX_SOURCE
CXXSPECIFICFLAGS = -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT
CXXCODEFLAGS = -D__BIG_ENDIAN=4321 -D__BYTE_ORDER=4321
LIBS = -lpthread
else
# Linux/BSD
LIBS = -pthread
CXXCODEFLAGS = -D_FILE_OFFSET_BITS=64
endif
endif

Is this what you need?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Jul 05, 2007 2:09 pm    Post subject: Reply with quote

Not exactly. On FreeBSD byte_order should be specified in sys/endian.h header file

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Scott1669



Joined: 05 Jul 2007
Posts: 7

PostPosted: Thu Jul 05, 2007 2:34 pm    Post subject: Reply with quote

This? (/sys/sys/endian.h)

#ifndef _SYS_ENDIAN_H_
#define _SYS_ENDIAN_H_

#include <sys/cdefs.h>
#include <sys/_types.h>
#include <machine/endian.h>

#ifndef _UINT16_T_DECLARED
typedef __uint16_t uint16_t;
#define _UINT16_T_DECLARED
#endif

#ifndef _UINT32_T_DECLARED
typedef __uint32_t uint32_t;
#define _UINT32_T_DECLARED
#endif

#ifndef _UINT64_T_DECLARED
typedef __uint64_t uint64_t;
#define _UINT64_T_DECLARED
#endif

/*
* General byte order swapping functions.
*/
#define bswap16(x) __bswap16(x)
#define bswap32(x) __bswap32(x)
#define bswap64(x) __bswap64(x)

/*
* Host to big endian, host to little endian, big endian to host, and little
* endian to host byte order functions as detailed in byteorder(9).
*/
#if _BYTE_ORDER == _LITTLE_ENDIAN
#define htobe16(x) bswap16((x))
#define htobe32(x) bswap32((x))
#define htobe64(x) bswap64((x))
#define htole16(x) ((uint16_t)(x))
#define htole32(x) ((uint32_t)(x))
#define htole64(x) ((uint64_t)(x))

#define be16toh(x) bswap16((x))
#define be32toh(x) bswap32((x))
#define be64toh(x) bswap64((x))
#define le16toh(x) ((uint16_t)(x))
#define le32toh(x) ((uint32_t)(x))
#define le64toh(x) ((uint64_t)(x))
#else /* _BYTE_ORDER != _LITTLE_ENDIAN */
#define htobe16(x) ((uint16_t)(x))
#define htobe32(x) ((uint32_t)(x))
#define htobe64(x) ((uint64_t)(x))
#define htole16(x) bswap16((x))
#define htole32(x) bswap32((x))
#define htole64(x) bswap64((x))

#define be16toh(x) ((uint16_t)(x))
#define be32toh(x) ((uint32_t)(x))
#define be64toh(x) ((uint64_t)(x))
#define le16toh(x) bswap16((x))
#define le32toh(x) bswap32((x))
#define le64toh(x) bswap64((x))
#endif /* _BYTE_ORDER == _LITTLE_ENDIAN */

/* Alignment-agnostic encode/decode bytestream to/from little/big endian. */

static __inline uint16_t
be16dec(const void *pp)
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Jul 05, 2007 2:50 pm    Post subject: Reply with quote

No as you see it uses definition from another file machine/endian.h
Lets do not litter this forum. Could you provide telnet/ssh access to your system?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Scott1669



Joined: 05 Jul 2007
Posts: 7

PostPosted: Thu Jul 05, 2007 2:52 pm    Post subject: Reply with quote

Unfortunately, the system is behind a corporate firewall and such access is not permitted. If you can let me know what files/information you need, I can zip them up and e-mail them to you.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Jul 05, 2007 3:23 pm    Post subject: Reply with quote

We need more than just files...
Could you start RMA using the following command "./rma -i -vd rma.ini", perform ping and some other test and send output to us?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Scott1669



Joined: 05 Jul 2007
Posts: 7

PostPosted: Thu Jul 05, 2007 3:45 pm    Post subject: Reply with quote

I have sent the output from the agent and my rma.ini file to support@ks-soft.net. There appears to be an authentication error, but I know I have correctly typed the password in the rma.ini file and the HostMonitor console.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Jul 11, 2007 11:18 am    Post subject: Reply with quote

how new sources works?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Scott1669



Joined: 05 Jul 2007
Posts: 7

PostPosted: Thu Aug 16, 2007 12:05 pm    Post subject: Reply with quote

I have compiled the sources successfully and the agent starts just fine, but it will not allow authentication from any outside RMA console. I believe that the problem may lie in the password encryption peice. I think that the fact that the agent is compiled in full 64 bit, no 32 bit code will run on FreeBSD SPARC, the encryption in the code cannot decipher in the 64 bit compilation.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Aug 16, 2007 12:54 pm    Post subject: Reply with quote

Please start agent using -i -vd command line switches, try to execute several tests and send output to support@ks-soft.net

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> RMA for UNIX All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index