xref: /onnv-gate/usr/src/lib/cfgadm_plugins/sbd/sbd.xcl (revision 5895:f251acdd9bdc)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*5895Syz147064# Common Development and Distribution License (the "License").
6*5895Syz147064# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*5895Syz147064# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate#pragma ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate#
270Sstevel@tonic-gate# lib/cfgadm_plugins/sbd/sbd.xcl
280Sstevel@tonic-gate#
290Sstevel@tonic-gatemsgid  "/dev/cfg/%s/"
300Sstevel@tonic-gatemsgid  "../"
310Sstevel@tonic-gatemsgid  "cp=%s path=%s\n"
320Sstevel@tonic-gatemsgid  "%s/%s"
330Sstevel@tonic-gatemsgid  "::"
340Sstevel@tonic-gatemsgid  "%s%d:%s"
350Sstevel@tonic-gatemsgid  "path=<%s> "
360Sstevel@tonic-gatemsgid  ""
370Sstevel@tonic-gatemsgid  "drv=<%s> inst=%d minor=<%s> "
380Sstevel@tonic-gatemsgid  "target=<%s>\n"
390Sstevel@tonic-gatemsgid  "cid=<%s> "
400Sstevel@tonic-gatemsgid  "cname=<%s> "
410Sstevel@tonic-gatemsgid  "cnum=%d\n"
420Sstevel@tonic-gatemsgid  "tgt=%d opts=%x\n"
430Sstevel@tonic-gatemsgid  "assign"
440Sstevel@tonic-gatemsgid  "poweron"
450Sstevel@tonic-gatemsgid  "test"
460Sstevel@tonic-gatemsgid  "connect"
470Sstevel@tonic-gatemsgid  "configure"
480Sstevel@tonic-gatemsgid  "notify-online"
490Sstevel@tonic-gatemsgid  "suspend-check"
500Sstevel@tonic-gatemsgid  "request-suspend"
510Sstevel@tonic-gatemsgid  "request-offline"
520Sstevel@tonic-gatemsgid  "unconfigure"
530Sstevel@tonic-gatemsgid  "notify-remove"
540Sstevel@tonic-gatemsgid  "disconnect"
550Sstevel@tonic-gatemsgid  "poweroff"
560Sstevel@tonic-gatemsgid  "unassign"
570Sstevel@tonic-gatemsgid  "notify-resume"
580Sstevel@tonic-gatemsgid  "status"
590Sstevel@tonic-gatemsgid  "getncm"
600Sstevel@tonic-gatemsgid  "cancel"
610Sstevel@tonic-gatemsgid  "passthru"
620Sstevel@tonic-gatemsgid  "help"
630Sstevel@tonic-gatemsgid  "errtest"
640Sstevel@tonic-gatemsgid  "cmd"
650Sstevel@tonic-gatemsgid  "skip"
660Sstevel@tonic-gatemsgid  "info"
670Sstevel@tonic-gatemsgid  "delim"
680Sstevel@tonic-gatemsgid  "code"
690Sstevel@tonic-gatemsgid  "mid"
700Sstevel@tonic-gatemsgid  "err"
710Sstevel@tonic-gatemsgid  "level"
720Sstevel@tonic-gatemsgid  "sim"
730Sstevel@tonic-gatemsgid  "cpuid"
740Sstevel@tonic-gatemsgid  "vmask=0x%x\n"
750Sstevel@tonic-gatemsgid  "%15s%9s%9s%9s%9s%9s%9s\n"
760Sstevel@tonic-gatemsgid  "msk"
770Sstevel@tonic-gatemsgid  "none"
780Sstevel@tonic-gatemsgid  "brd"
790Sstevel@tonic-gatemsgid  "cpu"
800Sstevel@tonic-gatemsgid  "mem"
810Sstevel@tonic-gatemsgid  "io"
820Sstevel@tonic-gatemsgid  "%15s%9x"
830Sstevel@tonic-gatemsgid  "%9x"
840Sstevel@tonic-gatemsgid  "\n"
850Sstevel@tonic-gatemsgid  " "
860Sstevel@tonic-gatemsgid  "default"
870Sstevel@tonic-gatemsgid  "opt=%d\n"
880Sstevel@tonic-gatemsgid  "tgt=%d opt=%x omask=%x\n"
890Sstevel@tonic-gatemsgid  ":"
900Sstevel@tonic-gatemsgid  "cmd=%s(%d) tmask=0x%x cmask=0x%x omask=0x%x\n"
910Sstevel@tonic-gatemsgid  "SBD_DEBUG"
920Sstevel@tonic-gatemsgid  "a"
930Sstevel@tonic-gatemsgid  "\nDebug started, pid=%d\n"
940Sstevel@tonic-gatemsgid  "unknown state"
950Sstevel@tonic-gatemsgid  "empty"
960Sstevel@tonic-gatemsgid  "disconnected"
970Sstevel@tonic-gatemsgid  "connected"
980Sstevel@tonic-gatemsgid  "unconfigured"
990Sstevel@tonic-gatemsgid  "configured"
1000Sstevel@tonic-gatemsgid  "ap_err(%x)\n"
1010Sstevel@tonic-gatemsgid  "<%d><%s><%d>"
1020Sstevel@tonic-gatemsgid  "<%s><%s>"
1030Sstevel@tonic-gatemsgid  "<%s>"
1040Sstevel@tonic-gatemsgid  "<%s><%s><%s><%s>"
1050Sstevel@tonic-gatemsgid  "<0x%x><%s><%s><%s>"
1060Sstevel@tonic-gatemsgid  "<NOARGS>"
1070Sstevel@tonic-gatemsgid  "<%s><%s><%s>"
1080Sstevel@tonic-gatemsgid  "ap_msg(%x)\n"
1090Sstevel@tonic-gatemsgid  "<%d>"
1100Sstevel@tonic-gatemsgid  "<%s><%s>\n"
1110Sstevel@tonic-gatemsgid  "rcm_get_handle"
1120Sstevel@tonic-gatemsgid  "rcm_free_handle"
1130Sstevel@tonic-gatemsgid  "rcm_get_info"
1140Sstevel@tonic-gatemsgid  "rcm_free_info"
1150Sstevel@tonic-gatemsgid  "rcm_info_tuple_next"
1160Sstevel@tonic-gatemsgid  "rcm_info_tuple_state"
1170Sstevel@tonic-gatemsgid  "rcm_info_tuple_id"
1180Sstevel@tonic-gatemsgid  "rcm_info_tuple_info"
1190Sstevel@tonic-gatemsgid  "rcm_info_tuple_rsrc"
1200Sstevel@tonic-gatemsgid  "rcm_request_offline"
1210Sstevel@tonic-gatemsgid  "rcm_notify_online"
1220Sstevel@tonic-gatemsgid  "rcm_request_suspend"
1230Sstevel@tonic-gatemsgid  "rcm_notify_resume"
1240Sstevel@tonic-gatemsgid  "rcm_notify_remove"
1250Sstevel@tonic-gatemsgid  "ap_rcm_init\n"
126*5895Syz147064msgid  "/lib/librcm.so"
1270Sstevel@tonic-gatemsgid  "Looking for librcm.so\n"
1280Sstevel@tonic-gatemsgid  "librcm.so found\n"
1290Sstevel@tonic-gatemsgid  "ap_rcm_fini\n"
1300Sstevel@tonic-gatemsgid  "online"
1310Sstevel@tonic-gatemsgid  "onlining"
1320Sstevel@tonic-gatemsgid  "offline_fail"
1330Sstevel@tonic-gatemsgid  "offlining"
1340Sstevel@tonic-gatemsgid  "offline"
1350Sstevel@tonic-gatemsgid  "removing"
1360Sstevel@tonic-gatemsgid  "resuming"
1370Sstevel@tonic-gatemsgid  "suspend_fail"
1380Sstevel@tonic-gatemsgid  "suspending"
1390Sstevel@tonic-gatemsgid  "suspend"
1400Sstevel@tonic-gatemsgid  "unknown"
1410Sstevel@tonic-gatemsgid  "rcm_ctl: first=%d last=%d\n"
1420Sstevel@tonic-gatemsgid  "OS"
1430Sstevel@tonic-gatemsgid  "ioctl(%d SBD_CMD_GETNCM, 0x%x)\n"
1440Sstevel@tonic-gatemsgid  "ncm(%d)=%d\n"
1450Sstevel@tonic-gatemsgid  "open(%s)\n"
1460Sstevel@tonic-gatemsgid  "ncm=%d\n"
1470Sstevel@tonic-gatemsgid  "ioctl(%d SBD_CMD_STATUS, sc=0x%x sz=%d flags=%d"
1480Sstevel@tonic-gatemsgid  " cname=<%s> cnum=%d"
1490Sstevel@tonic-gatemsgid  ")\n"
1500Sstevel@tonic-gatemsgid  "ap_stat()=%d\n"
1510Sstevel@tonic-gatemsgid  "ncm=%d nstat=%d (truncated)\n"
1520Sstevel@tonic-gatemsgid  "tgt=%d\n"
1530Sstevel@tonic-gatemsgid  "cname=<%s> cunit=<%d>\n"
1540Sstevel@tonic-gatemsgid  "ds_name,ds_unit,ds_type=<%s,%d,%d> "
1550Sstevel@tonic-gatemsgid  "found "
1560Sstevel@tonic-gatemsgid  "sbd"
1570Sstevel@tonic-gatemsgid  "ap_init bd=%d rs=%d os=%d type=<%s>\n"
1580Sstevel@tonic-gatemsgid  "ap_ioc(%d)\n"
1590Sstevel@tonic-gatemsgid  "ap_ioc(%d)=0x%x\n"
1600Sstevel@tonic-gatemsgid  "-x passthru -o %s\n"
1610Sstevel@tonic-gatemsgid  "SBD_MODMSGDIR"
1620Sstevel@tonic-gatemsgid  "/usr/lib/msg"
1630Sstevel@tonic-gatemsgid  "%s/%s.msg"
1640Sstevel@tonic-gatemsgid  "<#...>"
1650Sstevel@tonic-gatemsgid  "<space...>"
1660Sstevel@tonic-gatemsgid  "missing msgfile"
1670Sstevel@tonic-gatemsgid  "msgfile"
1680Sstevel@tonic-gatemsgid  "error %d from %s module"
1690Sstevel@tonic-gatemsgid  " (%s=%s)"
1700Sstevel@tonic-gatemsgid  "ap_test_err(%s %d %d)\n"
1710Sstevel@tonic-gatemsgid  "\nSbd specific commands/options:\n\n"
1720Sstevel@tonic-gatemsgid  "\tcfgadm [-o [parsable],[info=default:unconfigure:all] ap_id\n"
1730Sstevel@tonic-gatemsgid  "\tcfgadm [-o [unassign],[skip=poweroff]] -c disconnect ap_id\n"
1740Sstevel@tonic-gatemsgid  "\tcfgadm [-o level=diag_spec] -t ap_id\n"
1750Sstevel@tonic-gatemsgid  "\tcfgadm -x assign ap_id\n"
1760Sstevel@tonic-gatemsgid  "\tcfgadm -x unassign ap_id\n"
1770Sstevel@tonic-gatemsgid  "\tcfgadm -x poweron ap_id\n"
1780Sstevel@tonic-gatemsgid  "\tcfgadm -x poweroff ap_id\n"
1790Sstevel@tonic-gatemsgid  "memory"
1800Sstevel@tonic-gatemsgid  "other"
1810Sstevel@tonic-gatemsgid  "ap_cm_type(%d)=%s\n"
1820Sstevel@tonic-gatemsgid  "%s%s"
1830Sstevel@tonic-gatemsgid  "ap_cm_path(%d)=%s\n"
1840Sstevel@tonic-gatemsgid  "%s%d"
1850Sstevel@tonic-gatemsgid  "ap_cm_id(%d)=%s\n"
1860Sstevel@tonic-gatemsgid  "ap_cm_init bd=%d rs=%d os=%d type=<%s> seq=%d\n"
1870Sstevel@tonic-gatemsgid  "bd_info(%x)\n"
1880Sstevel@tonic-gatemsgid  "powered"
1890Sstevel@tonic-gatemsgid  ",assigned"
1900Sstevel@tonic-gatemsgid  "cpu_info(%x)\n"
1910Sstevel@tonic-gatemsgid  "cpuid=%d"
1920Sstevel@tonic-gatemsgid  "mem_info(%x)\n"
1930Sstevel@tonic-gatemsgid  "base=0x%x"
1940Sstevel@tonic-gatemsgid  " total=%d"
1950Sstevel@tonic-gatemsgid  " permanent=%d"
1960Sstevel@tonic-gatemsgid  " cage_enabled"
1970Sstevel@tonic-gatemsgid  "device=%s"
1980Sstevel@tonic-gatemsgid  " referenced"
1990Sstevel@tonic-gatemsgid  "default_info(%x)\n"
2000Sstevel@tonic-gatemsgid  "all"
2010Sstevel@tonic-gatemsgid  "%s"
2020Sstevel@tonic-gatemsgid  "info_spec=%s\n"
2030Sstevel@tonic-gatemsgid  "sig_handler(%d)\n"
2040Sstevel@tonic-gatemsgid  "ap_seq(%d, %d, %d, %x, %x) = (%d, %d)\n"
2050Sstevel@tonic-gatemsgid  "Command aborted\n"
2060Sstevel@tonic-gatemsgid  "exec %s\n"
2070Sstevel@tonic-gatemsgid  "cfga_private_func(%s)\n"
2080Sstevel@tonic-gatemsgid  "cfga_test(%s)\n"
2090Sstevel@tonic-gatemsgid  "cfga_list_ext(%s %x)\n"
2100Sstevel@tonic-gatemsgid  "apcnt=%d\n"
2110Sstevel@tonic-gatemsgid  "ap_phys_id=%s ap_log_id=%s\n"
2120Sstevel@tonic-gatemsgid  "%s::%s"
2130Sstevel@tonic-gatemsgid  "a1=%s a2=%s b1=%d b2=%d diff=%d\n"
2140Sstevel@tonic-gatemsgid  "%s %s: %s%s%s"
2150Sstevel@tonic-gatemsgid  "%s %s"
2160Sstevel@tonic-gatemsgid  "\n%-30s %-10s %s"
2170Sstevel@tonic-gatemsgid  "rcm_alloc_handle"
2180Sstevel@tonic-gatemsgid  "rcm_info_next"
2190Sstevel@tonic-gatemsgid  "rcm_info_state"
2200Sstevel@tonic-gatemsgid  "rcm_info_pid"
2210Sstevel@tonic-gatemsgid  "rcm_info_error"
2220Sstevel@tonic-gatemsgid  "rcm_info_info"
2230Sstevel@tonic-gatemsgid  "rcm_info_rsrc"
2240Sstevel@tonic-gatemsgid  "rcm_request_offline_list"
2250Sstevel@tonic-gatemsgid  "rcm_notify_online_list"
2260Sstevel@tonic-gatemsgid  "rcm_notify_remove_list"
2270Sstevel@tonic-gatemsgid  "rcm_request_capacity_change"
2280Sstevel@tonic-gatemsgid  "rcm_notify_capacity_change"
2290Sstevel@tonic-gatemsgid  "ap_capinfo(%x)\n"
2300Sstevel@tonic-gatemsgid  "getsyscpuids\n"
2310Sstevel@tonic-gatemsgid  "syscpuids: "
2320Sstevel@tonic-gatemsgid  "cpu_info"
2330Sstevel@tonic-gatemsgid  "%d "
2340Sstevel@tonic-gatemsgid  "ap_rcm_init(%x)\n"
2350Sstevel@tonic-gatemsgid  "Looking for %s\n"
2360Sstevel@tonic-gatemsgid  "%s found\n"
2370Sstevel@tonic-gatemsgid  "ap_rcm_fini(%x)\n"
2380Sstevel@tonic-gatemsgid  "ap_rcm_rlist(%x)\n"
2390Sstevel@tonic-gatemsgid  "ncap=%d\n"
2400Sstevel@tonic-gatemsgid  "SUNW_cpu/cpuCCC"
2410Sstevel@tonic-gatemsgid  "%d"
2420Sstevel@tonic-gatemsgid  "rp[%d]=%s\n"
2430Sstevel@tonic-gatemsgid  "ap_rcm_cap_cpu(%x)\n"
2440Sstevel@tonic-gatemsgid  "ap_rcm_cap_cpu: CPU capacity, old = %d, new = %d \n"
2450Sstevel@tonic-gatemsgid  "oldcpuids: "
2460Sstevel@tonic-gatemsgid  "change   : "
2470Sstevel@tonic-gatemsgid  "newcpuids: "
2480Sstevel@tonic-gatemsgid  "state"
2490Sstevel@tonic-gatemsgid  "capacity"
2500Sstevel@tonic-gatemsgid  "old_total"
2510Sstevel@tonic-gatemsgid  "new_total"
2520Sstevel@tonic-gatemsgid  "old_cpu_list"
2530Sstevel@tonic-gatemsgid  "new_cpu_list"
2540Sstevel@tonic-gatemsgid  "SUNW_cpu"
2550Sstevel@tonic-gatemsgid  "ap_rcm_cap_mem(%x)\n"
2560Sstevel@tonic-gatemsgid  "ap_rcm_cap_cpu: Memory capacity, old = %d, new = %d \n"
2570Sstevel@tonic-gatemsgid  "page_size"
2580Sstevel@tonic-gatemsgid  "old_pages"
2590Sstevel@tonic-gatemsgid  "new_pages"
2600Sstevel@tonic-gatemsgid  "SUNW_memory"
2610Sstevel@tonic-gatemsgid  "ap_rcm_request_cap(%x)\n"
2620Sstevel@tonic-gatemsgid  "ap_rcm_notify_cap(%x)\n"
2630Sstevel@tonic-gatemsgid  "no pertinent capacity info\n"
2640Sstevel@tonic-gatemsgid  "cm=%d valid=%d type=%d, prevos=%d os=%d\n"
2650Sstevel@tonic-gatemsgid  "ap_rcm_ctl(%x)\n"
2660Sstevel@tonic-gatemsgid  "ap_rcm_info(%x)\n"
2670Sstevel@tonic-gatemsgid  "  "
2680Sstevel@tonic-gatemsgid  "-"
2690Sstevel@tonic-gatemsgid  "ap_rcm_info(%x) success\n"
2700Sstevel@tonic-gatemsgid  "ap_stat(%s)\n"
2710Sstevel@tonic-gatemsgid  "i_opts=%s\n"
2720Sstevel@tonic-gatemsgid  "NULL"
2730Sstevel@tonic-gatemsgid  "i_flags=0x%x\n"
2740Sstevel@tonic-gatemsgid  "ap_test_err(%d %d)\n"
2750Sstevel@tonic-gatemsgid  "\tcfgadm [-o parsable] -l ap_id\n"
2760Sstevel@tonic-gatemsgid  "\tcfgadm [-o unassign|nopoweroff] -c disconnect ap_id\n"
2770Sstevel@tonic-gatemsgid  "\tcfgadm -t ap_id\n"
2780Sstevel@tonic-gatemsgid  "ap_dev_type(%d)=%s\n"
2790Sstevel@tonic-gatemsgid  "ap_cm_capacity(%d)=("
2800Sstevel@tonic-gatemsgid  "%d)\n"
2810Sstevel@tonic-gatemsgid  "powered-on"
2820Sstevel@tonic-gatemsgid  ", assigned"
2830Sstevel@tonic-gatemsgid  " assigned"
2840Sstevel@tonic-gatemsgid  "cpuid %d"
2850Sstevel@tonic-gatemsgid  ", speed %d MHz"
2860Sstevel@tonic-gatemsgid  ", ecache %d MBytes"
2870Sstevel@tonic-gatemsgid  " speed=%d"
2880Sstevel@tonic-gatemsgid  " ecache=%d"
2890Sstevel@tonic-gatemsgid  "%%-%ds  %%-%ds"
2900Sstevel@tonic-gatemsgid  "error %d"
2910Sstevel@tonic-gatemsgid  "base address 0x%"
2920Sstevel@tonic-gatemsgid  ", %lu KBytes total"
2930Sstevel@tonic-gatemsgid  ", %lu KBytes permanent"
2940Sstevel@tonic-gatemsgid  ", unconfigurable"
2950Sstevel@tonic-gatemsgid  ", memory delete requested on %s"
2960Sstevel@tonic-gatemsgid  ", memory delete in progress on %s"
2970Sstevel@tonic-gatemsgid  ", %lu KBytes deleted"
2980Sstevel@tonic-gatemsgid  ", %lu KBytes remaining"
2990Sstevel@tonic-gatemsgid  ", inter board interleave"
3000Sstevel@tonic-gatemsgid  "address=0x%"
3010Sstevel@tonic-gatemsgid  " size=%lu"
3020Sstevel@tonic-gatemsgid  " permanent=%lu"
3030Sstevel@tonic-gatemsgid  " unconfigurable"
3040Sstevel@tonic-gatemsgid  " source=%s"
3050Sstevel@tonic-gatemsgid  " target=%s"
3060Sstevel@tonic-gatemsgid  " deleted=%lu"
3070Sstevel@tonic-gatemsgid  " remaining=%lu"
3080Sstevel@tonic-gatemsgid  " inter-board-interleave"
3090Sstevel@tonic-gatemsgid  "::%s"
3100Sstevel@tonic-gatemsgid  "device %s"
3110Sstevel@tonic-gatemsgid  ", referenced"
3120Sstevel@tonic-gatemsgid  ", %d"
3130Sstevel@tonic-gatemsgid  ",%d"
3140Sstevel@tonic-gatemsgid  "cmp_info(%x)\n"
3150Sstevel@tonic-gatemsgid  "ap_info(%x, %d)\n"
3160Sstevel@tonic-gatemsgid  "null capinfo"
3170Sstevel@tonic-gatemsgid  "(%d cpu)"
3180Sstevel@tonic-gatemsgid  "(%d cpus)"
3190Sstevel@tonic-gatemsgid  "(%ld pages)"
320