发布新帖

Encontrar

问题
· 十月 18, 2018

$match or "?"

Hello all...

Is there two matching patterns in Caché, is there a difference in use one or the other?
Example:

USER>set a = "(1234)"

Using $match.

USER>w $match(a,"\([0-9]{4}\)")

USER>1

Using literal match (sorry if not correctly term expression)

USER>W a?1"("4n1")"

USER>1

What is different from using one or the other?

The 'a?1"("4n1")"' does this pattern exist only Caché.
Exists performance improvement with use pattern Caché?

2 Comments
讨论 (2)2
登录或注册以继续
文章
· 十月 9, 2018 阅读大约需 3 分钟

Execute Server Commands from Caché / Ensemble / IRIS

The question has come up several times and I saw mixed answers and no quick example

My personal preference is using CPIPE device as you get back exactly the output you will get at the command line interface of your OS .
The tricky thing is to stop reading in time.
The example just displays what you normally see in your console.
it becomes useful if you look for things that you can't get from any $system.whatever()

e.g.
- your servers IP address or addresses depending on your configuration.  
- pinging any other server to see if it is still visible on the network
- running nslookup 

GitHub

 Zpipe  quit ; CPIPE example to run host console command
cmd(command="",test=0) ;
 if command="" set command="dir"
 quit $$execute(command,test)

execute(cmd,test) Public {
 set dev="|CPIPE|1"
 set $zt="cls"
 set empty=0
 open dev:cmd:0
 write:test $test,!
 else  write "pipe failed",! quit 0
 while empty<3 {
    use dev read line 
    set empty=$s($l(line):0,1:$i(empty))
    use 0 write line,!  ;;; or do any kind of analysis of the line 
    }

cls ;
 set $zt="" use 0
 close dev 
 if $ze'["<ENDOFFILE>" $ze,!
 quit $t
 }
 

..

Just run USER>do cmd^Zpipe() to see if you are allowed to use PIPES
(I just met a narrow-minded security manager that didn't allow the use of pipes to Caché) 

or 

USER>do cmd^Zpipe("tracert community.intersystems.com")

Tracing route to community.intersystems.com [54.83.203.138] over a maximum of 30 hops:
 
  1     3 ms     1 ms     1 ms  10.10.1.1
  2     *        *        *     Request timed out.
  3   116 ms   168 ms   132 ms  at-vie01b-rc1-ae11-0.aorta.net [84.116.228.201]
  4   142 ms   114 ms   115 ms  at-vie05d-rc1-ae29-0.aorta.net [84.116.140.2]
  5     *        *        *     Request timed out.
  6   114 ms   114 ms   115 ms  us-nyc01b-rd2-ae9-0.aorta.net [84.116.140.170]
  7   118 ms   116 ms   117 ms  us-was03a-rd1-ae5-0.aorta.net [84.116.146.142]
  8   114 ms   115 ms   114 ms  us-was03a-ri1-ae11-0.aorta.net [84.116.130.165]
  9   114 ms   116 ms   114 ms  213.46.182.202
 10   145 ms   132 ms   132 ms  54.239.111.240
 11   115 ms   115 ms   114 ms  54.239.110.152
 12   126 ms   136 ms   132 ms  54.239.110.149
 13   115 ms   116 ms   114 ms  54.239.108.133
 14   129 ms   148 ms   133 ms  52.93.24.94
 15   115 ms   114 ms   117 ms  52.93.24.85
 16     *        *        *     Request timed out.
 17     *        *        *     Request timed out.
 18     *        *        *     Request timed out.
 19     *        *        *     Request timed out.
 20     *        *        *     Request timed out.
 21   429 ms   121 ms   114 ms  ec2-54-83-203-138.compute-1.amazonaws.com [54.83.203.138]

Trace complete.

5 Comments
讨论 (5)2
登录或注册以继续
问题
· 十月 8, 2018

Backing up/Exporting created Roles

I have created some roles, and would like to know if there is a way to export the Roles and save them off to a file? I want to create a backup file of these roles for DR purpose, and in case I ever get hit by the preverbal bus.

Thanks

Scott Roth

The Ohio State University Wexner Medical Center

2 Comments
讨论 (2)2
登录或注册以继续
InterSystems 官方
· 九月 24, 2018

Advisory: VMWare vSAN and Data Integrity

September 24, 2018 – Advisory: VMWare vSAN and Data Integrity

Clients running vSAN 6.6 or later should review a very important article that VMware published on September 21, 2018.  The article describes the possibility of file system and database corruption, which can lead to outages and possible data loss, and we believe that some of our clients have encountered this issue.  Therefore, we encourage you to act on this as soon as possible.

The VMWare knowledge base article is titled:

Virtual Machines running on VMware vSAN 6.6 and later report guest data consistency concerns following a disk extend operation (58715)

 

If you have any questions regarding this advisory, as it relates to InterSystems products, please contact the Worldwide Response Center.

2 Comments
讨论 (2)3
登录或注册以继续
问题
· 九月 18, 2018

How to get the Windows SID number using Caché Command?

Hi All,
Can any one please tell how to get the Windows SID number using Caché Command.

1 Comment
讨论 (1)0
登录或注册以继续