ClearCase create a web view with CAL or clearTool - clearcase

I need to create a web view on windows via cleartool or CAL, I know how to do it via ClearTeam explorer but I can't find the exact command that will perform the same with the same parameters I provide via the GUI:
Parameters:
view tag - view_tag
copy area path name - c:\temp\view_tag
server url - http://.../ccrc
user name
password
I tried a lot of cleartool mkview combinations but not luck so far

The rcleartool mkview command does mention web views with:
rcleartool mkview [ –tag web-view-tag ] [ –tmo/de { insert_cr | transparent | strip_cr } ]
[ –str/eam stream-selector ] copyarea
For a web view, it creates a copy area.
Again, this is using the rcleartool (ClearCase remote client command-line interface ), which means you will need to use first:
login [ –lna/me login-name ] [ –serv/er server–url ] [ –pas/sword password ]
[ –proxy_lna/me proxy–login–name ] [ –proxy_pas/sword password ]

Related

Is there a way in Thruk to extract the 'Expanded command' somewhere, via JSON, REST, or curl?

It shows up on the page, and I can see it in view source on chrome, but I do not appear to be able to get this info via curl, as the page stops loading - probably due to the JSON/js involved in formatting the page.
is there a way to obtain this information via either rest, JSON, or curling?
There is a rest endpoint for this
https://thruk.org/documentation/rest.html#_get-hosts-name-commandline
for hosts and
https://thruk.org/documentation/rest.html#_get-services-host-service-commandline
for services.
Available from commandline:
thruk r /hosts/localhost/commandline
[
{
"check_command" : "check-host-alive",
"command_line" : "/omd/sites/devel/lib/monitoring-plugins/check_icmp -H 127.0.0.1 -w 3000.0,80% -c 5000.0,100% -p 5",
"error" : "",
"host_name" : "localhost",
"peer_key" : "78bcd"
}
]
The same information is available by curl from
https://thrukhost/thruk/r/hosts/localhost/commandline

Can't start clickhouse service, too many files in ../data/default/<TableName>

I have a strange problem with my standalone clickhouse-server installation. Server was running for some time with nearly default config, except data and tmp directories was replaced to separate disk:
cat /etc/clickhouse-server/config.d/my_config.xml
<?xml version="1.0"?>
<yandex>
<path>/data/clickhouse/</path>
<tmp_path>/data/clickhouse/tmp/</tmp_path>
</yandex>
Today the server stopped responding with connection refused error. It was rebooted and after that the service couldn't completely start:
2018.05.28 13:15:44.248373 [ 2 ] <Information> DatabaseOrdinary (default): 42.86%
2018.05.28 13:15:44.259860 [ 2 ] <Debug> default.event_4648 (Data): Loading data parts
2018.05.28 13:16:02.531851 [ 2 ] <Debug> default.event_4648 (Data): Loaded data parts (2168 items)
2018.05.28 13:16:02.532130 [ 2 ] <Information> DatabaseOrdinary (default): 57.14%
2018.05.28 13:16:02.534622 [ 2 ] <Debug> default.event_5156 (Data): Loading data parts
2018.05.28 13:34:01.731053 [ 3 ] <Information> Application: Received termination signal (Terminated)
Really, I stopped process on 57%, because it starts too long(maybe it could start in an hour or two, I didn't try).
The log level by default is "trace", but I didn't show any reasons of such behavior.
I think the problem is in file count in /data/clickhouse/data/default/event_5156.
Now it is 626023 directories in it and ls -la command do not work in this catalog properly, I have to use find to count files:
# time find . -maxdepth 1 | wc -l
626023
real 5m0.302s
user 0m3.114s
sys 0m24.848s
I have two questions:
1)Why Clickhouse-Server generated so much files and directories, with default config?
2)How can I start the service without data loss in adequate time?
Issue was in data update method. I used script with jdbc connector and have been sending one string per request. After changing scheme to batch update, the issue was solved.

Why is my working directory view empty?How to set the working directory view

Why is my working directory view empty?
How to set the working directory view
Working directory view: ** NONE **
How to set it?
[shibanis#linuxserver206 C-T3-P-fad-viewstore7]$ ct pwv
Working directory view: ** NONE **
Set view: hdbu_iop_shibanis_vu
And:
View details:[shibanis#linuxserver206 C-T3-P-fad-viewstore7]$ ct lsview -long hdbu_iop_shibanis_vu
Tag: hdbu_iop_shibanis_vu "san to nas storage"
Global path: /net/in0oianas002/in0oianas002_SAS_U1/C-T3-P-fad-viewstore7/hdbu_iop_shibanis_vu.vws
Server host: andd011
Region: AND_DSLAM
Active: YES
View tag uuid:8e18a9d4.b2c511e5.8058.78:ac:c0:bb:69:2c
View on host: andd011
View server access path: /net/in0oianas002/in0oianas002_SAS_U1/C-T3-P-fad-viewstore7/hdbu_iop_shibanis_vu.vws
View uuid: 8e18a9d4.b2c511e5.8058.78:ac:c0:bb:69:2c
View owner: adcc/shibanis
Command used to create view:(sample)
/usr/atria/bin/cleartool mkview -tag iop5_shibanis -host andd011 -hpath /net/in0oianas002/in0oianas002_SAS_U1/C-T3-P-fad-viewstore7/iop5_shibanis.vws -gpath
Once a dynamic view has been set with cleartool setview (and it is set, since your pwn shows your view has set), it uses a view context '/'.
That means your path within that view becomes: /vobs/aVob/path/to/a/file.
But that also means you need to make sure:
a vob is mounted: cleartool mount /vobs/avob
your config spec does select that vob: look at cleartool catcs output to check the selection rules.

Cognos BI and Active Directory Global Catalog

I've got AD forest with 2 domains, users and groups are separated to different domains (users in first, groups and other resources in second). And if you want to use AD in a such way you have to connect via 3268 port (global catalog). But I ran into a problem that the CognosBI does not work in this configuration. Is there ways to make these products work together in such a configuration?
[ ERROR ] CAM-AAA-0146 The namespace 'nsname' is not available.
[ ERROR ] CAM-AAA-0064 The function 'Configure' failed.
[ ERROR ] CAM-AAA-0064 The function 'ActiveDirectoryAuthConfigure' failed.
[ ERROR ] CCL_ASSERT(supportedDomain);
[ ERROR ] src/ActiveDirectoryProviderHelpers.cpp(2552): CCLAssertError: CCL_RETHROW:
[ ERROR ] src/ActiveDirectoryProviderHelpers.cpp(4099): CCLAssertError: CCL_THROW:
I've finded solution without global catalog, works with standart 389 port with following settings:
chaseReferrals: True
multiDomainTrees: True

Sencha SDK Tool / JSBuilder - include all files with *

Using Sencha Touch 1, I am having to manually create my app.jsb3 file (and add all linked JavaScript files to that .jsb3 file) in order to use jsbuilder to minify all files.
Anybody know the correct syntax to allow use of a wildcard (.*) (referred to as a Filter) in order to easily include all files in a folder?
I know the docs here: http://dev.sencha.com/deploy/JSBuilder2/JSB2FileFormat.txt
state that ".*" can be used - but I've had no joy:
"files": [
{"path": "views/", "name": "file1.js"},
{"path": "views/", "name": "file2.js"}, // currently manually adding each file
...
{"path": "views/", "name": ".*"}, // include all?
{"path": "views/.*"}, // include all?
]
The docs only show filters in relation to listing resources, but not also for listing files - may be why!

Resources