08-16-2012
solved.
I needed to restart the service after I added the new publisher.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have 2 physical interfaces (bnx0 and bnx1) aggregated into aggr1. I need to assign second IP, and normally I know how to do it to physical interface (i.e. bnx0:1) however same trick (aggr1:1) is not working. Is there any way to do it? (0 Replies)
Discussion started by: bratan
0 Replies
2. Solaris
Hi all,
we are starting to build some basic infrastructure for using solaris 11.
I have built an IPS of solaris packages from the DVD images.
what I want to do next is create a repository of custom packages.
so in that case I want a publisher of "my-company-name" and not solaris.
can... (1 Reply)
Discussion started by: robsonde
1 Replies
3. Solaris
Hi guys, long time no see
Today I installed Oracle Solaris 11.11 in virtualbox. My machine needs to be bulletproof for our production databases but :D
First problem is that I can't install anything using IPS where publisher is solars, default freeware repo for Oracle Solaris. I need... (9 Replies)
Discussion started by: solaris_user
9 Replies
4. UNIX for Dummies Questions & Answers
I am using RHEL 6, but with no RHN subscription. I tried installing the EPEL repo, it is enabled under yum repolist but when I try a sample search such as yum search nginx , there's a string of errno 14 PYCURL error 6 .
When I tried yum list installed, it didn't work because it defaults to the... (0 Replies)
Discussion started by: Hijanoqu
0 Replies
5. Solaris
Hi experts,
I have an X86 as my IPS server running ( uname -a SunOS 5.11 11.1 i86pc i386 i86pc). the IPS has the following package version:
prdb01b:~# pkg list -fa entire
NAME (PUBLISHER) VERSION IFO
entire ... (0 Replies)
Discussion started by: afadaghi
0 Replies
6. Solaris
What do people think of this tool? pkgtree - for displaying a visual representation of Solaris IPS package dependencies. (0 Replies)
Discussion started by: cambridge
0 Replies
7. Solaris
I have installed WL on Solaris 11 and have to create IPS packaging for following directories so that
/local/apps/wl/wls12.x
/local/apps/wl/oraInventory
/local/apps/wl/jdk/jdk1.x
Can someone provide the steps for creating IPS or point to the website where I can get help.
Thanks,... (2 Replies)
Discussion started by: sam101
2 Replies
8. Solaris
Hi guys,
I've got a local IPS repository on server 1 (local server in the basement) and a second one on server 2 in another data center. Both servers act as repository servers for their locations.
The publisher list is like this
pkg publisher
PUBLISHER TYPE STATUS... (4 Replies)
Discussion started by: dheitepriem
4 Replies
9. Solaris
Hi Folks,
Just a quick question on this, I've tried to run this a couple of times now - first time it failed I increased the swap. I'm not sure that increasing the physical memory will do any good, but will try later today - has anyone seen this or anything similar?
SunOS fvssphsun01 5.11... (8 Replies)
Discussion started by: gull04
8 Replies
LEARN ABOUT OPENSOLARIS
sysevent_get_vendor_name
sysevent_get_vendor_name(3SYSEVENT) System Event Library Functions sysevent_get_vendor_name(3SYSEVENT)
NAME
sysevent_get_vendor_name, sysevent_get_pub_name, sysevent_get_pid - get vendor name, publisher name or processor ID of event
SYNOPSIS
cc [flag ...] file ...-lsysevent [library ...]
#include <libsysevent.h>
char *sysevent_get_vendor_name(sysevent_t *ev);
char *sysevent_get_pub_name(sysevent_t *ev);
pid_t sysevent_get_pid(sysevent_t *ev);
PARAMETERS
ev handle to a system event object
DESCRIPTION
The sysevent_get_pub_name() function returns the publisher name for the sysevent handle, ev. The publisher name identifies the name of the
publishing application or kernel subsystem of the sysevent.
The sysevent_get_pid() function returns the process ID for the publishing application or SE_KERN_PID for sysevents originating in the ker-
nel. The publisher name and PID are useful for implementing event acknowledgement.
The sysevent_get_vendor_name() function returns the vendor string for the publishing application or kernel subsystem. A vendor string is
the company's stock symbol that provided the application or kernel subsystem that generated the system event. This information is useful
for filtering sysevents for one or more vendors.
The interface manages the allocation of the vendor and publisher name strings, but it is the caller's responsibility to free the strings
when they are no longer needed by calling free(3MALLOC). If the new vendor and publisher name strings cannot be created, sysevent_get_ven-
dor_name() and sysevent_get_pub_name() return a null pointer and may set errno to ENOMEM to indicate that the storage space available is
insufficient.
EXAMPLES
Example 1 Parse sysevent header information.
The following example parses sysevent header information from an application's event handler.
char *vendor;
char *pub;
void
event_handler(sysevent_t *ev)
{
if (strcmp(EC_PRIV, sysevent_get_class_name(ev)) != 0) {
return;
}
vendor = sysevent_get_vendor_name(ev);
if (strcmp("SUNW", vendor) != 0) {
free(vendor);
return;
}
pub = sysevent_get_pub_name(ev);
if (strcmp("test_daemon", pub) != 0) {
free(vendor);
free(pub);
return;
}
(void) kill(sysevent_get_pid(ev), SIGUSR1);
free(vendor);
free(pub);
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
malloc(3MALLOC), attributes(5)
SunOS 5.11 17 Mar 2004 sysevent_get_vendor_name(3SYSEVENT)