Prustat throwing error only in zones not in global

Thread Tools Search this Thread
Operating Systems Solaris Prustat throwing error only in zones not in global
# 1  
Old 04-29-2019
Prustat throwing error only in zones not in global


Prustat is throwing error only in zones. But it is working fine in global.
dtrace: invalid probe specifier
** The following is a trimmed version of two seperate DTrace scripts:
** socketsnoop.d - snoop TCP network socket traffic by process.
**  This is intended to identify the process responsible
**  for network traffic. Written in DTrace (Solaris 10 build 63).
** iosnoop.d - A program to print I/O events as they happen, with useful
**      details such as UID, PID, inode, command, etc.
**      Written in DTrace (Solaris 10 build 63).

#pragma D option quiet

** --- TIMESTAMPS ---
dtrace:::BEGIN {
        printf("B %d\n",timestamp);
        /* last is used as a timestamp to the disk request, OR,
           to the last disk completion. This is needed to avoid
           over counting disk times due to disk buffers (queues),
           however remains a minor simplification. */
        last = timestamp;
        printf("D %d %d %d %d %s\n",
         this->scomm == 0 ? "." : stringof(this->scomm));

** --- NETWORK ----

**  Store Write Values
        self->uid = curpsinfo->pr_euid;
        self->pid = pid;
        self->comm = (char *)curpsinfo->pr_fname;
        self->size = msgdsize(args[1]);
        self->ok = 1;

**  Store Read Values
        self->uid = curpsinfo->pr_euid;
        self->pid = pid;
        self->comm = (char *)curpsinfo->pr_fname;
        /* We track the read request (man uio), */
        self->uiop = (struct uio *) arg2;
        self->residual = self->uiop->uio_resid;
        /* The following ensures the type is AF_INET (sys/socket.h), */
        this->sonode = (struct sonode *)arg0;
        self->ok = (int)this->sonode->so_type == 2 ? 1 : 0;
/arg0 != 0 && self->ok/
        /* calculate successful read size */
        self->size = self->residual - self->uiop->uio_resid;

**  Print output
fbt:ip:tcp_output:entry, fbt:sockfs:sotpi_recvmsg:return
        printf("N %d %d %d %s\n",self->uid,self->pid,
        self->ok = 0;
        self->uid = 0;
        self->pid = 0;
        self->comm = 0;
        self->size = 0;
        self->residual = 0;
        self->uiop = 0;
: probe description dtrace:::BEGIN does not match any probes

Actually what the error is printing on screen is the code inside Prustat after _DATA_ line

uname -r

output on global and zone as below,

I have tried setting

to the zone. But still not working

# 2  
Old 04-29-2019
# 3  
Old 04-29-2019
Correct me if I'm wrong: you have a global zone running Solaris 11, and branded zones running solaris 10 ?

If yes then:
dtrace routines that work on 11 are not guaranteed to work on 10.

Try downloading some scripts from here: Keep them on separate directories from any 11 dtrace code.
DTrace Tools

If @jlliagre stops by he will likely have better suggestions
# 4  
Old 04-30-2019

Thanks for the reply.

@hicksd8 I have followed the steps mentioned in the link

zonecfg -z z1-zonename
brand: solaris10
autoboot: true
autoshutdown: shutdown
limitpriv: default,dtrace_proc,dtrace_user

After setting I have rebooted the zone also.

And @jim mcnamara, I have downloaded the Prustat from the mentioned link.Still no luck

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Solaris Global/Zones patching

Issue is : We have Solaris Global with 12 Zones and some have 15 Zones. All the OS version are10. Is it possible to apply patch at Zone level instead of patching at Global level? Please let me know. (10 Replies)
Discussion started by: baladelaware73
10 Replies

2. Solaris

Solaris 10 - rexplorer and Non-Global zones

Hi all - not really a problem as such, but just hoping someone can shed some light. We point rexplorer to multiple Global zones and it works as expected. However, each Non-Global zone get around a hundred of root su'ing to root messages, i.e.: SU 07/14 03:02 + ??? root-root SU 07/14 03:02 +... (5 Replies)
Discussion started by: dlam
5 Replies

3. Solaris

cpu- requirements for non-global zones

Hello Admins, Does anyone has any idea on how to assign no. of cpu and memory to non-global zones on solaris 10..... We have few zones in our environment. We wanted to assign memory and no of cpu's ..(e.g. 4Gb / 2 CPU's) Thanks... (4 Replies)
Discussion started by: snchaudhari2
4 Replies

4. Solaris

How to share/mount ZFS in two non-global zones?

Hi All, first time here. :o I need a some assistance with ZFS. I have two ZFS pools: zoneA/nfs_export zoneB/nfs_export Each dataset is mounted in a particular zone (zoneA and zoneB respectively). I have created a new dataset "zoneA/nfs_tmp" which I want to mount or share... (8 Replies)
Discussion started by: gabriel4
8 Replies

5. Solaris

How to see global hostname by logging in non global zones?

Hi guru Could any one help me by letting me know, how to see global hostname by logging in non global zones Regards (2 Replies)
Discussion started by: girish.batra
2 Replies

6. Solaris

How to access ENV variables of non global zones in global zone???

Hi Guys, My requirement is I have file called /opt/orahome/.profile in non global zone. PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:. export PATH PS1="\${ORACLE_SID}:`hostname`:\$PWD$ " export PS1 EDITOR=vi export EDITOR ENV=/opt/orahome/.kshrc export ENV... (1 Reply)
Discussion started by: vijaysachin
1 Replies

7. Solaris

Global zones - not allow log via SSH

Hi, I have Global zone and 2 users: root and app. I know password root and app. When a user app log - putty displays Access denied Using keyboard-interactive authentication. In file /etc/security/policy.conf I set CRYPT_DEFAULT=2a And in file /etc/ssh/sshd_config I set PermitRootLogin... (1 Reply)
Discussion started by: bieszczaders
1 Replies

8. Solaris

Global Zones

I'm logged into a non-global zone server. How would I find out what the global zone server name is from there? (1 Reply)
Discussion started by: soupbone38
1 Replies
Login or Register to Ask a Question

Featured Tech Videos