You are not logged in.

#1 2016-07-09 23:32:18

nbd
Member
Registered: 2014-08-04
Posts: 389

[SOLVED] 'dot' functionality without GraphViz?

Greetings!

Could someone advise please if there is a way to get a 'dot' functionality without full blown GraphViz, which along with deps takes 134 Mb to install:

[al ~ ]$ sudo pacman -S graphviz
resolving dependencies...
looking for conflicting packages...

Package (6)        New Version  Net Change  Download Size

extra/gd           2.1.1-4        0.62 MiB       0.15 MiB
extra/ghostscript  9.19-1        63.35 MiB      13.92 MiB
extra/gts          0.7.6-3        0.60 MiB       0.17 MiB
extra/libpaper     1.1.24-9       0.31 MiB       0.02 MiB
core/run-parts     4.7-1          0.04 MiB       0.03 MiB
extra/graphviz     2.38.0-12     69.66 MiB       5.95 MiB

Total Download Size:    20.25 MiB
Total Installed Size:  134.58 MiB

I only want to use 'systemd-analyze dot' in the following command:

systemd-analyze dot | dot -Tsvg > systemd.svg

Maybe there is some small standalone emulator of dot?

Last edited by nbd (2016-07-15 13:12:05)


bing different

Offline

#2 2016-07-13 17:06:06

Awebb
Member
Registered: 2010-05-06
Posts: 6,275

Re: [SOLVED] 'dot' functionality without GraphViz?

Offline

#3 2016-07-15 05:04:40

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED] 'dot' functionality without GraphViz?

Uhm... Never used dot. Could someone advise please how to view my 'systemd-analyze' output in that emulator?

Thanks.


bing different

Offline

#4 2016-07-15 07:08:09

frostschutz
Member
Registered: 2013-11-15
Posts: 1,409

Re: [SOLVED] 'dot' functionality without GraphViz?

Who cares about 134MiB these days? And lots of things need ghostscript in some form or other...

If you don't want graphviz on this system for some reason, but have another system where it's no problem to install it, you could pipe it through ssh.

systemd-analyze dot | ssh user@othersystem dot -Tsvg > systemd.svg

Offline

#5 2016-07-15 11:43:00

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED] 'dot' functionality without GraphViz?

Well, actually the other way around would be more appropriate: who cares about graphing boot sequence if it takes 134 Mb to accomplish (a tree of text strings would suffice). Anyways, thanks for advising the pipelining receipt.


bing different

Offline

#6 2016-07-15 12:32:54

frostschutz
Member
Registered: 2013-11-15
Posts: 1,409

Re: [SOLVED] 'dot' functionality without GraphViz?

I'm not sure you can do this as a text tree... I haven't ever used this myself before but the result looks very... not sure if you can even call this a graph, it looks more like a ball of wool.

http://imgur.com/vPW33KD

if you want it as text you can just read the dot file directly ;-)

systemd-analyze also has other output options (plot and whatnot)

Offline

#7 2016-07-15 13:11:29

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED] 'dot' functionality without GraphViz?

frostschutz wrote:

systemd-analyze also has other output options (plot and whatnot)

They output different content than dot. But thanks for the example output. I checked also other images in web search and don't know if this feature is a beta or what and if someone actually use it for clearing up the service relations. I deem such visualization as pretty useless. (Marking this thread SOLVED.)


bing different

Offline

#8 2016-07-15 13:40:31

frostschutz
Member
Registered: 2013-11-15
Posts: 1,409

Re: [SOLVED] 'dot' functionality without GraphViz?

I haven't checked if the SVG is layered/grouped in any way... if you could hide the stuff you don't care about it might be interesting...

dot itself also has a ton of options which might be able to improve the results somehow

Offline

#9 2016-07-15 15:39:43

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED] 'dot' functionality without GraphViz?

I figured out just to copy-paste the systemd-analyze output to the aforementioned emulator and that worked. Yes, the dot option has the switches allowing to specify only subset of units and this allows to get comprehensible graphs.

EDIT:

In case someone interested, here is another dot rendering site:

http://rise4fun.com/agl

Last edited by nbd (2016-07-15 16:10:04)


bing different

Offline

#10 2016-07-15 16:36:34

Awebb
Member
Registered: 2010-05-06
Posts: 6,275

Re: [SOLVED] 'dot' functionality without GraphViz?

Thank you for sharing!

Offline

#11 2016-07-15 16:45:01

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: [SOLVED] 'dot' functionality without GraphViz?

ushiroad.com doesn't render color edges (the color encodes the meaning of graph edge) and instead of two arrows between nodes, renders only one. So I searched and found rise4fun.com.


bing different

Offline

Board footer

Powered by FluxBB