LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-01-2011, 06:12 AM   #1
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Rep: Reputation: 0
Exclamation How to install syslog-ng??


hello,
http://opensystems.wordpress.com/200...ith-syslog-ng/

i entered this site to see how to install syslog-ng on Solaris 10, but i encountered problems since the the first step.

Quote:
bash-3.00# svcadmn disable system-log
bash: svcadmn: command not found
so if someone can help me through the installation i would be greatful,

thanks
 
Old 02-01-2011, 07:18 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,291

Rep: Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697
Hi,

Ask a moderator to merge this thread with this. You shouldn't open new threads for the same problem.

Regarding the error you've misspelled the command. It's svcadm not svcadmn

Regards
 
Old 02-01-2011, 07:23 AM   #3
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Hi,


Regarding the error you've misspelled the command. It's svcadm not svcadmn

Regards
Code:
bash-3.00# svcadm disable system-log
bash: svcadm: command not found
 
Old 02-01-2011, 07:34 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,291

Rep: Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697Reputation: 1697
I guess you have somehow messed your PATH.
Try:
Code:
/usr/sbin/svcadm disable system-log
 
Old 02-01-2011, 07:47 AM   #5
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
OK!
now the other steps...

Quote:
bash-3.00# svccfg
bash: svccfg: command not found
bash-3.00# /usr/sbin/svcadm svccfg
Usage: svcadm [-v] [cmd [args ... ]]

svcadm enable [-rst] <service> ... - enable and online service(s)
svcadm disable [-st] <service> ... - disable and offline service(s)
svcadm restart <service> ... - restart specified service(s)
svcadm refresh <service> ... - re-read service configuration
svcadm mark [-It] <state> <service> ... - set maintenance state
svcadm clear <service> ... - clear maintenance state
svcadm milestone [-d] <milestone> - advance to a service milestone

Services can be specified using an FMRI, abbreviation, or fnmatch(5)
pattern, as shown in these examples for svc:/network/smtp:sendmail

svcadm <cmd> svc:/network/smtp:sendmail
svcadm <cmd> network/smtp:sendmail
svcadm <cmd> network/*mail
svcadm <cmd> network/smtp
svcadm <cmd> smtp:sendmail
svcadm <cmd> smtp
svcadm <cmd> sendmail
bash-3.00# svc:> delete system-log*
bash: svc:: command not found
 
Old 02-02-2011, 06:58 AM   #6
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
Quote:
bash-3.00# /usr/sbin/pkgadd -d syslogng-3.1.2-sol10-sparc-local

The following packages are available:
1 SMCsyslng syslogng
(sparc) 3.1.2

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

i chose 1, then:

Quote:
Processing package instance <SMCsyslng> from </opt/local/syslogng-3.1.2-sol10-sparc-local>

syslogng(sparc) 3.1.2
BalaBit IT Ltd

This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.


The installation of this package was previously terminated and
installation was never successfully completed.

Do you want to continue with the installation of <SMCsyslng> [y,n,?]
i chose y, then:

Quote:
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
27 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing syslogng as <SMCsyslng>

## Installing part 1 of 1.
/usr/local/bin/loggen
ERROR: attribute verification of </usr/local/bin/loggen> failed
pathname does not exist
/usr/local/bin/pdbtool
ERROR: attribute verification of </usr/local/bin/pdbtool> failed
pathname does not exist
/usr/local/bin/update-patterndb
ERROR: attribute verification of </usr/local/bin/update-patterndb> failed
pathname does not exist
/usr/local/doc/syslogng/AUTHORS
ERROR: attribute verification of </usr/local/doc/syslogng/AUTHORS> failed
pathname does not exist
/usr/local/doc/syslogng/COPYING
ERROR: attribute verification of </usr/local/doc/syslogng/COPYING> failed
pathname does not exist
/usr/local/doc/syslogng/ChangeLog
ERROR: attribute verification of </usr/local/doc/syslogng/ChangeLog> failed
pathname does not exist
/usr/local/doc/syslogng/NEWS
ERROR: attribute verification of </usr/local/doc/syslogng/NEWS> failed
pathname does not exist
...
...
...
...


Quote:
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/examples/syslog-ng.conf.solaris> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/man/pdbtool.1> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/man/syslog-ng.8> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/man/syslog-ng.conf.5> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/security/bof-2002-09-27.txt> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/security/dos-2000-11-22.txt> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/xsd/patterndb-1.xsd> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/xsd/patterndb-2.xsd> failed
pathname does not exist
ERROR: attribute verification of </usr/local/doc/syslogng/doc/xsd/patterndb-3.xsd> failed
pathname does not exist
ERROR: attribute verification of </usr/local/sbin/syslog-ng> failed
pathname does not exist
ERROR: attribute verification of </usr/local/sbin/syslog-ng-ctl> failed
pathname does not exist
ERROR: attribute verification of </usr/local/share/man/man1/pdbtool.1> failed
pathname does not exist
ERROR: attribute verification of </usr/local/share/man/man5/syslog-ng.conf.5> failed
pathname does not exist
ERROR: attribute verification of </usr/local/share/man/man8/syslog-ng.8> failed
pathname does not exist

Installation of <SMCsyslng> partially failed.
bash-3.00#


any suggestion?
 
Old 02-03-2011, 04:30 AM   #7
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Greetingz!
ziadh, I've got a few questions for you (or rather, questions you've probably asked yourself by now...)

1) Are you doing the pkgadd as root? (you kinda probably should...)
2) Does /usr/local exist?
3) Is /usr/local it's own filesystem, and is that read-only?
4) Have you tried pkgrm first, since it appears the package was partially installed?
5) Have you read the man pages for pkgadd and pkgrm?
6) Has this system been patched (ever)? There are some critical patches for the pkgadd and pkgrm commands that you might need.

And finally the big question; Why didn't you grab syslog-ng from SunFreeWare.com or BlastWave.org? I'm sure there's nothing wrong with this guy, he seems to be on the level. I'm just curious is all...
 
Old 02-03-2011, 05:18 AM   #8
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
Dear xeleema,
Quote:
Originally Posted by xeleema View Post
Greetingz!
ziadh, I've got a few questions for you (or rather, questions you've probably asked yourself by now...)

1) Are you doing the pkgadd as root? (you kinda probably should...)
yes

2) Does /usr/local exist?
yes
3) Is /usr/local it's own filesystem, and is that read-only?
how can i know?
4) Have you tried pkgrm first, since it appears the package was partially installed?
haven't tried that
5) Have you read the man pages for pkgadd and pkgrm?
haven't read the man because i did not want to waste too much time on 'installing' the software, and then i still have to configure it and run some tests
6) Has this system been patched (ever)? There are some critical patches for the pkgadd and pkgrm commands that you might need.
i have no idea, 1st time using this solaris system, and its my company whi installed it and threw me in it hehe

And finally the big question; Why didn't you grab syslog-ng from SunFreeWare.com
I DID!! or BlastWave.org? I'm sure there's nothing wrong with this guy, he seems to be on the level. I'm just curious is all...
 
Old 02-03-2011, 07:59 AM   #9
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Quote:
Originally Posted by ziadh View Post
3) Is /usr/local it's own filesystem, and is that read-only?
how can i know?
Type "mount | grep local" if /usr/local is it's own filesystem, it'll show up in the output (and by filesystem, I mean that it shows up when you "df -hFufs") You could also check /etc/vfstab and see if it's set to mount read-only.

Quote:
Originally Posted by ziadh View Post
5) Have you read the man pages for pkgadd and pkgrm?
haven't read the man because i did not want to waste too much time on 'installing' the software, and then i still have to configure it and run some tests
That's a dangerous mentality to have. If you've never read the man pages for pkgadd and pkgrm, you need to stop what you're doing and read them.
man pkgadd
man pkgrm
If you don't get out of the "I'll read the documentation later" phase, you're going to do something dangerous and blow away the system...and the documentation.

Quote:
Originally Posted by ziadh View Post
6) Has this system been patched (ever)? There are some critical patches for the pkgadd and pkgrm commands that you might need.
i have no idea, 1st time using this solaris system, and its my company whi installed it and threw me in it hehe
Okay...case in point. Walk on eggshells. Read the man pages of commands you're unfamiliar with...before soliciting unknown strangers for help. If this is a system that your company depends on, rather than a "test box", you're going to need to get really familiar with the basics.

Let's start you off with a few basic guidelines;
Rule #1: Do not use the root account.
Rule #2: YOU do not USE the ROOT ACCOUNT, use sudo if you *really* need root! (install it if it's not present)
Rule #3: If a process halts, gives an error, or SEGFAULTs, you read the man pages.
Rule #4: Only one System Administrator to a computer.
Rule #5: One fight question at a time.
Rule #6: No "Diet" drinks, no overhead lights.
Rule #7: Fights Troubleshooting sessions will go on as long as they have to.
Rule #8: If this is your first night at FIGHT CLUB LQ, you HAVE to fight google.

Now for a few things you're going to (eventually) need to know;
How to Boot off a Solaris CD into Single User Mode
Patch Check Advance (PCA) - Great tool for patching a system. Read the docs first.
Basic Docs on Solaris (from Oracle) - This includes man pages.

So now that that's all out of the way...
Okay, "introduce" us to your system with the following commands (remeber to wrap the outputs in [code] & [/code]);

uptime
Not as important as you would think, but I don't trust anything that has the root password taped to the monitor with an uptime over 500 days.

uname -a
This will tell us the platform (sparc or x86), the revision of the kernel you're using, the version of the O.S (somewhat), and maybe the model of system you have.

cat /etc/release
This will tell us the exact version of the operating system, and what "update" it is.

prtdiag -v | head -20
This should tell us the exact make and model of system you have, and how much RAM/CPU you have.

df -hFufs
This will tell us exactly which filesystems are which, and where they're mounted at.

pkginfo -l SMCsyslng
Prints the current state of the package you installed (or attempted to).
 
Old 02-04-2011, 05:52 AM   #10
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Any luck?
 
Old 02-04-2011, 05:58 AM   #11
ziadh
Member
 
Registered: Aug 2010
Location: France, Paris
Distribution: Solaris10
Posts: 88

Original Poster
Rep: Reputation: 0
well, actually today is my last day of training, my main mission was configuration os syslog and freeradius servers which i did on SuSe and Windows...
and the last 2 weeks i lost so much time just installing these servers on solaris10, i hope from now on i will never use any Linux/Unix system, )
so now i leave the company and i hope that the next engineer will be able to solve these problems.
thank you for your help, if by any chances i'll work on linux again, i'll come back for sure into this site because you guys helped me more than the people in here with me in the office!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 12 install syslog-ng-3.0.2 bmeckle Linux - General 8 04-13-2010 01:37 PM
syslog errors (after install) czezz Linux - Hardware 1 02-06-2008 09:04 AM
Can't install syslog-ng 2 helpmhost Linux - Software 2 12-28-2006 05:46 PM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 07:21 PM
syslog-ng install....problem --TOL-- Linux - Security 1 08-03-2002 03:30 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration